Messages in this thread | | | Date | Thu, 7 Feb 2008 15:32:47 +0100 | From | Jan Kara <> | Subject | Re: remount-ro & umount & quota interaction |
| |
On Thu 07-02-08 15:10:18, Jan Engelhardt wrote: > > On Feb 7 2008 15:04, Jan Kara wrote: > >On Thu 07-02-08 13:49:52, Michael Tokarev wrote: > >> Jan Kara wrote: > >> [deadlock after remount-ro followed with umount when > >> quota is enabled] > >> > >> Hmm. While that will prevent the lockup, maybe it's better to > >> perform an equivalent of quotaoff on mount-ro instead? [...] > > > > We couldn't leave quota on when filesystem is remounted ro because we > >need to modify quotafile when quota is being turned off. We could turn off > >quotas when remounting read-only. As we turn them off during umount, it > >probably makes sence to turn them off on remount-ro as well. > > Objection. XFS handles quotas differently that does not involve > modifying a file on the fs, so quotas could stay on (even if it does > not make much sense) while the fs is ro. Yes, but XFS doesn't give a damn about what we do in VFS with quotas ;) So we are speaking here only about quotas implemented in VFS and these need writing. BTW: When filesystem is remounted read-only, quota information shouldn't change so it doesn't matter whether you turn it off or leave it on. The only difference is that when you later remount rw, you have to turn quotas on again.
> (Hm, storing quota as files reminds me of the ugly xattr hack in > reiserfs3.) Oh yes... there are some similarities ;). But quota was first! ;)
Honza -- Jan Kara <jack@suse.cz> SUSE Labs, CR
| |