summaryrefslogtreecommitdiffstats
path: root/source/lib/sysquotas_linux.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2004-01-06 18:13:32 +0000
committerJeremy Allison <jra@samba.org>2004-01-06 18:13:32 +0000
commitcae5f158e583572436a2f4c20d919816d763f93d (patch)
tree2afc63c2f7020a143c8924e4b5bf7f14a199ef56 /source/lib/sysquotas_linux.c
parent53e7d1508efc6e7910d052845f718d19ef307794 (diff)
downloadsamba-cae5f158e583572436a2f4c20d919816d763f93d.tar.gz
samba-cae5f158e583572436a2f4c20d919816d763f93d.tar.xz
samba-cae5f158e583572436a2f4c20d919816d763f93d.zip
XFS quota patch from Stefan Metzmacher <metze@metzemix.de>.
Jeremy.
Diffstat (limited to 'source/lib/sysquotas_linux.c')
-rw-r--r--source/lib/sysquotas_linux.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/source/lib/sysquotas_linux.c b/source/lib/sysquotas_linux.c
index 09ed64638a6..be42fa23f48 100644
--- a/source/lib/sysquotas_linux.c
+++ b/source/lib/sysquotas_linux.c
@@ -312,9 +312,6 @@ static int sys_set_linux_gen_quota(const char *path, const char *bdev, enum SMB_
struct if_dqblk D;
SMB_BIG_UINT bsize = (SMB_BIG_UINT)QUOTABLOCK_SIZE;
- if (!path||!bdev||!dp)
- smb_panic("sys_set_linux_gen_quota: called with NULL pointer");
-
ZERO_STRUCT(D);
if (bsize == dp->bsize) {
@@ -366,7 +363,7 @@ int sys_get_vfs_quota(const char *path, const char *bdev, enum SMB_QUOTA_TYPE qt
int ret = -1;
if (!path||!bdev||!dp)
- smb_panic("sys_get_linux_quota: called with NULL pointer");
+ smb_panic("sys_set_vfs_quota: called with NULL pointer");
ZERO_STRUCT(*dp);
dp->qtype = qtype;
@@ -429,7 +426,7 @@ int sys_set_vfs_quota(const char *path, const char *bdev, enum SMB_QUOTA_TYPE qt
uint32 oldqflags = 0;
if (!path||!bdev||!dp)
- smb_panic("sys_set_linux_v1_quota: called with NULL pointer");
+ smb_panic("sys_set_vfs_quota: called with NULL pointer");
oldqflags = dp->qflags;
@@ -483,4 +480,6 @@ int sys_set_vfs_quota(const char *path, const char *bdev, enum SMB_QUOTA_TYPE qt
return ret;
}
+#else /* HAVE_QUOTACTL_LINUX */
+ void dummy_sysquotas_linux(void){}
#endif /* HAVE_QUOTACTL_LINUX */