From: Christoph Hellwig Date: Fri, 17 Apr 2009 08:37:41 +0000 (+0200) Subject: Btrfs: implement FS_IOC_GETFLAGS/SETFLAGS/GETVERSION X-Git-Tag: v2.6.31-rc1~380^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6cbff00f4632c8060b06bfc9585805217f11e12e;p=pandora-kernel.git Btrfs: implement FS_IOC_GETFLAGS/SETFLAGS/GETVERSION Add support for the standard attributes set via chattr and read via lsattr. Currently we store the attributes in the flags value in the btrfs inode, but I wonder whether we should split it into two so that we don't have to keep converting between the two formats. Remove the btrfs_clear_flag/btrfs_set_flag/btrfs_test_flag macros as they were confusing the existing code and got in the way of the new additions. Also add the FS_IOC_GETVERSION ioctl for getting i_generation as it's trivial. Signed-off-by: Christoph Hellwig Signed-off-by: Chris Mason --- Reading git-diff-tree failed