[PATCH] btrfs-progs: Constify getters

2014-04-08 Thread Kusanagi Kouichi
Signed-off-by: Kusanagi Kouichi sl...@ac.auone-net.jp --- ctree.h | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ctree.h b/ctree.h index 9b461af..45f2faf 100644 --- a/ctree.h +++ b/ctree.h @@ -1184,9 +1184,9 @@ struct btrfs_root

[PATCH] btrfs-progs: Make property work with -t option

2014-04-08 Thread Kusanagi Kouichi
# btrfs prop list -t f . btrfs property list: too many arguments ... # btrfs prop get -t f . label btrfs property get: too many arguments ... # btrfs prop set -t f . label abc btrfs property set: too many arguments ... Signed-off-by: Kusanagi Kouichi sl...@ac.auone-net.jp --- cmds-property.c | 6

[PATCH] btrfs: Return EXDEV for cross file system snapshot

2014-01-29 Thread Kusanagi Kouichi
EXDEV seems an appropriate error if an operation fails bacause it crosses file system boundaries. Signed-off-by: Kusanagi Kouichi sl...@ac.auone-net.jp --- fs/btrfs/ioctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c index 34772cb

[PATCH] btrfs: Return EXDEV for cross file system snapshot

2014-01-08 Thread Kusanagi Kouichi
EXDEV seems an appropriate error if an operation fails bacause it crosses file system boundaries. Signed-off-by: Kusanagi Kouichi sl...@ac.auone-net.jp --- fs/btrfs/ioctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c index 21da576

Re: [PATCH] btrfs-progs: Fix automatic prerequisite generation

2013-07-09 Thread Kusanagi Kouichi
On 2013-07-08 19:09:25 +0200, David Sterba wrote: On Mon, Jul 08, 2013 at 06:46:07PM +0200, David Sterba wrote: On Sat, Jul 06, 2013 at 05:22:31PM +0900, Kusanagi Kouichi wrote: Some files don't compile because of insufficient prerequisite. $ make btrfs ... [CC] btrfs.o

[PATCH] btrfs-progs: Fix automatic prerequisite generation

2013-07-06 Thread Kusanagi Kouichi
Some files don't compile because of insufficient prerequisite. $ make btrfs ... [CC] btrfs.o btrfs.c:24:21: fatal error: version.h: No such file or directory #include version.h ^ compilation terminated. make: *** [btrfs.o] Error 1 Signed-off-by: Kusanagi Kouichi sl

[PATCH] btrfs-progs: Fix segmentation fault

2013-06-22 Thread Kusanagi Kouichi
) at btrfs.c:295 cmd = 0x6515d0 bname = optimized out Signed-off-by: Kusanagi Kouichi sl...@ac.auone-net.jp --- cmds-subvolume.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/cmds-subvolume.c b/cmds-subvolume.c index ccb4762..f005ba8 100644 --- a/cmds

[PATCH] btrfs-progs: btrfs requires version.h

2013-06-22 Thread Kusanagi Kouichi
terminated. make: *** [btrfs.o] Error 1 Signed-off-by: Kusanagi Kouichi sl...@ac.auone-net.jp --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index da7438e..0bca4d7 100644 --- a/Makefile +++ b/Makefile @@ -131,7 +131,7 @@ btrfs-%: version.h

[PATCH] Btrfs: Check CAP_DAC_READ_SEARCH for BTRFS_IOC_INO_PATHS

2013-01-28 Thread Kusanagi Kouichi
CAP_DAC_READ_SEARCH overrides read and search permission check on file and directory. It seems fit for BTRFS_IOC_INO_PATHS. Signed-off-by: Kusanagi Kouichi sl...@ac.auone-net.jp --- fs/btrfs/ioctl.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/btrfs/ioctl.c b/fs