[PATCH] btrfs: suppress a build warning on building 32bit kernel

2014-12-25 Thread Satoru Takeuchi
From: Satoru Takeuchi takeuchi_sat...@jp.fujitsu.com Suppress the following warning displayed on building 32bit (i686) kernel. === ... CC [M] fs/btrfs/extent_io.o fs/btrfs/extent_io.c: In function

Re: [PATCH v2 2/2] Btrfs: qgroup: Introduce a may_use to account space_info-bytes_may_use.

2014-12-25 Thread Satoru Takeuchi
Hi Yang, On 2014/12/26 10:32, Dongsheng Yang wrote: Hi Satoru, I saw your mail of [BUG] Quota Ignored On write problem still exist with 3.16-rc5 http://news.gmane.org/find-root.php?message_id=53C8DEB0.1060404%40jp.fujitsu.com in gmane. I guess this patch will fix the problem you mentioned.

Re: Debian/Jessie 3.16.7-ckt2-1 kernel error

2014-12-24 Thread Satoru Takeuchi
Hi Russel and all, On 2014/12/24 10:02, Russell Coker wrote: I've attached the kernel message log that I get after booting kernel 3.16.7 from Debian/Unstable. This is the kernel branch that will go into Debian/Jessie so it's important to get it fixed. Below has the start of the errors, the

Re: Debian/Jessie 3.16.7-ckt2-1 kernel error

2014-12-24 Thread Satoru Takeuchi
Hi Russel, Petr and all # Add Timofey to the Cc list. On 2014/12/24 10:02, Russell Coker wrote: I've attached the kernel message log that I get after booting kernel 3.16.7 from Debian/Unstable. This is the kernel branch that will go into Debian/Jessie so it's important to get it fixed.

Re: [PATCH 1/8] Add -v -q switches to mkfs.btrfs.

2014-12-24 Thread Satoru Takeuchi
On 2014/12/18 5:14, Goffredo Baroncelli wrote: Add -v -q switches to mkfs.btrfs, to control the verbosity of mkfs.btrfs. Signed-off-by: Goffredo Baroncelli kreij...@inwind.it Reviewed-by: Satoru Takeuchi takeuchi_sat...@jp.fujitsu.com --- mkfs.c | 16 ++-- 1 file changed

Re: [PATCH 3/8] Add verbose option to btrfs_add_to_fsid()

2014-12-24 Thread Satoru Takeuchi
Reviewed-by: Satoru Takeuchi takeuchi_sat...@jp.fujitsu.com --- mkfs.c | 3 ++- utils.c | 7 --- utils.h | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/mkfs.c b/mkfs.c index a5f19cc..042d12e 100644 --- a/mkfs.c +++ b/mkfs.c @@ -1638,7 +1638,8 @@ int main(int

Re: [PATCH 5/8] Return the fsid from make_btrfs()

2014-12-24 Thread Satoru Takeuchi
. The code is goods. However, I have a comment to the description. In this case, describing the purpose of this patch is better. I consider your purpose is to use fs_uuid after make_btrfs() when user doesn't passed -U option. Anyway, Reviewed-by: Satoru Takeuchi takeuchi_sat...@jp.fujitsu.com Thanks

Re: [PATCH 1/2] btrfs-progs: move check_arg_type() to util.c

2014-12-24 Thread Satoru Takeuchi
On 2014/12/25 10:16, Gui Hecheng wrote: The check_arg_type() function does quite generic thing, move it to utils.c. Signed-off-by: Gui Hecheng guihc.f...@cn.fujitsu.com Reviewed-by: Satoru Takeuchi takeuchi_sat...@jp.fujitsu.com --- cmds-filesystem.c | 32

Re: [PATCH 2/2] btrfs-progs: refine btrfs-debug-tree error prompt when a mount point given

2014-12-24 Thread Satoru Takeuchi
, '%s' is not a block device\n, av[optind]); fprintf(stderr, ERROR: '%s' is ...) is better since other error messages in btrfs-progs have this convention. Reviewed-by: Satoru Takeuchi takeuchi_sat...@jp.fujitsu.com Thanks, Satoru + print_usage(); + } + info

Re: [PATCH][BTRFS-PROGS][CLEANUP] Remove gotos

2014-12-23 Thread Satoru Takeuchi
Hi Goffredo, On 2014/12/23 4:07, Goffredo Baroncelli wrote: On 12/22/2014 12:34 PM, Satoru Takeuchi wrote: On 2014/12/22 3:07, Goffredo Baroncelli wrote: Change a spagetti-style code (there are some interlaced gotos) to a more modern style... This patch removes also some #define from

Re: [PATCH 1/2] Remove unnecessary placeholder in btrfs_err_code

2014-12-23 Thread Satoru Takeuchi
Hi Gui, On 2014/12/23 10:59, Gui Hecheng wrote: On Mon, 2014-12-22 at 19:39 +0900, Satoru Takeuchi wrote: Sorry, I forgot to add Signed-off-by line. --- From: Satoru Takeuchi takeuchi_sat...@jp.fujitsu.com notused is not necessary. Set 1 to the first entry is enough. Hi Satoru, Actually

[PATCH] Btrfs: Remove unnecessary placeholder in btrfs_err_code

2014-12-23 Thread Satoru Takeuchi
From: Satoru Takeuchi takeuchi_sat...@jp.fujitsu.com notused is not necessary. Set 1 to the first entry is enough. Signed-off-by: Takeuchi Satoru takeuchi_sat...@jp.fujitsu.com Cc: Gui Hecheng guihc.f...@cn.fujitsu.com --- I once submit the similar patch to btrfs-progs. Then Gui Hecheng tell me

[PATCH 1/2] Remove unnecessary placeholder in btrfs_err_code

