On Wed, Sep 28, 2011 at 02:50:13PM +0000, Artem wrote: > Li Zefan <lizf <at> cn.fujitsu.com> writes: > > See this "Per file/directory controls for COW and compression": > > > > http://marc.info/?l=linux-btrfs&m=130078867208491&w=2 > > Thanks again! > I wrote a program to see if ioctl compression control works > ( https://gist.github.com/1248085 ) you have to call IOC_GETFLAGS first, then flags |= FS_NOCOMP_FL; 27 int flags = compression ? FS_COMPR_FL : FS_NOCOMP_FL; 28 int ret = ioctl (fd, FS_IOC_SETFLAGS, &flags); else all other flags will be dropped. david -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
