]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs_quota: fall back silently if XFS_GETNEXTQUOTA fails
authorZorro Lang <zlang@redhat.com>
Thu, 4 Aug 2016 01:29:49 +0000 (11:29 +1000)
committerDave Chinner <david@fromorbit.com>
Thu, 4 Aug 2016 01:29:49 +0000 (11:29 +1000)
commit52e81d72272a00c692cb6fdaa49df8b59a539c50
treedd07fe42f2d3f64380e25b08cbb49f631b83aaf6
parent8f0529438eb09bab1dbd1072e61a973c6e1c1cfb
xfs_quota: fall back silently if XFS_GETNEXTQUOTA fails

After XFS_GETNEXTQUOTA feature has been merged into linux kernel and
xfsprogs, xfs_quota use Q_XGETNEXTQUOTA for report and dump, and
fall back to old XFS_GETQUOTA ioctl if XFS_GETNEXTQUOTA fails.

But when XFS_GETNEXTQUOTA fails, xfs_quota print a warning as
"XFS_GETQUOTA: Invalid argument". That's due to kernel can't
recognize XFS_GETNEXTQUOTA ioctl and return EINVAL. At this time,
the warning is helpless, xfs_quota just need to fall back.

Signed-off-by: Zorro Lang <zlang@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
quota/report.c