phdeniel/nfs-ganesha — Issue #42: BUG : no "inode" quotas for VFS, XFS, LUSTRE,GPFS
Author: phdeniel
Created: 2012-01-31 12:19:26+00:00
State: open

I noticed a weird behavior when using quotas with FSAL_LUSTRE and I realized that the error exists on FSAL_VFS, FSAL_XFS and FSAL_GPFS.
What happens ? All of these FSALs work the same way when creating an object: they check is user has the permission to do the job, then root creates the object and once done a call to fchown is done to put the correct ownership.
So far, it works pretty well.
BUT, if "inode quotas" are active, then the FS should prevent a user that exceeds inode quotas (he already owns to many files) to create the file, returning EDQUOT. The trouble is that the FS will never say that to root, and chown will never check quota when called. This means that, via ganesha and even if quota support is activated, a user can easily exceed his quotas. This makes quotas meaningless....