diff options
author | Jeremy Allison <jra@samba.org> | 2004-01-06 18:13:32 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2004-01-06 18:13:32 +0000 |
commit | 67da3026a4d4681a904db09a6b713cbad047e7c7 (patch) | |
tree | 1a7d769cfbca113507c030ea5d5c2a782f1a46b7 /source3/lib/sysquotas_linux.c | |
parent | 65111149b532b60e515709f33e6db896d43268fa (diff) | |
download | samba-67da3026a4d4681a904db09a6b713cbad047e7c7.tar.gz samba-67da3026a4d4681a904db09a6b713cbad047e7c7.tar.bz2 samba-67da3026a4d4681a904db09a6b713cbad047e7c7.zip |
XFS quota patch from Stefan Metzmacher <metze@metzemix.de>.
Jeremy.
(This used to be commit cae5f158e583572436a2f4c20d919816d763f93d)
Diffstat (limited to 'source3/lib/sysquotas_linux.c')
-rw-r--r-- | source3/lib/sysquotas_linux.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/source3/lib/sysquotas_linux.c b/source3/lib/sysquotas_linux.c index 09ed64638a..be42fa23f4 100644 --- a/source3/lib/sysquotas_linux.c +++ b/source3/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 */ |