xfs-masters
[Top] [All Lists]

[xfs-masters] [Bug 416] New: no quotacheck when mounting a filesystem t

To: xfs-master@xxxxxxxxxxx
Subject: [xfs-masters] [Bug 416] New: no quotacheck when mounting a filesystem that had quotas turned off
From: bugzilla-daemon@xxxxxxxxxxx
Date: Thu, 16 Jun 2005 05:06:46 -0700
Reply-to: xfs-masters@xxxxxxxxxxx
Sender: xfs-masters-bounce@xxxxxxxxxxx
http://oss.sgi.com/bugzilla/show_bug.cgi?id=416

           Summary: no quotacheck when mounting a filesystem that had quotas
                    turned off
           Product: Linux XFS
           Version: unspecified
          Platform: All
               URL: http://www.datux.nl
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XFS kernel code
        AssignedTo: xfs-master@xxxxxxxxxxx
        ReportedBy: edwin@xxxxxxxx


using: linux 2.4.31 with lvm2 and md 
 
xfs doesn't do a quotacheck when a system is mounted with -onoquota, and after 
that again is mounted with -oquota. However, it _does_ do a check when quotas 
are turned off on a mounted filesytem with the quotaoff userspace tool. (after 
the kernel is compliled with the linux quota support option) 
 
It seems that the 'quotas-are-really-off-flag' on the filesystem is only set 
by systemcalls, and not by the -onoquota option. :( 
 
A log to clearify things: 
 
root@newinit:/# xfs_check /dev/mapper/syn3-home 
no problems yet.. 
 
We force the quotacount to be wrong: 
root@newinit:/# mount -o noquota /dev/mapper/syn3-home /mnt 
root@newinit:/# dd if=/dev/zero of=/mnt/testfil count=1000 
1000+0 records in 
1000+0 records out 
root@newinit:/# umount /mnt 
root@newinit:/# xfs_check /dev/mapper/syn3-home 
user quota id 0, have/exp bc 122423/122548 ic 1100/1101 
 
We try to repair in the regular way, but this doesnt help. (also no 
quotachecks in the dmesg) 
root@newinit:/# xfs_repair /dev/mapper/syn3-home &>/dev/null 
root@newinit:/# mount -o quota /dev/mapper/syn3-home /mnt 
root@newinit:/# umount /mnt 
root@newinit:/# xfs_check /dev/mapper/syn3-home 
user quota id 0, have/exp bc 122423/122548 ic 1100/1101 
 
Now we use quotaoff to turn quotes off by a systemcall: 
root@newinit:/# mount -o quota /dev/mapper/syn3-home /mnt 
root@newinit:/# quotaoff /mnt 
Disabling user quota enforcement on /dev/mapper/syn3-home 
root@newinit:/# umount /mnt 
root@newinit:/# xfs_check /dev/mapper/syn3-home 
This time the quotas are probably removed from the disk, so no errors. 
root@newinit:/# mount -o quota /dev/mapper/syn3-home /mnt 
(takes longer) 
 
root@newinit:/# dmesg |tail 
r8169: eth1: Reset RTL8169s PHY 
r8169: eth2: Reset RTL8169s PHY 
XFS mounting filesystem device-mapper(254,2) 
Ending clean XFS mount for filesystem: device-mapper(254,2) 
Doing a quotacheck. Please wait. 
XFS quotacheck device-mapper(254,2): Please wait. 
XFS quotacheck device-mapper(254,2): Done. 
Done quotacheck. 
r8169: eth1: Reset RTL8169s PHY 
r8169: eth2: Reset RTL8169s PHY 
root@newinit:/# umount /mnt 
root@newinit:/# xfs_check /dev/mapper/syn3-home 
(the quotas seem to be restored again restored again)

-- 
Configure bugmail: http://oss.sgi.com/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


<Prev in Thread] Current Thread [Next in Thread>
  • [xfs-masters] [Bug 416] New: no quotacheck when mounting a filesystem that had quotas turned off, bugzilla-daemon <=