[Bug 345338] New: boot.crypto: forgets mount flags
https://bugzilla.novell.com/show_bug.cgi?id=345338 Summary: boot.crypto: forgets mount flags Product: openSUSE 10.3 Version: Final Platform: x86 OS/Version: All Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: jengelh@gmx.de QAContact: qa@suse.de Found By: Beta-Customer After entering the password for an encrypted xfs volume, I notice that the qflags are reset: [ 58.452696] XFS mounting filesystem dm-0 [ 58.784971] XFS resetting qflags for filesystem dm-0 [ 58.785040] Ending clean XFS mount for filesystem: dm-0 fsck 1.40.2 (12-Jul-2007) [/sbin/fsck.xfs (1) -- /] fsck.xfs -a /dev/disk/by-id/ata-WDC_WD400EB-00CPF0_WD- /sbin/fsck.xfs: XFS file system. fsck succeeded. Mounting root device read-write. [ 58.883097] XFS mounting filesystem dm-0 [ 59.238300] Ending clean XFS mount for filesystem: dm-0 this can only happen when the volume was previously mounted with -o usrquota,grpquota and now has been mounted without them. Hence I assume that the script forgets to mount said volume with the flags I gave in fstab. This omission of fstab flags is *BAD* as it causes a quota rescan on the second mount (see above). On every boot. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=345338#c1 --- Comment #1 from Jan Engelhardt <jengelh@gmx.de> 2007-11-30 12:54:00 MST --- It is not the root partition (I just pasted that because the bootlog does not contain /home). Fstab: /dev/mapper/home /home xfs usrquota,grpquota,nobarrier 0 0 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=345338 Mark Gordon <mtgordon@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mtgordon@novell.com AssignedTo|bnc-team-screening@forge.provo.novell.com |mkoenig@novell.com -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=345338 User mkoenig@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=345338#c2 Matthias Koenig <mkoenig@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |jengelh@gmx.de --- Comment #2 from Matthias Koenig <mkoenig@novell.com> 2007-12-13 05:07:03 MST --- Are you using crypttab or cryptotab? Recommended is crypttab, which just calls mount /dev/mapper/$name So, it should automatically use the options from fstab. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=345338 User jengelh@gmx.de added comment https://bugzilla.novell.com/show_bug.cgi?id=345338#c3 --- Comment #3 from Jan Engelhardt <jengelh@gmx.de> 2007-12-13 05:30:21 MST --- crypttab with dm-crypt device and fstab. (Obviously, since I posted an fstab entry in comment #1 ;-)) But according to the kernel and boot.log, the qflags are reset, which only happens when the presence of quota flags changed from presence->absence. I guess I will add #!/bin/bash -x to boot.crypto to see what it is doing exactly. Leaving as NEEDINFO. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=345338 User jengelh@gmx.de added comment https://bugzilla.novell.com/show_bug.cgi?id=345338#c4 Jan Engelhardt <jengelh@gmx.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW Info Provider|jengelh@gmx.de | --- Comment #4 from Jan Engelhardt <jengelh@gmx.de> 2007-12-15 10:12:10 MST --- -x gives: + mount -t xfs -n -o ro /dev/mapper/home /home Uhuh! Of course that will turn off quota. (In function paranoid_safety_checks()) There are a lot of possibilities where flags are not sourced from /etc/fstab: 1. both DEVICE and MNTPT are specified 2. -o is specified -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=345338 User lnussel@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=345338#c5 Ludwig Nussel <lnussel@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mkoenig@novell.com AssignedTo|mkoenig@novell.com |lnussel@novell.com Status|NEW |ASSIGNED --- Comment #5 from Ludwig Nussel <lnussel@novell.com> 2007-12-17 01:13:08 MST --- I guess I should add an option to turn off that extra safety check. OTOH I'd also call this a bug in xfs. It's mounted read-only so it shouldn't modify the file system. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=345338 User jengelh@gmx.de added comment https://bugzilla.novell.com/show_bug.cgi?id=345338#c6 --- Comment #6 from Jan Engelhardt <jengelh@gmx.de> 2007-12-18 09:23:00 MST --- Not a bug. http://lkml.org/lkml/2007/12/18/151 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=345338 User lnussel@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=345338#c7 Ludwig Nussel <lnussel@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #7 from Ludwig Nussel <lnussel@novell.com> 2008-01-09 04:18:49 MST --- Ok, so I removed the extra mount check entirely. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com