summaryrefslogtreecommitdiffstats
path: root/source3/smbd/dfree.c
Commit message (Collapse)AuthorAgeFilesLines
* s3:smbd: move all globals and static variables in globals.[ch]Stefan Metzmacher2009-01-081-3/+3
| | | | | | The goal is to move all this variables into a big context structure. metze
* Use {u,}int64_t instead of SMB_BIG_{U,}INT.Jelmer Vernooij2008-10-141-17/+17
|
* Use common util_file code.Jelmer Vernooij2008-10-121-1/+1
|
* Remove connection_struct->mem_ctx, connection_struct is its own parentVolker Lendecke2008-05-051-1/+1
| | | | (This used to be commit 559180f7d30606d1999399d954ceedc798c669a4)
* int->boolVolker Lendecke2007-12-101-2/+2
| | | | (This used to be commit 874258195278bc8c6bb3011c153c5d646fff9e75)
* RIP BOOL. Convert BOOL -> bool. I found a few interestingJeremy Allison2007-10-181-3/+3
| | | | | | | | bugs in various places whilst doing this (places that assumed BOOL == int). I also need to fix the Samba4 pidl generation (next checkin). Jeremy. (This used to be commit f35a266b3cbb3e5fa6a86be60f34fe340a3ca71f)
* r25118: More pstring elimination.Jeremy Allison2007-10-101-3/+11
| | | | | Jeremy. (This used to be commit 7632f8fb4003657591778d2b55f546d1737859d1)
* r23784: use the GPLv3 boilerplate as recommended by the FSF and the license textAndrew Tridgell2007-10-101-2/+1
| | | | (This used to be commit b0132e94fc5fef936aa766fb99a306b3628e9f07)
* r23779: Change from v2 or later to v3 or later.Jeremy Allison2007-10-101-1/+1
| | | | | Jeremy. (This used to be commit 407e6e695b8366369b7c76af1ff76869b45347b3)
* r21369: sys_disk_free return type is SMB_BIG_UINT.Simo Sorce2007-10-101-1/+1
| | | | | | | | Fix dfree_retval to be SMB_BIG_UINT as well, otherwise we may wrap up on > 2T file systems. Simo. (This used to be commit 0bb7f6492ccf4a965d70d43ee1483959c71bcdba)
* r11190: Fix enhancement request #3192.Jeremy Allison2007-10-101-10/+53
| | | | | | | | | This does 2 things. 1). Makes dfree command a per-share parameter (it should be anyway IMHO). 2). Adds a "dfree cache time" parameter in seconds that specifies how long a dfree command output should be cached for. Default is zero (no caching). Jeremy. (This used to be commit 49ef8b88a3e12883148eb28d8e86fb07dbc3d12d)
* r5822: Actually return an error message if disk_free fails ! Pointed out by ↵Jeremy Allison2007-10-101-3/+12
| | | | | | | Ying Li <ying.li2@hp.com>. Jeremy. (This used to be commit b5d31b2caf5c4739607bf57cb7e4e0569b57012b)
* r5268: Fix bug #2310, only do 16-bit normalization on small dfreeJeremy Allison2007-10-101-5/+5
| | | | | | request. Jeremy. (This used to be commit 96dfec739a7ab6ac082d530ca2b771f9d6acabc6)
* Add NT quota support. Patch from Stefan (metze) MetzemacherAlexander Bokovoy2003-05-121-6/+6
| | | | | | | | 1. Allows to change quota settings for shared mount points from Win2K and WinXP from Explorer properties tab 2. Disabled by default and when requested, will be probed and enabled only on Linux where it works 3. Was tested for approx. two weeks now on Linux by two independent QA teams, have not found any bugs so far Documentation to follow (This used to be commit 4bf022ce9e45be85609426762ba2644ac2031326)
* Removed version number from file header.Tim Potter2002-01-301-2/+1
| | | | | Changed "SMB/Netbios" to "SMB/CIFS" in file header. (This used to be commit 6a58c9bd06d0d7502a24bf5ce5a2faf0a146edfa)
* Added NT_USER_TOKEN into server_info to fix extra groups problem.Jeremy Allison2001-11-031-1/+1
| | | | | | Got "medieval on our ass" about const warnings (as many as I could :-). Jeremy. (This used to be commit ee5e7ca547eff016818ba5c43b8ea0c9fa69b808)
* get rid of compiler warnings (casts and delete unused variables)Herb Lewis2001-10-231-1/+1
| | | | (This used to be commit 51cb4411df61d1caec9d84809b1a53a6a632f808)
* Removed 'extern int DEBUGLEVEL' as it is now in the smb.h header.Tim Potter2001-10-021-3/+0
| | | | (This used to be commit 2d0922b0eabfdc0aaf1d0797482fef47ed7fde8e)
* The big character set handling changeover!Andrew Tridgell2001-07-041-4/+4
| | | | | | | | This commit gets rid of all our old codepage handling and replaces it with iconv. All internal strings in Samba are now in "unix" charset, which may be multi-byte. See internals.doc and my posting to samba-technical for a more complete explanation. (This used to be commit debb471267960e56005a741817ebd227ecfc512a)
* Got "medieval on our ass" about adding the -1 to slprintf.Jeremy Allison2001-04-081-1/+1
| | | | | Jeremy. (This used to be commit 94747b4639ed9b19f7d0fb896e43aa392a84989a)
* Fixed processing of dfree script (was truncating).Jeremy Allison2000-12-121-2/+0
| | | | | Jeremy. (This used to be commit 1e719a807669876b4d11f4653e9712f25fcba20b)
* file_lines_load/file_lines_pload can now optionally convert unix_to_dos()Jeremy Allison2000-12-071-1/+1
| | | | | | on read. Jeremy. (This used to be commit 76b8dd376d13eb4469417be217c966d54d333367)
* split fsusage() into a separate module (to fix linking problems withAndrew Tridgell2000-04-191-127/+2
| | | | | spoolssd in tng) (This used to be commit e2eacdd74c369fbbcd118148149321e36f3d0010)
* converted a bunch more functions to use a fd instead of a FILE*Andrew Tridgell2000-04-161-11/+9
| | | | | | | | to support some of this I added the following functions in util_file.c file_lines_pload : load lines from a pipe file_pload : load a pipe into memory (This used to be commit a09470817c5b21dba42f9ef4ce5e8b768a254c0b)
* Fixes to add "paranoid" option to popen. Checks some basic things.Jeremy Allison2000-03-161-1/+1
| | | | | Jeremy (This used to be commit 3b8cbb10de322fd7a1063fb5b681790b10d24ab0)
* Added replacement functions sys_popen and sys_pclose. These are basedJeremy Allison2000-02-151-5/+5
| | | | | | | | | | on the glibc source code and are safer than the traditional popen as they don't use a shell to exec the requested command. Now we have these functions they can be tightened up (environment etc.) as required to make a safe popen. It should now be safe to add the environement variable loading code to loadparm.c Jeremy. (This used to be commit b52e92b09d4ca3b66e534f520468dee27065d048)
* Wrapped popen calls in HAVE_POPEN - needed if we are to add theJeremy Allison2000-01-291-0/+2
| | | | | | env patch. Jeremy. (This used to be commit 94c075faee88538e48d1898f1694500b8a5d4c8b)
* Use slprintf not snprintf.Jeremy Allison2000-01-121-1/+1
| | | | | Jeremy. (This used to be commit b0a5ba9e01e71a64c7e693b6bf3f9bd499d3e095)
* Re-added "dfree command" functionality that was described in the man pagesJeremy Allison2000-01-061-1/+48
| | | | | | but was not in the code. Jeremy. (This used to be commit f4898a1f16a2dbc25d062b0088d6c589a34c93a0)
* first pass at updating head branch to be to be the same as the SAMBA_2_0 branchAndrew Tridgell1999-12-131-14/+22
| | | | (This used to be commit 453a822a76780063dff23526c35408866d0c0154)
* converted smbclient to use clientgen.c rather than clientutil.cAndrew Tridgell1998-11-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | I did this when I saw yet another bug report complaining about smbclient intermittently missing files. Rather than applying more patches to smbclient it was better to move to the more robust clientgen.c code. The conversion wasn't perfect, I probably lost some features of smbclient while doing it, but at least smbclient should be consistent now. It if fails it should _always_ fail rather than giving people the false impression of a reliable utility. the tar stuff seems to work, but hasn't had much testing as I never use it myself. I'm sure someone will find bugs in my conversion of smbtar.c. It was quite tricky as it did a lot of its own SMB calls. It now uses clientgen.c exclusively. smbclient is still quite messy, but at least it doesn't build its own SMB packets. I haven't touched smbmount as I never use it. Mike, do you want to convert smbmount to use clientgen.c? (This used to be commit e14ca7765ace1b721dad8eca4a527a4e4a8f1ab8)
* lib/charcnv.c: Improved debug comment.Jeremy Allison1998-11-061-0/+11
| | | | | | | | | | | | libsmb/namequery.c: Fix to remove 2 second wait is we are doing a unicast and got a reply. smbd/dfree.c: smbd/noquotas.c: smbd/quotas.c: Fixes from Dejan Ilic <svedja@lysator.liu.se> for the quota code. utils/smbpasswd.c: Fixes to allow smbpasswd to be called from swat. Jeremy. (This used to be commit b5981c0149ad8c6f13ea87db450080616538b5d5)
* got rid of SMB_STRUCT_STATVFS. I don't think we should be definingAndrew Tridgell1998-09-181-3/+7
| | | | | structures that only apply on some platforms. (This used to be commit 926591067cd8646426ca06df0b00a1d6f6dd5752)
* configure configure.in: Added checks for statvfs64. Last bit of 64 bit ↵Jeremy Allison1998-09-171-23/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | widening (I hope :-). include/config.h.in: Added #undef STAT_STATVFS64. include/includes.h: Added SMB_STRUCT_STATVFS type, Changed SMB_BIG_INTEGER to SMB_BIG_UINT and SMB_BIG_INT types. include/smb.h: Added flag defines from CIFS spec. lib/debug.c: Fixed one more mode_t issue. lib/system.c: Added sys_statvfs wrapper. lib/util.c: Changed trim_string to use size_t. param/loadparm.c: Moved "blocking locks" into locking section. Alphabetised locking options. Question - shuld we do this for all options ? passdb/ldap.c: Changed SMB_BIG_INTEGER to SMB_BIG_UINT. passdb/nispass.c: Changed SMB_BIG_INTEGER to SMB_BIG_UINT. passdb/smbpass.c: Changed SMB_BIG_INTEGER to SMB_BIG_UINT. smbd/dfree.c: Changed to use 64 bit types if available. Moved to use unsigned types. smbd/dosmode.c: Fixed one more mode_t issue. smbd/negprot.c: Changed literals to be FLAG_ #defines. smbd/nttrans.c: Removed dead code. smbd/open.c: Changed disk_free call. smbd/process.c: Changed literals to be FLAG_ #defines. smbd/reply.c: Changed disk_free call. smbd/trans2.c: Fixed but in SMB_QUERY_FS_VOLUME_INFO call. Was using UNICODE - should use ascii. tests/summary.c: Added STAT_STATVFS64 check. Jeremy. (This used to be commit c512b1b91fb7f2a7a93b9033a33e06d966daadb4)
* merge from the autoconf2 branch to the main branchAndrew Tridgell1998-07-291-0/+231
(This used to be commit 3bda7ac417107a7b01d91805ca71c4330657ed21)