Ideas to do custom operation just after mount?

2015-12-16 Thread Qu Wenruo
Hi, Will xfstests provides some API to do some operation just after mounting a filesystem? Some filesystem(OK, btrfs again) has some function(now qgroup only) which needed to be enabled by ioctl instead of mount option. Currently, for btrfs qgroup we added special test case enabling qgroup a

Re: Ideas to do custom operation just after mount?

2015-12-20 Thread Dave Chinner
On Thu, Dec 17, 2015 at 09:55:14AM +0800, Qu Wenruo wrote: > Hi, > > Will xfstests provides some API to do some operation just after > mounting a filesystem? > > Some filesystem(OK, btrfs again) has some function(now qgroup only) > which needed to be enabled by ioctl instead of mount option. Irk

Re: Ideas to do custom operation just after mount?

2015-12-20 Thread Qu Wenruo
Dave Chinner wrote on 2015/12/21 11:16 +1100: On Thu, Dec 17, 2015 at 09:55:14AM +0800, Qu Wenruo wrote: Hi, Will xfstests provides some API to do some operation just after mounting a filesystem? Some filesystem(OK, btrfs again) has some function(now qgroup only) which needed to be enabled b

Re: Ideas to do custom operation just after mount?

2015-12-20 Thread Qu Wenruo
Qu Wenruo wrote on 2015/12/21 10:25 +0800: Dave Chinner wrote on 2015/12/21 11:16 +1100: On Thu, Dec 17, 2015 at 09:55:14AM +0800, Qu Wenruo wrote: Hi, Will xfstests provides some API to do some operation just after mounting a filesystem? Some filesystem(OK, btrfs again) has some function

Re: Ideas to do custom operation just after mount?

2015-12-20 Thread Anand Jain
BTW, any good idea for btrfs to do such operation like enabling/disabling some minor features? Especially when it can be set on individual file/dirs. Features like incoming write time deduplication, is designed to be enabled/disabled for individual file/dirs, so it's not a quite good idea to u

Re: Ideas to do custom operation just after mount?

2015-12-21 Thread Kai Krakow
Am Mon, 21 Dec 2015 13:18:22 +0800 schrieb Anand Jain : > > > > BTW, any good idea for btrfs to do such operation like > > enabling/disabling some minor features? Especially when it can be > > set on individual file/dirs. > > > > Features like incoming write time deduplication, is designed to be

Re: Ideas to do custom operation just after mount?

2015-12-22 Thread Duncan
Kai Krakow posted on Tue, 22 Dec 2015 01:14:24 +0100 as excerpted: > Am Mon, 21 Dec 2015 13:18:22 +0800 schrieb Anand Jain > : > > >> >> > BTW, any good idea for btrfs to do such operation like >> > enabling/disabling some minor features? Especially when it can be set >> > on individual file/di

Re: Ideas to do custom operation just after mount?

2015-12-23 Thread Dave Chinner
On Mon, Dec 21, 2015 at 01:18:22PM +0800, Anand Jain wrote: > > > >BTW, any good idea for btrfs to do such operation like > >enabling/disabling some minor features? Especially when it can be set on > >individual file/dirs. > > > >Features like incoming write time deduplication, is designed to be