2014-12-22 Thread Satoru Takeuchi
From: Satoru Takeuchi takeuchi_sat...@jp.fujitsu.com notused is not necessary. Set 1 to the first entry is enough. --- ioctl.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ioctl.h b/ioctl.h index 2c2c7c1..c377b96 100644 --- a/ioctl.h +++ b/ioctl.h @@ -474,8 +474,7

[PATCH 2/2] Capitalize elements in enum for improve readability.

2014-12-22 Thread Satoru Takeuchi
From: Satoru Takeuchi takeuchi_sat...@jp.fujitsu.com There are 25 enums in btrfs-progs and only two of them use lower case letters for the name of elements. Capitalize them to readability. Signed-off-by: Satoru Takeuchi takeuchi_sat...@jp.fujitsu.com --- cmds-property.c | 18

Re: [PATCH 1/2] Remove unnecessary placeholder in btrfs_err_code

2014-12-22 Thread Satoru Takeuchi
Sorry, I forgot to add Signed-off-by line. --- From: Satoru Takeuchi takeuchi_sat...@jp.fujitsu.com notused is not necessary. Set 1 to the first entry is enough. Signed-off-by: Satoru Takeuchi takeuchi_sat...@jp.fujitsu.com --- ioctl.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions

Re: [PATCH][BTRFS-PROGS][CLEANUP] Remove gotos

2014-12-22 Thread Satoru Takeuchi
On 2014/12/22 3:07, Goffredo Baroncelli wrote: Change a spagetti-style code (there are some interlaced gotos) to a more modern style... This patch removes also some #define from utils.h, which define constants used only in cmds-filesystems.c . Instead an enum is used locally in

Re: [PATCH 3/6] btrfs-progs: fi usage, update manpage

2014-12-21 Thread Satoru Takeuchi
On 2014/12/19 22:36, David Sterba wrote: On Fri, Dec 19, 2014 at 06:56:43PM +0900, Satoru Takeuchi wrote: +There are some options to set unit. See the description of *df* subcommand +from '-b' option to '-t' option. The unit options exist only for very few subcommands so I found it more

Re: Oddly slow read performance with near-full largish FS

2014-12-21 Thread Satoru Takeuchi
Hi, On 2014/12/22 6:32, Robert White wrote: On 12/21/2014 08:32 AM, Charles Cazabon wrote: Hi, Robert, Thanks for the response. Many of the things you mentioned I have tried, but for completeness: Have you taken SMART (smartmotools etc) to these disks There are no errors or warnings from

Re: [PATCH] btrfs-progs: Don't increase error count if the inode can be repaired.

2014-12-21 Thread Satoru Takeuchi
-by: Satoru Takeuchi takeuchi_sat...@jp.fujitsu.com Thanks, Satoru --- cmds-check.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cmds-check.c b/cmds-check.c index 3e7a4eb..aa47984 100644 --- a/cmds-check.c +++ b/cmds-check.c @@ -2302,7 +2302,7 @@ static int

Re: [PATCH] btrfs-progs: Documentation: add T/P/E description for resize cmd

2014-12-21 Thread Satoru Takeuchi
)/or \'E\'(EiB)/ is better. Reviewed-by: Satoru Takeuchi takeuchi_sat...@jp.fujitsu.com Thanks, Satoru + If \'max' is passed, the filesystem will occupy all available space on the device devid. -- To unsubscribe from this list: send the line unsubscribe linux-btrfs in the body

Re: Oddly slow read performance with near-full largish FS

2014-12-19 Thread Satoru Takeuchi
Hi, Sorry for late reply. Let me ask some questions. On 2014/12/17 11:42, Charles Cazabon wrote: Hi, I've been running btrfs for various filesystems for a few years now, and have recently run into problems with a large filesystem becoming *really* slow for basic reading. None of the

Re: [PATCH v4] xfstests: btrfs: add test case for qgroup account on shared extents

2014-12-19 Thread Satoru Takeuchi
://patchwork.kernel.org/patch/5499981/ Btrfs: fix a warning of qgroup account on shared extents Signed-off-by: Liu Bo bo.li@oracle.com Tested-by: Satoru Takeuchi takeuchi_sat...@jp.fujitsu.com V4 also passed my test, Thanks, Satoru Reviewed-by: Satoru Takeuchi takeuchi_sat...@jp.fujitsu.com

Re: [PATCH 0/5] Cleanup warnings from clang

2014-12-19 Thread Satoru Takeuchi
a clang dead-judgement warning in disk-io.c. btrfs-progs: Remove a unused function root_gtp_mask(). btrfs-progs: Remove a unused function offset_to_bitmap() btrfs-progs: Remove deprecated _BSD_SOURCE macro. All these patches looks good to me. Reviewed-by: Satoru Takeuchi takeuchi_sat

Re: [PATCH 3/6] btrfs-progs: fi usage, update manpage

2014-12-19 Thread Satoru Takeuchi
. ... === I consider it can prevent mistakes caused by further changes. This patch seems to already be in devel/integration-20141218. Here is the patch example. --- From: Satoru Takeuchi takeuchi_sat...@jp.fujitsu.com Subject: [PATCH] btrfs-progs: Cleanup

Re: [PATCH 3/6] btrfs-progs: fi usage, update manpage

2014-12-18 Thread Satoru Takeuchi
Hi David, On 2014/12/18 23:27, David Sterba wrote: Signed-off-by: David Sterba dste...@suse.cz --- Documentation/btrfs-filesystem.txt | 28 1 file changed, 28 insertions(+) diff --git a/Documentation/btrfs-filesystem.txt

[PATCH] btrfs-progs: cleanup: avoid to use literal for getopt val

