#35 Do not fiddle with quota files on XFS and GFS

closed-accepted
nobody
None
5
2013-02-04
2013-01-31
No

When running quotacheck on GFS2 in verbose mode, you get various warnings or misleading notices because quotacheck plays with quota files:

# LANG=en_US quotacheck -v /mnt/gfs/
quotacheck: Scanning /dev/mapper/vg_dhcp0122-gfs [/mnt/gfs] done
quotacheck: Cannot stat old user quota file on: No such file or directory. Usage will not be substracted.
quotacheck: Old group file name could not been determined. Usage will not be substracted.
quotacheck: Checked 1 directories and 1 files
quotacheck: Cannot turn user quotas off on /dev/mapper/vg_dhcp0122-gfs: Function not implemented
Kernel won't know about changes quotacheck did.

This is fixed with attached patch by skipping unneeded operation on XFS quota format:

# LANG=en_US ~petr/quota/linuxquota-git/quotacheck -v /mnt/gfs/
quotacheck: Scanning /dev/mapper/vg_dhcp0122-gfs [/mnt/gfs] done
quotacheck: Checked 1 directories and 1 files

Discussion

  • Jan Kara

    Jan Kara - 2013-02-04

    Thanks. Applied (with a minor change in one of the comments).

     
  • Jan Kara

    Jan Kara - 2013-02-04
    • status: open --> closed-accepted
     


Anonymous

Cancel  Add attachments





Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks