Re: Btrfs-progs: allow fsck to fix directory isize errors

2013-09-01 Thread Wang Shilong
Hello, Using checkpatch.pl, i get the following warnings(errors): WARNING: %Ld/%Lu are not-standard C, use %lld/%llu #87: FILE: cmds-check.c:1389: + printf(reset isize for dir %Lu root %Lu\n, rec-ino, total: 0 errors, 1 warnings, 141 lines checked patch has style problems, please review.

Re: btrfs-progs: replace fails start but in the background

2013-09-01 Thread Wang Shilong
Hello, Using checkpatch.pl, i get the following warnings(errors): WARNING: please, no space before tabs #83: FILE: utils.c:1999: + * ^Ifrom the user cli like device add remove replace balance etc..$ total: 0 errors, 1 warnings, 50 lines checked patch has style problems, please review. If any of

Re: Notify caching_thread()s to give up on extent_commit_sem when needed.

2013-09-01 Thread Wang Shilong
Hello, Using checkpatch.pl, i get the following warnings(errors): WARNING: please, no spaces at the start of a line #49: FILE: fs/btrfs/ctree.h:1431: +atomic_t extent_commit_sem_give_up_read;$ WARNING: please, no spaces at the start of a line #51: FILE: fs/btrfs/ctree.h:1433: +do {

Re: Btrfs-progs: setup framework to corrupt specific fields of an inode

2013-09-01 Thread Wang Shilong
Hello, Using checkpatch.pl, i get the following warnings(errors): WARNING: %Ld/%Lu are not-standard C, use %lld/%llu #93: FILE: btrfs-corrupt-block.c:317: + fprintf(stderr, Couldn't find inode %Lu\n, inode); WARNING: %Ld/%Lu are not-standard C, use %lld/%llu #103: FILE:

Re: Btrfs: separate out tests into their own directory V2

2013-09-01 Thread Wang Shilong
Hello, Using checkpatch.pl, i get the following warnings(errors): WARNING: kfree(NULL) is safe this check is probably not required #132: FILE: fs/btrfs/free-space-cache.c:3035: + if (map) + kfree(map); WARNING: line over 80 characters #882: FILE:

Re: rwsem: add rwsem_is_contended

2013-09-01 Thread Wang Shilong
Hello, Using checkpatch.pl, i get the following warnings(errors): WARNING: EXPORT_SYMBOL(foo); should immediately follow its function/variable #70: FILE: lib/rwsem.c:306: +EXPORT_SYMBOL(rwsem_is_contended); total: 0 errors, 1 warnings, 30 lines checked patch has style problems, please review.

Re: btrfs-progs: v3, move out print in cmd_df to another function

2013-09-01 Thread Wang Shilong
Hello, Using checkpatch.pl, i get the following warnings(errors): ERROR: foo * bar should be foo *bar #37: FILE: cmds-filesystem.c:47: +static char * group_type_str(u64 flag) ERROR: foo * bar should be foo *bar #69: FILE: cmds-filesystem.c:63: +static char * group_profile_str(u64 flag) total: 2

Re: [PATCH v6] Btrfs: optimize key searches in btrfs_search_slot

2013-09-01 Thread Miao Xie
On sat, 31 Aug 2013 13:54:56 +0100, Filipe David Borba Manana wrote: When the binary search returns 0 (exact match), the target key will necessarily be at slot 0 of all nodes below the current one, so in this case the binary search is not needed because it will always return 0, and we

Re: [PATCH] rwsem: add rwsem_is_contended

2013-09-01 Thread Michel Lespinasse
Hi Josef, On Fri, Aug 30, 2013 at 7:14 AM, Josef Bacik jba...@fusionio.com wrote: Btrfs uses an rwsem to control access to its extent tree. Threads will hold a read lock on this rwsem while they scan the extent tree, and if need_resched() they will drop the lock and schedule. The transaction

[PATCH] btrfs: use list_for_each_entry_safe() when delete items

2013-09-01 Thread Azat Khuzhin
Replace list_for_each_entry() by list_for_each_entry_safe() in __btrfs_close_devices() list_for_each_entry() { list_replace_rcu(); call_rcu(); --We may free the device, if we get next device by the current one, the page fault

Re: [PATCH v6] Btrfs: optimize key searches in btrfs_search_slot

2013-09-01 Thread Filipe David Manana
On Sun, Sep 1, 2013 at 8:21 AM, Miao Xie mi...@cn.fujitsu.com wrote: On sat, 31 Aug 2013 13:54:56 +0100, Filipe David Borba Manana wrote: When the binary search returns 0 (exact match), the target key will necessarily be at slot 0 of all nodes below the current one, so in this case the

Unmountable filesystem parent transid verify failed

2013-09-01 Thread ronnie sahlberg
Hi again. Sorry for top posting. I have a 9 disk filesystem that does not mount anymore and need some help/advice so I can recover the data. What happened was that I was running a btrfs delete device under Ubuntu 13.04 Kernel 3.8 and after a long time of moving data around it crashed with a

Re: Mixed blocks, he can avoid ENOSPACE error, when he can't allocated metadata blocks?

2013-09-01 Thread Тимофей Титовец
Hello list, sorry for my bad english anyway. if my message is delirium, just ignore this message. My question: When using mixed blocks, metadata and data chunks has be merge, but we have (when using mixed) speed penalty. how many penalty will be have if we using mixed? Kernel 3.11-rc7, Ubuntu

[PATCH] Btrfs: do not add replace target to the alloc_list

2013-09-01 Thread Ilya Dryomov
If replace was suspended by the umount, replace target device is added to the fs_devices-alloc_list during a later mount. This is obviously wrong. -is_tgtdev_for_dev_replace is supposed to guard against that, but -is_tgtdev_for_dev_replace is (and can only ever be) initialized *after* everything

Re: Device delete returns unable to go below four devices on raid10 on 5 drive setup

2013-09-01 Thread Steven Post
On Sun, 2013-09-01 at 14:08 +0200, Steven Post wrote: On Sat, 2013-08-31 at 18:03 -0600, Chris Murphy wrote: On Aug 31, 2013, at 5:55 PM, Steven Post redalert.comman...@gmail.com wrote: On Sat, 2013-08-31 at 11:42 -0600, Chris Murphy wrote: Yes. It might take a few minutes after

Re: [PATCH 2/2] btrfs-progs: Update the man page of btrfs

2013-09-01 Thread Qu Wenruo
Sorry for the late reply. I checked the new man page, which seems OK for me. Thank you. Qu Wenruo 于 2013年08月06日 07:28, David Sterba 写道: On Tue, Jul 23, 2013 at 10:43:22AM +0800, Qu Wenruo wrote: Update the man page of btrfs command to keep up with new commands. Thanks. Please check if I

Re: Btrfs: separate out tests into their own directory V2

2013-09-01 Thread Wang Shilong
Sorry, please ignore this thread... Thanks, wang On 09/01/2013 02:15 PM, Wang Shilong wrote: Hello, Using checkpatch.pl, i get the following warnings(errors): WARNING: kfree(NULL) is safe this check is probably not required #132: FILE: fs/btrfs/free-space-cache.c:3035: + if (map) +

[PATCH] btrfs-progs: replace fails start but in the background v2

2013-09-01 Thread Anand Jain
when the balance is running, the replace start ioctl fails (for the right reasons). but since the cli has put ioctl thread to background (for right reasons) the user won't know that cli failed to start. so before cli goes to the background, it should check if mutually_exclusive_operation_running

Re: btrfs-progs: v3, move out print in cmd_df to another function

2013-09-01 Thread Anand Jain
Wang, kindly note that this was fixed in v4. Anand On 09/01/2013 02:15 PM, Wang Shilong wrote: Hello, Using checkpatch.pl, i get the following warnings(errors): ERROR: foo * bar should be foo *bar #37: FILE: cmds-filesystem.c:47: +static char * group_type_str(u64 flag) ERROR: foo * bar

Re: btrfs-progs: v3, move out print in cmd_df to another function

2013-09-01 Thread Wang Shilong
On 09/02/2013 10:58 AM, Anand Jain wrote: Wang, kindly note that this was fixed in v4. Yeah...This is sent by my shell script by accident, I have fixed it and it won't send the repeated message again. Thanks for reminding .. ^_^ Anand On 09/01/2013 02:15 PM, Wang Shilong wrote: Hello,