2014-12-18 Thread Satoru Takeuchi
From: Satoru Takeuchi takeuchi_sat...@jp.fujitsu.com --- Tested with dev/integration-20141218 + this patch --- cmds-fi-disk_usage.c | 8 cmds-filesystem.c| 8 utils.h | 3 +++ 3 files changed, 11 insertions(+), 8 deletions(-) diff --git a/cmds-fi-disk_usage.c

[PATCH] btrfs-progs: Enhance the document of btrfs property

2014-12-18 Thread Satoru Takeuchi
From: Satoru Takeuchi takeuchi_sat...@jp.fujitsu.com Enhance the document of btrfs property as follows. - Add the description about the candidates of name. - Enrich the description of object. - Fix typos and some redundancy. Signed-off-by: Satoru Takeuchi takeuchi_sat...@jp.fujitsu.com Reported

Re: [PATCH] Btrfs: cleanup unused run_most

2014-12-17 Thread Satoru Takeuchi
(2014/12/17 17:14), Liu Bo wrote: run_most is not used anymore. Signed-off-by: Liu Bo bo.li@oracle.com Reviewed-by: Satoru Takeuchi takeuchi_sat...@jp.fujitsu.com Thanks, Satoru --- fs/btrfs/extent-tree.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/fs

Re: [PATCH v3] xfstests: btrfs: add test case for qgroup account on shared extents

2014-12-17 Thread Satoru Takeuchi
-off-by: Liu Bo bo.li@oracle.com Reviewed-by: Eryu Guan eg...@redhat.com It looks good to me. Reviewed-by: Satoru Takeuchi takeuchi_sat...@jp.fujitsu.com Tested-by: Satoru Takeuchi takeuchi_sat...@jp.fujitsu.com * Test result ** The latest upstream kernel without your patch Failed

[PATCH 1/2] Fix wrong memory free on check_is_root

2014-12-17 Thread Satoru Takeuchi
From: Satoru Takeuchi takeuchi_sat...@jp.fujitsu.com Date: Thu, 18 Dec 2014 14:35:22 +0900 @tmp is freed even if its allocation fails. Signed-off-by: Satoru Takeuchi takeuchi_sat...@jp.fujitsu.com --- cmds-property.c | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff

[PATCH 2/2] btrfs-progs: fix the file system root is regarded as non-root

2014-12-17 Thread Satoru Takeuchi
From: Satoru Takeuchi takeuchi_sat...@jp.fujitsu.com When / is Btrfs, btrfs property subcommand / regards it as non-root by mistake. check_is_root() regards @object as a file system root if the following two conditions are satisfied. a) Both @object and its parent directory are Btrfs object

Re: [PATCH 1/2] Fix wrong memory free on check_is_root

2014-12-17 Thread Satoru Takeuchi
On 2014/12/18 16:03, Gui Hecheng wrote: On Thu, 2014-12-18 at 15:09 +0900, Satoru Takeuchi wrote: From: Satoru Takeuchi takeuchi_sat...@jp.fujitsu.com Date: Thu, 18 Dec 2014 14:35:22 +0900 @tmp is freed even if its allocation fails. Signed-off-by: Satoru Takeuchi takeuchi_sat

Re: [PATCH 2/2] btrfs-progs: fix the file system root is regarded as non-root

2014-12-17 Thread Satoru Takeuchi
On 2014/12/18 16:09, Gui Hecheng wrote: On Thu, 2014-12-18 at 15:42 +0900, Satoru Takeuchi wrote: From: Satoru Takeuchi takeuchi_sat...@jp.fujitsu.com When / is Btrfs, btrfs property subcommand / regards it as non-root by mistake. check_is_root() regards @object as a file system root

[PATCH v2] Fix wrong memory free on check_is_root

2014-12-17 Thread Satoru Takeuchi
From: Satoru Takeuchi takeuchi_sat...@jp.fujitsu.com When / is Btrfs, btrfs property subcommand / regards it as non-root by mistake. check_is_root() regards @object as a file system root if the following two conditions are satisfied. a) Both @object and its parent directory are Btrfs object

[PATCH] btrfs-progs: Add a brief explanation of btrfs property in man 8 btrfs

2014-12-16 Thread Satoru Takeuchi
From: Satoru Takeuchi takeuchi_sat...@jp.fujitsu.com As Chris reported at the following mail, although btrfs property has its own manpage, man 8 btrfs-property, there is no explanation about it in man 8 btrfs. https://www.mail-archive.com/linux-btrfs@vger.kernel.org/msg40134.html Signed-off

Re: finding path of subvolume from uuid

2014-12-16 Thread Satoru Takeuchi
Hi, (2014/12/16 18:52), Joe Doliner wrote: Using `btrfs subvolume show path` I can get information about what a subvolume's parent is by uuid. I'd like to use that information to perform a find-new between the subvolume and its parent. To do that though I need the path of the parent and I'm not

Re: [PATCH] xfstests: btrfs/080 add test case for qgroup account on shared extents

2014-12-16 Thread Satoru Takeuchi
Hi Liu, (2014/12/16 21:10), Eryu Guan wrote: On Tue, Dec 16, 2014 at 05:43:24PM +0800, Liu Bo wrote: This is a regression test of 'commit fcebe4562dec (Btrfs: rework qgroup accounting)' It can produce qgroup related warnings. Signed-off-by: Liu Bo bo.li@oracle.com I have trouble

Re: [PATCH] Btrfs: correctly get tree level in tree_backref_for_extent

2014-12-15 Thread Satoru Takeuchi
a scrub which produced the following warning: BTRFS: checksum error at logical 42123264 on dev /dev/sde, sector 15840: metadata node (level 24) in tree 5 Signed-off-by: Filipe Manana fdman...@suse.com Reviewed-by: Satoru Takeuchi takeuchi_sat...@jp.fujitsu.com In addition, build v3.18

Re: [PATCH 6/7] Print the summary

2014-12-15 Thread Satoru Takeuchi
(2014/12/16 5:02), Goffredo Baroncelli wrote: This patch print the summary of the filesystem after the creation. The main fileds printed are: - devices list with their uuid, devid, path and size - raid profile (dup,single,raid0...) - leafsize/nodesize/sectorsize - filesystem features

Re: [PATCH 1/7] Add -v -q switches to mkfs.btrfs.

2014-12-15 Thread Satoru Takeuchi
(2014/12/16 5:02), Goffredo Baroncelli wrote: Add -v -q switches to mkfs.btrfs, to control the verbosity of mkfs.btrfs. Signed-off-by: Goffredo Baroncelli kreij...@inwind.it Although this patch provides the interface of two new switches, it doesn't work at all only by this patch. I consider

Re: btrfs subvolume list feature request

2014-12-15 Thread Satoru Takeuchi
Hi Ali, (2014/12/16 11:01), Ali AlipourR wrote: Hi I think it will be to add option to btrfs subvolume list command to also show the property of sub volumes (ro, compression,...)? do this is possible? Of course it's possible by writing some code :-D Is btrfs property get subvol (and some

Re: [PATCH v2 2/3] Btrfs: raid56: simplify the parameter of nr_parity_stripes().

2014-12-15 Thread Satoru Takeuchi
the parameter of struct map_lookup * with a profile type. Then we can use it more easily. Signed-off-by: Dongsheng Yang yangds.f...@cn.fujitsu.com Although patch 1/3 and patch 3/3 is being discussed, at least this patch (patch 2/3) looks fine to me. Reviewed-by: Satoru Takeuchi takeuchi_sat

Re: Possible to undo subvol delete?

2014-12-03 Thread Satoru Takeuchi
Hi David, (2014/12/04 4:12), David Sterba wrote: On Wed, Dec 03, 2014 at 09:11:48AM +0900, Satoru Takeuchi wrote: It's not a Btrfs itself's feature. It's a snapper's feature. It works as a helper of snapshot management. 1. You takes /snap by snapper create command. 2. You delete /snap

Re: BTRFS equivalent for tune2fs?

2014-12-02 Thread Satoru Takeuchi
Hi, (2014/12/02 16:39), Brendan Hide wrote: On 2014/12/02 09:31, Brendan Hide wrote: On 2014/12/02 07:54, MegaBrutal wrote: Hi all, I know there is a btrfstune, but it doesn't provide all the functionality I'm thinking of. For ext2/3/4 file systems I can get a bunch of useful data with

Re: Possible to undo subvol delete?

2014-12-02 Thread Satoru Takeuchi
(2014/12/03 0:17), Shriramana Sharma wrote: On Tue, Dec 2, 2014 at 12:41 PM, Satoru Takeuchi takeuchi_sat...@jp.fujitsu.com wrote: Snapper can automatically take a snapshot just before taking/deleting snapshots. So, if you delete a snapshot by mistake, it's still alive. Sorta contradicts

Re: [PATCH 0/6] More generic inode nlink repair function

2014-12-02 Thread Satoru Takeuchi
Hi, (2014/12/03 14:03), Ed Tomlinson wrote: Hi, I'd really like to see these patches included in btrfsck - they repaired my fs. Once Qu got them working they found additional corruptions. This time there was no crash or stall just an umount that left (chromium) files unlinked... The bug

Re: Possible to undo subvol delete?

2014-12-01 Thread Satoru Takeuchi
Hi, (2014/11/30 12:33), Shriramana Sharma wrote: IIUC with BtrFS while it is possible to easily undelete a file or ordinary directory if a snapshot of the containing subvol exists, it seems that it's not elementary to undelete a subvol itself, because all subvols are under the root-level subvol

Re: [PATCH 1/4] btrfs: correct empty compression property behavior

2014-10-15 Thread Satoru Takeuchi
Hi David and Chris, (2014/09/29 18:36), David Sterba wrote: On Fri, Sep 19, 2014 at 05:45:49PM +0900, Satoru Takeuchi wrote: In the current implementation, compression property == has the two different meanings: one is with BTRFS_INODE_NOCOMPRESS, and the other is without this flag. So, even

[PATCH v2 3/4] btrfs: Rename and export __btrfs_set_prop to be called from running transaction

