Re: [RFC PATCH] Btrfs: add ioctl to set compress or cow per file/dir

2011-02-24 Thread liubo
On 02/25/2011 02:39 AM, Chris Mason wrote: > Excerpts from Andreas Dilger's message of 2011-02-24 13:37:52 -0500: >> On 2011-02-24, at 2:40 AM, liubo wrote: >>> #define FS_DIRECTIO_FL0x0010 /* Use direct i/o */ >>> +#define FS_NOCOW_FL0x0020 /* Do not cow file */ >>

Re: [RFC PATCH] Btrfs: add ioctl to set compress or cow per file/dir

2011-02-24 Thread liubo
On 02/24/2011 10:54 PM, Chris Mason wrote: > Excerpts from liubo's message of 2011-02-24 04:40:55 -0500: >> Data compression and data cow are controlled across the entire FS by mount >> options right now. ioctls are needed to set this on a per file or per >> directory basis. This has been propose

Re: [RFC PATCH] Btrfs: add ioctl to set compress or cow per file/dir

2011-02-24 Thread Chris Mason
Excerpts from Andreas Dilger's message of 2011-02-24 13:37:52 -0500: > On 2011-02-24, at 2:40 AM, liubo wrote: > > #define FS_DIRECTIO_FL0x0010 /* Use direct i/o */ > > +#define FS_NOCOW_FL0x0020 /* Do not cow file */ > > +#define FS_COW_FL0x0010 /*

Re: [RFC PATCH] Btrfs: add ioctl to set compress or cow per file/dir

2011-02-24 Thread Andreas Dilger
On 2011-02-24, at 2:40 AM, liubo wrote: > #define FS_DIRECTIO_FL 0x0010 /* Use direct i/o */ > +#define FS_NOCOW_FL 0x0020 /* Do not cow file */ > +#define FS_COW_FL0x0010 /* Cow file */ > #define FS_RESERVED_FL

Re: [RFC PATCH] Btrfs: add ioctl to set compress or cow per file/dir

2011-02-24 Thread Chris Mason
Excerpts from liubo's message of 2011-02-24 04:40:55 -0500: > > Data compression and data cow are controlled across the entire FS by mount > options right now. ioctls are needed to set this on a per file or per > directory basis. This has been proposed previously, but VFS developers > wanted us

[RFC PATCH] Btrfs: add ioctl to set compress or cow per file/dir

2011-02-24 Thread liubo
Data compression and data cow are controlled across the entire FS by mount options right now. ioctls are needed to set this on a per file or per directory basis. This has been proposed previously, but VFS developers wanted us to use generic ioctls rather than btrfs-specific ones. We need to fit