Hi Jan, On Tue, 2008-08-26 at 17:26 +0530, Subrata Modak wrote: > Hi Jan, > > On Tue, 2008-08-26 at 13:40 +0200, Jan Kara wrote: > > Hello, > > > > On Tue 26-08-08 15:38:01, Subrata Modak wrote: > > > The Commit logs for 2.6.26 for quota: quota core changes for quotaon on > > > remount says: > > > ....... > > > Currently, we just turn quotas off on remount of filesystem to read-only > > > state. The patch below adds necessary framework so that we can turn > > > quotas > > > off on remount RO but we are able to automatically reenable them again > > > when > > > filesystem is remounted to RW state. All we need to do is to keep > > > references > > > to inodes of quota files when remounting RO and using these references to > > > reenable quotas when remounting RW. > > > .......... > > > > > > Did you develop/write test cases to test these scenario ? Would it be > > > possible for you to share those tests with LTP under GPLv2 ? > > I've tested it only by hand. Something along the lines: > > > > mount -t ext3 -o loop,usrquota,grpquota test_image /mnt > > quotaon -avug > > mount -o remount,ro /mnt > > mount -o remount,rw /mnt > > <check that quota still works by writing to the fs and checking output of > > quota(1)> > > > > I can script it for you sometime next week if you'd like.
Sorry for interrupting. Just curious to know if if have remembered this ;-) Regards-- Subrata > > That would be really great. You can send the script to the ltp mailing > list. What i would like the script to have is to: > > 1) Mention, if the user needs to do some special setup before executing > the script, > 2) Script should be able to detect whether the feature it is trying to > test is available in the underlying kernel, and say a good bye > accordingly, > 3) Return 0 on success, else any other value(s) on un-successful exit. > > These will be required for the LTP engine to run the script, so that it > can be very easily accommodated under our Automated test run > environment. Thank you very much. > > Regards-- > Subrata > > > > > Honza > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Ltp-list mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/ltp-list ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