2014-09-24 Thread Satoru Takeuchi
Hi David, (2014/09/22 21:01), David Sterba wrote: On Fri, Sep 19, 2014 at 05:52:17PM +0900, Satoru Takeuchi wrote: @@ -99,7 +99,7 @@ find_prop_handler(const char *name, return NULL; } -static int __btrfs_set_prop(struct btrfs_trans_handle *trans, +int __btrfs_set_prop(struct

[PATCH v2 4/4] btrfs: Fix compression related ioctl to run atomic operations in one transaction

2014-09-24 Thread Satoru Takeuchi
and aggregates this work to btrfs_set_prop_trans() at all. Signed-off-by: Naohiro Aota na...@elisp.net Signed-off-by: Satoru Takeuchi takeuchi_sat...@jp.fujitsu.com --- changelog v1-v2: Reflect the following comment from David https://www.mail-archive.com/linux-btrfs

Re: [PATCH 2/5] btrfs: correct a message on setting nodatacow

2014-09-19 Thread Satoru Takeuchi
Hi Qu, Thank you for your comment. (2014/09/19 11:03), Qu Wenruo wrote: Original Message Subject: [PATCH 2/5] btrfs: correct a message on setting nodatacow From: Satoru Takeuchi takeuchi_sat...@jp.fujitsu.com To: linux-btrfs@vger.kernel.org linux-btrfs@vger.kernel.org Date

Re: [PATCH v2] btrfs: Fix and enhance merge_extent_mapping() to insert best fitted extent map

2014-09-19 Thread Satoru Takeuchi
the 51f39 commit and reduce an unneeded extent map tree search. Reported-by: Tsutomu Itoh t-i...@jp.fujitsu.com Signed-off-by: Qu Wenruo quwen...@cn.fujitsu.com Reviewed-by: Liu Bo bo.li@oracle.com Tested-by: Satoru Takeuchi takeuchi_sat...@jp.fujitsu.com Sorry to late reply. I confirmed

[PATCH 1/4] btrfs: correct empty compression property behavior

2014-09-19 Thread Satoru Takeuchi
[1]; int fd = open(name, O_RDONLY); long x; ioctl(fd, FS_IOC_GETFLAGS, x); printf(0x%lx\n, x); return 0; } === Signed-off-by: Naohiro Aota na...@elisp.net Signed-off-by: Satoru Takeuchi takeuchi_sat...@jp.fujitsu.com --- fs/btrfs/props.c | 4 ++-- 1 file changed, 2

[PATCH 2/4] btrfs: introduce new compression property to disable compression at all

2014-09-19 Thread Satoru Takeuchi
From: Naohiro Aota na...@elisp.net This new compression property, off, to disable compression of the file at all. Signed-off-by: Naohiro Aota na...@elisp.net Signed-off-by: Satoru Takeuchi takeuchi_sat...@jp.fujitsu.com --- fs/btrfs/props.c | 13 + 1 file changed, 13 insertions

[PATCH 3/4] btrfs: export __btrfs_set_prop

2014-09-19 Thread Satoru Takeuchi
From: Naohiro Aota na...@elisp.net Export __btrfs_set_prop() to be able to call it with running transaction. Signed-off-by: Naohiro Aota na...@elisp.net Signed-off-by: Satoru Takeuchi takeuchi_sat...@jp.fujitsu.com --- fs/btrfs/props.c | 2 +- fs/btrfs/props.h | 6 ++ 2 files changed, 7

[PATCH 4/4] btrfs: Fix compression related ioctl to run atomic operations in one transaction

2014-09-19 Thread Satoru Takeuchi
and aggregates this work to __btrfs_set_prop() at all. Signed-off-by: Naohiro Aota na...@elisp.net Signed-off-by: Satoru Takeuchi takeuchi_sat...@jp.fujitsu.com --- fs/btrfs/ioctl.c | 32 +++- 1 file changed, 11 insertions(+), 21 deletions(-) diff --git a/fs/btrfs

[PATCH 1/5] btrfs: nodatasum drop compress

2014-09-18 Thread Satoru Takeuchi
) === This behavior collides with Documentation/filesystems/btrfs.txt: === ... If compression is enabled, nodatacow and nodatasum are disabled. ... === This patch drops the compress flags upon nodatasum flag. Signed-off-by: Naohiro Aota na...@elisp.net Signed-off-by: Satoru Takeuchi takeuchi_sat

[PATCH 2/5] btrfs: correct a message on setting nodatacow

2014-09-18 Thread Satoru Takeuchi
] BTRFS info (device vda2): setting nodatacow [ 3845.719055] BTRFS info (device vda2): disk space caching is enabled === Signed-off-by: Naohiro Aota na...@elisp.net Signed-off-by: Satoru Takeuchi takeuchi_sat...@jp.fujitsu.com --- fs/btrfs/super.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions

[PATCH 3/5] btrfs: notice nodatasum is also enabled with nodatacow

2014-09-18 Thread Satoru Takeuchi
...@elisp.net Signed-off-by: Satoru Takeuchi takeuchi_sat...@jp.fujitsu.com --- fs/btrfs/super.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c index d131098..7ad4293 100644 --- a/fs/btrfs/super.c +++ b/fs/btrfs/super.c @@ -464,9 +464,9

[PATCH 4/5] btrfs: suppress a verbose message about enabling space cache on remounting

2014-09-18 Thread Satoru Takeuchi
From: Naohiro Aota na...@elisp.net Remount operation always tells you it enabled space cache. I consider it's a bit verbose and is better not to show this message on remounting. Signed-off-by: Naohiro Aota na...@elisp.net Signed-off-by: Satoru Takeuchi takeuchi_sat...@jp.fujitsu.com --- fs

[PATCH 5/5] btrfs: rework compression related options processing

2014-09-18 Thread Satoru Takeuchi
...@elisp.net Signed-off-by: Satoru Takeuchi takeuchi_sat...@jp.fujitsu.com --- fs/btrfs/super.c | 57 +++- 1 file changed, 40 insertions(+), 17 deletions(-) diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c index 03131c5..83433e15 100644 --- a/fs

[PATCH] btrfs-progs: fix many typos in documents

