On Tue, 2006-12-05 at 21:49 +0100, Miha Verlic wrote:
> > It was broken for a while, but fixed in 2.6.18.
> 
> hm... this should be mini quota subquestion, but I just might
> encountered a bug:
> 
> ~# cat /etc/fstab | grep md7
> /dev/md7 /home/users jfs
> defaults,noatime,nodiratime,nosuid,noexec,usrquota 1  2
> 
> ~# cat /proc/mounts | grep md7
> /dev/md7 /home/users jfs
> rw,nosuid,noexec,noatime,nodiratime,nointegrity,usrquota 0 0
> 
> ~# mount -o remount,integrity /home/users
> 
> ~# cat /proc/mounts | grep md7
> /dev/md7 /home/users jfs rw,nosuid,noexec,noatime,nodiratime 0 0
> 
> 
> Are usrquota and integrity flags mutually exclusive?

No, they aren't related at all.  It looks like usrquota gets cleared on
any remount.  It's not limited to jfs either.  I see the same thing on
ext4.  I don't know if this is a known behavior or not.  You can
probably guess that I don't use quotas very much.

> Also, man page for mount says:
>  >Mount options for jfs
>  >   noquota / quota / usrquota / grpquota
>  >   These options are accepted but ignored.
> 
> So what's the deal with this? Old data? :)

Misleading really.  The kernel doesn't really do anything with the quota
flags.  The quota tools use the presence of the flags to know when to
enable or disable quotas.  I copied the man-page text from ext2/3 a long
time ago.

> and now the funny part :/

Hmm.  This is new.  :-(

> ------
> ~]# mount -o remount,usrquota /home/users
> 
> Message from [EMAIL PROTECTED] at Tue Dec  5 21:34:54 2006 ...
> server kernel: stack segment: 0000 [#1]
> 
> Message from [EMAIL PROTECTED] at Tue Dec  5 21:34:54 2006 ...
> server kernel: SMP
> 
> Message from [EMAIL PROTECTED] at Tue Dec  5 21:34:54 2006 ...
> server kernel: CPU:    0
> 
> Message from [EMAIL PROTECTED] at Tue Dec  5 21:34:54 2006 ...
> server kernel: EIP is at txBeginAnon+0x20/0x165
> 
> Message from [EMAIL PROTECTED] at Tue Dec  5 21:34:54 2006 ...
> server kernel: eax: c0c13758   ebx: 0002356c   ecx: 00000000   edx: 00000001
> 
> Message from [EMAIL PROTECTED] at Tue Dec  5 21:34:54 2006 ...
> server kernel: esi: 00000000   edi: d3cad2cc   ebp: 00000000   esp: c5563bd4
> 
> Message from [EMAIL PROTECTED] at Tue Dec  5 21:34:54 2006 ...
> server kernel: ds: 0068   es: 0068   ss: 0068
> 
> Message from [EMAIL PROTECTED] at Tue Dec  5 21:34:54 2006 ...
> server kernel: Process httpd (pid: 4671, ti=c5562000 task=d46cd030
> task.ti=c5562000)
> 
> Message from [EMAIL PROTECTED] at Tue Dec  5 21:34:54 2006 ...
> server kernel: Stack: 00000297 001b1baa f7901654 f7901668 d62bb8d8
> cf05f8a4 001cb0c9 f7901640
> 
> Message from [EMAIL PROTECTED] at Tue Dec  5 21:34:54 2006 ...
> server kernel:        cf05f8a4 d1c94500 d62bb8d8 da97e080 00000000
> 001cb4b6 00000000 cf05f8a4
> 
> Message from [EMAIL PROTECTED] at Tue Dec  5 21:34:54 2006 ...
> server kernel:        da97e080 0002356c 00000000 d3cad2cc f7f7cbc0
> 000d6860 00000000 00036da6
> 
> Message from [EMAIL PROTECTED] at Tue Dec  5 21:34:54 2006 ...
> server kernel: Call Trace:
> 
> Message from [EMAIL PROTECTED] at Tue Dec  5 21:34:54 2006 ...
> server kernel: Code: 01 83 c4 50 89 f0 5b 5e 5f 5d c3 55 57 56 53 83 ec
> 44 8b 80 60 01 00 00 8b 68 18 b8 58 37 c1 c0 e8 a7 14 12 00 ff 05 b0 8f
> c8 c0 <8b> 45 28 a8 04 75 11 8b 45 28 c1 e8 03 89 c2 83 e2 01 0f 84 80
> 
> Message from [EMAIL PROTECTED] at Tue Dec  5 21:34:54 2006 ...
> server kernel: EIP: [<000da67b>] txBeginAnon+0x20/0x165 SS:ESP 0068:c5563bd4
> ------
> 
> 
> I'm pretty sure I did a "mount -o remount,usrquota" on another machine
> some time before and it didn't crash, however it also added nointegrity
> flag along with usrquota.

nointegrity is generally not a good idea.

> The crash happened on P4 3ghz (HT) with 1gb ram, kernel 2.6.18.3 with
> grsecurity patch, glibc 2.3.6 (nptl), gcc 3.3.6. Apache (with quite
> heavy traffic ~10mbit/s) was running at time of remount command.
> 
> Any clues?

Not really.  I can try stressing the file system and issuing remounts to
see if I can recreate anything like it.

> --
> Miha

Shaggy
-- 
David Kleikamp
IBM Linux Technology Center


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Jfs-discussion mailing list
Jfs-discussion@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jfs-discussion

Reply via email to