2014-09-18 Thread Satoru Takeuchi
From: Naohiro Aota na...@elisp.net There are many trivial typos in Documentation/*.txt. All of these use exist status to mean exit status by mistake. I guess someone first made this mistake and it has spread by copy-and-paste :-D Signed-off-by: Naohiro Aota na...@elisp.net Signed-off-by: Satoru

Re: [PATCH] Btrfs: add missing compression property remove in btrfs_ioctl_setflags

2014-09-15 Thread Satoru Takeuchi
Hi Filipe, # I added Chris to the CC list since this topic is to discuss # whether the current behavior is correct or not. (2014/09/11 18:48), Filipe David Manana wrote: On Thu, Sep 11, 2014 at 5:41 AM, Satoru Takeuchi takeuchi_sat...@jp.fujitsu.com wrote: Hi Filipe, (2014/09/11 0:10

Re: [PATCH v2] btrfs-progs: deal with conflict options for btrfs fi show

2014-09-11 Thread Satoru Takeuchi
Hi Gui, (2014/09/12 10:15), Gui Hecheng wrote: For btrfs fi show, -d|--all-devices -m|--mounted will overwrite each other, so if specified both, let the user know that he should not use them at the same time. Signed-off-by: Gui Hecheng guihc.f...@cn.fujitsu.com --- changelog:

Re: [PATCH] Btrfs: add missing compression property remove in btrfs_ioctl_setflags

2014-09-10 Thread Satoru Takeuchi
Hi Filipe, (2014/09/11 0:10), Filipe Manana wrote: The behaviour of a 'chattr -c' consists of getting the current flags, clearing the FS_COMPR_FL bit and then sending the result to the set flags ioctl - this means the bit FS_NOCOMP_FL isn't set in the flags passed to the ioctl. This results

[PATCH] btrfs-progs: doc: fix invalid reference to setattr(8)

2014-09-08 Thread Satoru Takeuchi
From: Naohiro Aota na...@elisp.net man 8 btrfs-property refers to `setattr(8)` which does not actually exist. It should refer to `chattr (1)` instead. Signed-off-by: Naohiro Aota na...@elisp.net --- Documentation/btrfs-property.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

Re: [PATCH] btrfs-progs: Fix a misformatting in 'man btrfs-replace'

2014-08-17 Thread Satoru Takeuchi
(2014/08/12 17:30), Satoru Takeuchi wrote: From: Satoru Takeuchi takeuchi_sat...@jp.fujitsu.com Just fix the following misformatting in 'man btrfs-replace'. Please ignore this patch. It's part of the following Qu's patch. https://www.mail-archive.com/linux-btrfs@vger.kernel.org/msg36116.html

[PATCH 1/3 v2] btrfs-progs: random fixes of btrfs-filesystem documentation

2014-08-12 Thread Satoru Takeuchi
From: Satoru Takeuchi takeuchi_sat...@jp.fujitsu.com - Simplify the description of both man and usage. - Add the description about short options for '--all-devices and '--mounted', '-d' and '-m' respectively. - Fix to show -d and -m is not exclusive with 'path|uuid|device|label

[PATCH 1/3 v3] btrfs-progs: random fixes of btrfs-filesystem documentation

2014-08-12 Thread Satoru Takeuchi
Oops, I sent a wrong patch. Here is the correct one. === From: Satoru Takeuchi takeuchi_sat...@jp.fujitsu.com - Simplify the description of both man and usage. - Add the description about short options for '--all-devices' and '--mounted', '-d' and '-m' respectively. - Fix to show -d

[PATCH 1/3 v4] btrfs-progs: random fixes of btrfs-filesystem documentation

2014-08-12 Thread Satoru Takeuchi
Here is the *really* correct one. I seems to need a break ;-( === From: Satoru Takeuchi takeuchi_sat...@jp.fujitsu.com - Simplify the description of both man and usage. - Add the description about short options for '--all-devices' and '--mounted', '-d' and '-m' respectively. - Fix to show

[PATCH] btrfs-progs: Fix a misformatting in 'man btrfs-replace'

2014-08-12 Thread Satoru Takeuchi
From: Satoru Takeuchi takeuchi_sat...@jp.fujitsu.com Just fix the following misformatting in 'man btrfs-replace'. === -f

(FYI) I'll be offline several days

2014-08-12 Thread Satoru Takeuchi
Hi all, I'll be offline as summer vacation for several days. So, until Aug 18, probably I can't send any reply... Thanks, Satoru -- To unsubscribe from this list: send the line unsubscribe linux-btrfs in the body of a message to majord...@vger.kernel.org More majordomo info at

[PATCH 1/3] btrfs-progs: random fixes of btrfs-filesystem documentation

2014-08-11 Thread Satoru Takeuchi
From: Satoru Takeuchi takeuchi_sat...@jp.fujitsu.com - Simplify and unify the description of both man and usage. - Fix to show -m and -d is not exclusive with path|uuid|device|label. - Add the description about short options for --mounted and --all-devices, -m and -d respectively

[PATCH 2/3] btrfs-progs: avoid to use numeric literal for the size of uuid buffer

2014-08-11 Thread Satoru Takeuchi
From: Satoru Takeuchi takeuchi_sat...@jp.fujitsu.com Replace a numeric literal to more descriptive macro for the size of uuid buffer. Signed-of-by: Satoru Takeuchi takeuchi_sat...@jp.fujitsu.com --- cmds-filesystem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmds

[PATCH 3/3] btrfs-progs: Show error message if btrfs filesystem show failed to find any btrfs filesystem

2014-08-11 Thread Satoru Takeuchi
From: Satoru Takeuchi takeuchi_sat...@jp.fujitsu.com Current btrfs doesn't display any error message if this command failed to find any btrfs filesystem corresponding to path|uuid|device|label which user specified. Signed-off-by: Satoru Takeuchi takeuchi_sat...@jp.fujitsu.com --- cmds

Re: [PATCH] Btrfs: don't monopolize a core when evicting inode

2014-08-11 Thread Satoru Takeuchi
] ? mntput_no_expire+0x17/0x1f0 [86304.300036] [811e0517] SyS_umount+0x97/0x100 (...) Signed-off-by: Filipe Manana fdman...@suse.com Reviewed-by: Satoru Takeuchi takeuchi_sat...@jp.fujitsu.com Tested-by: Satoru Takeuchi takeuchi_sat...@jp.fujitsu.com --- fs/btrfs/inode.c

Re: [PATCH] Btrfs: clone, don't create invalid hole extent map

2014-08-11 Thread Satoru Takeuchi
we weren't aligning the extent's length to the sector size, and therefore incorrectly treating the range [inline_extent_length; sector_size[ as a hole. Signed-off-by: Filipe Manana fdman...@suse.com Reviewed-by: Satoru Takeuchi takeuchi_sat...@jp.fujitsu.com --- fs/btrfs/ioctl.c | 3

Re: [PATCH 1/3] btrfs-progs: random fixes of btrfs-filesystem documentation

2014-08-11 Thread Satoru Takeuchi
Hi Eric, (2014/08/12 2:05), Eric Sandeen wrote: On 8/11/14, 2:11 AM, Satoru Takeuchi wrote: From: Satoru Takeuchi takeuchi_sat...@jp.fujitsu.com - Simplify and unify the description of both man and usage. - Fix to show -m and -d is not exclusive with path|uuid|device|label. - Add

Re: [PATCH 1/3] btrfs-progs: random fixes of btrfs-filesystem documentation

2014-08-11 Thread Satoru Takeuchi
Hi Eric, (2014/08/12 2:14), Eric Sandeen wrote: On 8/11/14, 10:05 AM, Eric Sandeen wrote: On 8/11/14, 2:11 AM, Satoru Takeuchi wrote: From: Satoru Takeuchi takeuchi_sat...@jp.fujitsu.com - Simplify and unify the description of both man and usage. - Fix to show -m and -d is not exclusive

Re: [PATCH] Btrfs: fix regression of btrfs device replace

2014-08-11 Thread Satoru Takeuchi
) { disk = one_device-bdev-bd_part; disk_kobj = part_to_dev(disk)-kobj; Applied to 3.16.0 and tested, problem is fixed. Chris Murphy Reviewed-by: Satoru Takeuchi takeuchi_sat...@jp.fujitsu.com Tested-by: Satoru Takeuchi takeuchi_sat...@jp.fujitsu.com I confirmed both

btrfs-progs: random fixes for usage string of btrfs scrub

2014-08-10 Thread Satoru Takeuchi
From: Satoru Takeuchi takeuchi_sat...@jp.fujitsu.com - Add missing description about -R option in the command usage of btrfs scrub resume. - Add missing comma to avoid the following misformatted command usage of btrfs scrub start. See the line of -R option. === usage: btrfs scrub start

btrfs-progs: add missing descriptions of '--max-errors' in btrfs-receive documentation

2014-08-10 Thread Satoru Takeuchi
From: Satoru Takeuchi takeuchi_sat...@jp.fujitsu.com Fix the lack of description of --max-erros option in both man and command usage of btrfs receive. Signed-off-by: Satoru Takeuchi takeuchi_sat...@jp.fujitsu.com --- Documentation/btrfs-receive.txt | 2 +- cmds-receive.c | 4

Re: [PATCH] btrfs-progs: Documentations: Fix a format error in btrfs-replace.txt

2014-08-07 Thread Satoru Takeuchi
(2014/08/04 16:28), Qu Wenruo wrote: Missing '+'s cause '-B' option not displayed correctly, add it to fix. Signed-off-by: Qu Wenruo quwen...@cn.fujitsu.com Reviewed-by: Satoru Takeuchi takeuchi_sat...@jp.fujitsu.com Tested-by: Satoru Takeuchi takeuchi_sat...@jp.fujitsu.com

Re: [PATCH] btrfs: SSD related mount option dependency rework.

2014-08-07 Thread Satoru Takeuchi
Hi Qu, (2014/08/01 12:27), Qu Wenruo wrote: According to Documentations/filesystem/btrfs.txt, ssd/ssd_spread/nossd has their own dependency(See below), but only ssd_spread implying ssd is implemented. ssd_spread implies ssd, conflicts nossd. ssd conflicts nossd. nossd conflicts ssd and

[PATCH 1/2 v3] btrfs-progs: introduce test_issubvolname() for simplicity

2014-07-31 Thread Satoru Takeuchi
From: Satoru Takeuchi takeuchi_sat...@jp.fujitsu.com There are many duplicated codes to check if the given string is correct subvolume name. Introduce test_issubvolname() for this purpose for simplicity. Signed-off-by: Satoru Takeuchi takeuchi_sat...@jp.fujitsu.com Cc: David Sterba dste

[PATCH 2/2] btrfs-progs: move test_isdir() to utils.c

2014-07-31 Thread Satoru Takeuchi
From: Satoru Takeuchi takeuchi_sat...@jp.fujitsu.com Since test_isdir() is a utility function, it's better to move it to utils.c. In addition, const char * is more appropriate type as its path argument because this argument is not changed in this function. Signed-off-by: Satoru Takeuchi

Re: [PATCH] btrfs-progs: mkfs: remove experimental tag

2014-07-31 Thread Satoru Takeuchi
(2014/07/31 21:21), David Sterba wrote: Make it consistent with kernel status and documentation. Signed-off-by: David Sterba dste...@suse.cz Reviewed-by: Satoru Takeuchi takeuchi_sat...@jp.fujitsu.com I'm glad to see this patch :-) Thanks, Satoru --- mkfs.c | 5 ++--- 1 file changed

Re: [PATCH 1/4] btrfs-progs: adjust the return values for scrub

2014-07-30 Thread Satoru Takeuchi
Hi Gui, (2014/07/17 11:40), Gui Hecheng wrote: o Return 0 to indicate success, when detected errors were corrected during scrubbing. P.s. This is also to facilitate scripting when return value is to be checked. o Warn the users if there are uncorrectable errors detected.

Re: [PATCH 2/4] btrfs-progs: remove unnecessary judgment for fd in scrub

2014-07-30 Thread Satoru Takeuchi
Hi Gui, (2014/07/17 11:40), Gui Hecheng wrote: The scrub_read_file function is always on a branch, which has (fd = 0), so there is not need to judgment the pasted in arg. Signed-off-by: Gui Hecheng guihc.f...@cn.fujitsu.com --- cmds-scrub.c | 3 --- 1 file changed, 3 deletions(-)

Re: [PATCH 4/4] btrfs-progs: correct manpage option description for scrub

2014-07-30 Thread Satoru Takeuchi
Hi Gui, (2014/07/30 14:39), Gui Hecheng wrote: On Wed, 2014-07-30 at 14:20 +0900, Satoru Takeuchi wrote: Hi Gui, (2014/07/17 11:40), Gui Hecheng wrote: The -f option of scrub means to skip checking running scrub, not to force checking. Signed-off-by: Gui Hecheng guihc.f...@cn.fujitsu.com

Re: [PATCH 1/4] btrfs-progs: adjust the return values for scrub

2014-07-30 Thread Satoru Takeuchi
Hi Gui, (2014/07/30 15:03), Satoru Takeuchi wrote: Hi Gui, (2014/07/17 11:40), Gui Hecheng wrote: o Return 0 to indicate success, when detected errors were corrected during scrubbing. P.s. This is also to facilitate scripting when return value is to be checked. o Warn

[PATCH] btrfs-progs: remove unnecessary NULL check after get_df()

2014-07-30 Thread Satoru Takeuchi
From: Satoru Takeuchi takeuchi_sat...@jp.fujitsu.com If get_df() returns 0, sargs surely points to malloc'ed region. So NULL check of sargs is not necessary. Signed-off-by: Satoru Takeuchi takeuchi_sat...@jp.fujitsu.com --- cmds-filesystem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion

Re: [PATCH 1/2] btrfs-progs: introduce test_issubvolname() for simplicity

2014-07-29 Thread Satoru Takeuchi
Hi David, (2014/07/29 22:32), David Sterba wrote: On Fri, Jul 25, 2014 at 03:16:58PM +0900, Satoru Takeuchi wrote: From: Satoru Takeuchi takeuchi_sat...@jp.fujitsu.com There are many duplicated codes to check if the given string is correct subvolume name. Introduce test_issubvolname

Re: [PATCH 4/4] btrfs-progs: correct manpage option description for scrub

2014-07-29 Thread Satoru Takeuchi
Hi Gui, (2014/07/17 11:40), Gui Hecheng wrote: The -f option of scrub means to skip checking running scrub, not to force checking. Signed-off-by: Gui Hecheng guihc.f...@cn.fujitsu.com --- Documentation/btrfs-scrub.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH 2/2] btrfs-progs: Unify the messy error message formats

2014-07-28 Thread Satoru Takeuchi
formats From: Satoru Takeuchi takeuchi_sat...@jp.fujitsu.com - There are many format to show snapshot name in error messages, '%s', '%s, %s, ('%s'), and ('%s). Since it's messy, unify these to '%s' format. - Fix a type: s/uncorrect/incorrect/ Signed-off-by: Satoru Takeuchi takeuchi_sat

Re: [PATCH v2] btrfs: Return right extent when fiemap gives unaligned offset and len.

2014-07-28 Thread Satoru Takeuchi
Hi Qu, (2014/07/25 17:16), Qu Wenruo wrote: Original Message Subject: Re: [PATCH v2] btrfs: Return right extent when fiemap gives unaligned offset and len. From: Satoru Takeuchi takeuchi_sat...@jp.fujitsu.com To: Qu Wenruo quwen...@cn.fujitsu.com, linux-btrfs@vger.kernel.org

[PATCH 1/2] btrfs-progs: introduce test_issubvolname() for simplicity

2014-07-25 Thread Satoru Takeuchi
From: Satoru Takeuchi takeuchi_sat...@jp.fujitsu.com There are many duplicated codes to check if the given string is correct subvolume name. Introduce test_issubvolname() for this purpose for simplicity. Signed-off-by: Satoru Takeuchi takeuchi_sat...@jp.fujitsu.com --- cmds-subvolume.c | 21

[PATCH 2/2] btrfs-progs: Unify the messy error message formats

2014-07-25 Thread Satoru Takeuchi
From: Satoru Takeuchi takeuchi_sat...@jp.fujitsu.com - There are many format to show snapshot name in error messages, '%s', '%s, %s, ('%s'), and ('%s). Since it's messy, unify these to '%s' format. - Fix a type: s/uncorrect/incorrect/ Signed-off-by: Satoru Takeuchi takeuchi_sat

Re: [PATCH v2] btrfs: Return right extent when fiemap gives unaligned offset and len.

2014-07-25 Thread Satoru Takeuchi
Hi Qu, (2014/07/25 10:49), Qu Wenruo wrote: When page aligned start and len passed to extent_fiemap(), the result is good, but when start and len is not aligned, e.g. start = 1 and len = 4095 is passed to extent_fiemap(), it returns no extent. The problem is that start and len is all

[PATCH] btrfs: use IS_ALIGNED() for assertion in btrfs_lookup_csums_range() for simplicity

2014-07-25 Thread Satoru Takeuchi
From: Satoru Takeuchi takeuchi_sat...@jp.fujitsu.com btrfs_lookup_csums_range() uses ALIGN() to check if start and end + 1 are aligned to root-sectorsize. It's better to replace these with IS_ALIGNED() for simplicity. Signed-off-by: Satoru Takeuchi takeuchi_sat...@jp.fujitsu.com --- fs/btrfs

<    1   2   3   >