Re: [PATCH 2/3] Btrfs: fix the deadlock between the transaction start/attach and commit

2013-02-25 Thread Miao Xie
On sun, 24 Feb 2013 21:49:55 +0200, Alex Lyakas wrote: Hi Miao, can you please explain your solution a bit more. On Wed, Feb 20, 2013 at 11:16 AM, Miao Xie mi...@cn.fujitsu.com wrote: Now btrfs_commit_transaction() does this ret = btrfs_run_ordered_operations(root, 0) which async flushes

Re: [PATCH] Btrfs: do not change inode flags in rename

2013-02-25 Thread David Sterba
On Mon, Feb 25, 2013 at 12:04:42PM +0800, Liu Bo wrote: Before we forced to change a file's NOCOW and COMPRESS flag due to the parent directory's, but this ends up a bad idea, because it confuses end users a lot about file's NOCOW status, eg. if someone change a file to NOCOW via 'chattr' and

Re: [PATCH] Btrfs: update inode flags when renaming

2013-02-25 Thread David Sterba
On Mon, Feb 25, 2013 at 12:23:03PM +0800, Miao Xie wrote: Onmon, 25 Feb 2013 11:50:01 +0800, Liu Bo wrote: On Fri, Feb 22, 2013 at 11:04:40PM +0100, David Sterba wrote: On Fri, Feb 22, 2013 at 05:34:47PM +0800, Miao Xie wrote: Onfri, 22 Feb 2013 16:40:35 +0800, Liu Bo wrote:

Re: Changing node leaf size on live partition.

2013-02-25 Thread David Sterba
On Sat, Feb 23, 2013 at 03:14:56PM +, Tomasz Kusmierz wrote: Question is pretty simple: How to change node size and leaf size on previously created partition? Now, I know what most people will say: you should've be smarter while typing mkfs.btrfs. Well, I'm intending to convert in

[PATCH 1/4] Btrfs-progs: add check for level and id in case overflow happens

2013-02-25 Thread Wang Shilong
From: Wang Shilong wangsl-f...@cn.fujitsu.com qgroupid(u64) is splitted into two parts: 1) the lower 48 bit are used to represent id 2) the higher 16 bit are used to represent level So the check for id and level are necessary. Signed-off-by: Wang Shilong

[PATCH 2/4] Btrfs-progs: disable qgroup level 0 for userspace use

2013-02-25 Thread Wang Shilong
From: Wang Shilong wangsl-f...@cn.fujitsu.com To implement a strict hierarchy quota, qgroup level 0 should not be allowed to create/destroy by users. Signed-off-by: Wang Shilong wangsl-f...@cn.fujitsu.com --- cmds-qgroup.c |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff

[PATCH 3/4] Btrfs-progs: let the error messages more precise

2013-02-25 Thread Wang Shilong
From: Wang Shilong wangsl-f...@cn.fujitsu.com Not only the operation 'create/assign' may fail but also 'destroy/remove' operation, so add those operations in error messages. Signed-off-by: Wang Shilong wangsl-f...@cn.fujitsu.com --- cmds-qgroup.c |8 1 files changed, 4

[PATCH 4/4] Btrfs-progs: fix complie warning in the function filter_by_parent

2013-02-25 Thread Wang Shilong
From: Wang Shilong wangsl-f...@cn.fujitsu.com See the below warning info: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] Signed-off-by: Wang Shilong wangsl-f...@cn.fujitsu.com --- btrfs-list.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff

[PATCH] Btrfs: fix overhead check for qgroupid in the kernel

2013-02-25 Thread Wang Shilong
From: Wang Shilong wangsl-f...@cn.fujitsu.com As we implement the strict hierarchy quota in the userspace, it is sufficient to check this ruler in the userspace.remove the special check for qgroup 0. Signed-off-by: Wang Shilong wangsl-f...@cn.fujitsu.com --- fs/btrfs/ioctl.c | 5 - 1 file

Re: [PATCH] Btrfs: do not change inode flags in rename

2013-02-25 Thread Liu Bo
(add Miao to CC) On Mon, Feb 25, 2013 at 12:04:42PM +0800, Liu Bo wrote: Before we forced to change a file's NOCOW and COMPRESS flag due to the parent directory's, but this ends up a bad idea, because it confuses end users a lot about file's NOCOW status, eg. if someone change a file to NOCOW

Re: basic questions regarding COW in Btrfs

2013-02-25 Thread Aastha Mehta
Thanks again Josef. I understood that cow_file_range is called for a regular file. Just to clarify, in cow_file_range is cow done at the time of reserving extents in the extent btree for the io to be done in this delalloc? I see the following comment above find_free_extent() which is called while

Re: basic questions regarding COW in Btrfs

2013-02-25 Thread Josef Bacik
On Mon, Feb 25, 2013 at 08:15:40AM -0700, Aastha Mehta wrote: Thanks again Josef. I understood that cow_file_range is called for a regular file. Just to clarify, in cow_file_range is cow done at the time of reserving extents in the extent btree for the io to be done in this delalloc? I see

Re: [PATCH] Btrfs: fix overhead check for qgroupid in the kernel

2013-02-25 Thread Blair Zajac
On 02/25/2013 06:30 AM, Wang Shilong wrote: From: Wang Shilong wangsl-f...@cn.fujitsu.com As we implement the strict hierarchy quota in the userspace, it is sufficient to check this ruler in the userspace.remove the special check for qgroup 0. I haven't done any kernel coding so I'm curious,

Re: [PATCH V2][BTRFS-PROGS] Enhance btrfs fi df with raid5/6 support

2013-02-25 Thread Zach Brown
I updates my previous patches [1] to add support for raid5/6. These patches update the btrfs fi df command and add two new commands: - btrfs filesystem disk-usage path - btrfs device disk-usage path This seems like a ton of code. Here's a thought experiment: What's the smallest possible

Re: [PATCH] Btrfs: do not change inode flags in rename

2013-02-25 Thread Josef Bacik
On Sun, Feb 24, 2013 at 09:04:42PM -0700, Liu Bo wrote: Before we forced to change a file's NOCOW and COMPRESS flag due to the parent directory's, but this ends up a bad idea, because it confuses end users a lot about file's NOCOW status, eg. if someone change a file to NOCOW via 'chattr' and

Re: basic questions regarding COW in Btrfs

2013-02-25 Thread Aastha Mehta
Ah okay, I now see how it works. Thanks a lot for your response. Regards, Aastha. On 25 February 2013 18:27, Josef Bacik jba...@fusionio.com wrote: On Mon, Feb 25, 2013 at 08:15:40AM -0700, Aastha Mehta wrote: Thanks again Josef. I understood that cow_file_range is called for a regular

Re: WARNING: at fs/btrfs/extent_io.c:4718 map_private_extent_buffer+0xd4/0xe0 [btrfs]()

2013-02-25 Thread Josef Bacik
On Fri, Feb 22, 2013 at 09:54:08PM -0700, Mace Moneta wrote: On Fri, Feb 22, 2013 at 2:40 PM, Josef Bacik jba...@fusionio.com wrote: On Fri, Feb 22, 2013 at 11:31:07AM -0700, Mace Moneta wrote: On Fri, Feb 22, 2013 at 1:16 PM, Mace Moneta moneta.m...@gmail.com wrote: On Fri, Feb 22, 2013

Re: WARNING: at fs/btrfs/extent_io.c:4718 map_private_extent_buffer+0xd4/0xe0 [btrfs]()

2013-02-25 Thread Mace Moneta
On Mon, Feb 25, 2013 at 2:12 PM, Josef Bacik jba...@fusionio.com wrote: Is there any chance you got the line above [ cut here ]? (I hate that stupid [ cut here ], it makes us miss all the usefull info.) Thanks, Josef There was really nothing significant above the 'cut here'. Here it is

Re: WARNING: at fs/btrfs/extent_io.c:4718 map_private_extent_buffer+0xd4/0xe0 [btrfs]()

2013-02-25 Thread Josef Bacik
On Mon, Feb 25, 2013 at 12:21:30PM -0700, Mace Moneta wrote: On Mon, Feb 25, 2013 at 2:12 PM, Josef Bacik jba...@fusionio.com wrote: Is there any chance you got the line above [ cut here ]? (I hate that stupid [ cut here ], it makes us miss all the usefull info.) Thanks, Josef

Re: [PATCH 1/8] Add some helpers to manage the strings allocation/deallocation.

2013-02-25 Thread Goffredo Baroncelli
Hi Eric, On 02/25/2013 03:20 AM, Eric Sandeen wrote: On 2/23/13 7:46 AM, Goffredo Baroncelli wrote: From: Goffredo Baroncelli kreij...@inwind.it This patch adds some helpers to manage the strings allocation and deallocation. The function string_list_add(char *) adds the passed string to a

Re: [PATCH 1/8] Add some helpers to manage the strings allocation/deallocation.

2013-02-25 Thread Zach Brown
printf(Disk size:\t\t%*s\n, width, df_pretty_sizes(total_disk, mode)); it would be translated (note the '%*s'): if (mode == DF_HUMAN_UNIT) printf(Disk size:\t\t%*s%s\n, width-2, df_pretty_sizes_number(total_disk),

Re: [PATCH v4] Btrfs: ability to add label to snapshot and subvol

2013-02-25 Thread Hugo Mills
On Mon, Feb 25, 2013 at 01:31:45PM +0800, Anand Jain wrote: Generally snapshots are machine generated, so at any point in time if a sysadmin looks at a list of snapshots there should be some info about the snapshots to indicate purpose of it being created. I still can't see what benefits

Re: [PATCH 1/8] Add some helpers to manage the strings allocation/deallocation.

2013-02-25 Thread Goffredo Baroncelli
On 02/25/2013 09:19 PM, Zach Brown wrote: printf(Disk size:\t\t%*s\n, width, df_pretty_sizes(total_disk, mode)); it would be translated (note the '%*s'): if (mode == DF_HUMAN_UNIT) printf(Disk size:\t\t%*s%s\n, width-2, df_pretty_sizes_number(total_disk),

[PATCH 03/17] btrfs-progs: Remove write-only var fdres in cmd_dev_stats()

2013-02-25 Thread Eric Sandeen
fdres is initialized to -1, then later tested, but never set. Just remove it. Signed-off-by: Eric Sandeen sand...@redhat.com --- cmds-device.c |3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/cmds-device.c b/cmds-device.c index 198ad68..58df6da 100644 ---

[PATCH 02/17] btrfs-progs: fix btrfs_get_subvol cut/paste error

2013-02-25 Thread Eric Sandeen
in btrfs_get_subvol(), there is a cut and paste error: if (ri-full_path) the_ri-full_path = strdup(ri-full_path); else the_ri-name = NULL; It should be setting the_ri-full_path to NULL here. Do it in a function instead of the cpoy paste to avoid

[PATCH 06/17] btrfs-progs: fix open error test in cmd_start_replace

2013-02-25 Thread Eric Sandeen
open() returns a negative fd on failure, not 0. Signed-off-by: Eric Sandeen sand...@redhat.com --- cmds-replace.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/cmds-replace.c b/cmds-replace.c index d14c9b5..9397396 100644 --- a/cmds-replace.c +++ b/cmds-replace.c @@

[PATCH 07/17] btrfs-progs: fix close of error fd in scrub cancel

2013-02-25 Thread Eric Sandeen
If we retry opening the mountpoint and fail, we'll call close on a filehandle w/ value -1. Rearrange so the retry uses the same open and same error handling. Signed-off-by: Eric Sandeen sand...@redhat.com --- cmds-scrub.c | 13 + 1 files changed, 5 insertions(+), 8 deletions(-)

[PATCH 11/17] btrfs-progs: provide positive errno to strerror in cmd_restore

2013-02-25 Thread Eric Sandeen
check_mounted returns a negative errno, so it needs to be flipped again before passing to strerror. Signed-off-by: Eric Sandeen sand...@redhat.com --- cmds-restore.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/cmds-restore.c b/cmds-restore.c index 12b2188..9385042

[PATCH 00/17] btrfs-progs: More misc fixes cleanups

2013-02-25 Thread Eric Sandeen
A bunch of Coverity static analysis checker fixes, including a couple actual bugfixes. This gets it down from around 80 defects to about 50; I have a couple other patches I need to clean up which quiets it even more. By getting it to a tolerable level, subsequent runs to check for regressions

[PATCH 01/17] btrfs-progs: Unify size-parsing

2013-02-25 Thread Eric Sandeen
cmds-qgroup.c contained a parse_limit() function which duplicates much of the functionality of parse_size. The only unique behavior is to handle none; then we can just pass it off to parse_size(). Signed-off-by: Eric Sandeen sand...@redhat.com --- cmds-qgroup.c | 44

[PATCH 09/17] btrfs-progs: free memory before error exit in read_whole_eb

2013-02-25 Thread Eric Sandeen
Free the memory allocated to multi before the error exit in read_whole_eb(). Set it to NULL after we free it in the loop to avoid any potential double-free. Signed-off-by: Eric Sandeen sand...@redhat.com --- disk-io.c |6 +- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git

[PATCH 15/17] btrfs-progs: Tidy up resolve_root

2013-02-25 Thread Eric Sandeen
Whitespace fixes and fix a variable declaration after code. Signed-off-by: Eric Sandeen sand...@redhat.com --- btrfs-list.c | 13 - 1 files changed, 8 insertions(+), 5 deletions(-) diff --git a/btrfs-list.c b/btrfs-list.c index 8c3f84d..a748d5e 100644 --- a/btrfs-list.c +++

[PATCH 17/17] btrfs-progs: replace strtok_r with strsep

2013-02-25 Thread Eric Sandeen
The coverity had a false positive complaining that save_ptr is uninitialized in the call to strtok_r. We could initialize it, but Zach points out that just using strsep is a lot simpler if there's only one delimiter, so just switch to that. Signed-off-by: Eric Sandeen sand...@redhat.com ---

[PATCH 16/17] btrfs-progs: fix fd leak in cmd_subvol_set_default

2013-02-25 Thread Eric Sandeen
Rearrange cmd_subvol_set_default() slightly so we don't have to close the fd on an error return. While we're at it, fix whitespace remove magic return values. Signed-off-by: Eric Sandeen sand...@redhat.com --- cmds-subvolume.c | 17 + 1 files changed, 9 insertions(+), 8

[PATCH 14/17] btrfs-progs: fix mem leak in resolve_root

2013-02-25 Thread Eric Sandeen
If we exit with error we must free the allocated memory to avoid a leak. Signed-off-by: Eric Sandeen sand...@redhat.com --- btrfs-list.c |8 ++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/btrfs-list.c b/btrfs-list.c index 851c059..8c3f84d 100644 --- a/btrfs-list.c

[PATCH 10/17] btrfs-progs: don't call close on error fd

2013-02-25 Thread Eric Sandeen
In the error case where fd 0, close(fd) is the wrong thing to do. Signed-off-by: Eric Sandeen sand...@redhat.com --- btrfs-show-super.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/btrfs-show-super.c b/btrfs-show-super.c index 3614c52..f587f10 100644 ---

[PATCH 05/17] btrfs-progs: avoid double-free in __btrfs_map_block

2013-02-25 Thread Eric Sandeen
__btrfs_map_block() can possibly do the goto again: loop after having allocated freed the multi pointer. There are then a couple error conditions where it will attempt to again kfree the now non-NULL multi pointer. So before retrying, reset multi to NULL after we free it. Signed-off-by: Eric

[PATCH 04/17] btrfs-progs: btrfs_list_get_path_rootid error handling

2013-02-25 Thread Eric Sandeen
btrfs_list_get_path_rootid() tries to return a negative number on error, but it's a u64 function. Callers which test for a return 0 will never see an error. Change the function to fill in the rootid via a pointer, and then return a simple int as error. Signed-off-by: Eric Sandeen

[PATCH 08/17] btrfs-progs: more scrub cancel error handling

2013-02-25 Thread Eric Sandeen
If we request scrub cancel on an unmounted or non-btrfs device, we still get a scrub canceled success message: # btrfs scrub cancel /dev/loop1 scrub cancelled # blkid /dev/loop1 /dev/loop1: UUID=7f586941-1d5e-4ba7-9caa-b35934849957 TYPE=xfs Fix this so that if check_mounted_where returns 0 we

[PATCH 12/17] btrfs-progs: free allocated di_args in cmd_start_replace

2013-02-25 Thread Eric Sandeen
We only freed this allocation in error paths, and leaked a bit when it went out of scope normally. Signed-off-by: Eric Sandeen sand...@redhat.com --- cmds-replace.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/cmds-replace.c b/cmds-replace.c index 9397396..4cc32df

[PATCH 13/17] btrfs-progs: close fd on cmd_subvol_get_default return

2013-02-25 Thread Eric Sandeen
Without this we leak the fd when we return from the function. Also, remove the senseless random return values. Signed-off-by: Eric Sandeen sand...@redhat.com --- cmds-subvolume.c | 20 1 files changed, 12 insertions(+), 8 deletions(-) diff --git a/cmds-subvolume.c

Re: [PATCH 01/17] btrfs-progs: Unify size-parsing

2013-02-25 Thread Zach Brown
case 'e': mult *= 1024; + /* Fallthrough */ These comments still annoy me :). And really, that code kind of annoys me too. That's a lot of duplicated code for a mapping of characters to powers of 1024. How about.. u64 pow_u64(u64 x,

lvm volume like support

2013-02-25 Thread Suman C
Hi, I think it would be great if there is a lvm volume or zfs zvol type support in btrfs. As far as I can tell, there's nobody actively working on this feature. I want to know what the core developers think of this feature, is it technically possible? any strong opinions? implementation ideas?

Re: [PATCH 01/17] btrfs-progs: Unify size-parsing

2013-02-25 Thread Eric Sandeen
On 2/25/13 5:26 PM, Zach Brown wrote: case 'e': mult *= 1024; +/* Fallthrough */ These comments still annoy me :). it shuts up coverity other static checkers which are worried about a missing break... And really, that code kind of

Re: [PATCH, RFC] btrfs-progs: require mkfs -f force option to overwrite filesystem or partition table

2013-02-25 Thread Tsutomu Itoh
On 2013/02/21 0:37, Stefan Behrens wrote: On Thu, 14 Feb 2013 12:30:03 -0600, Eric Sandeen wrote: The core of this is shamelessly stolen from xfsprogs. Use blkid to detect an existing filesystem or partition table on any of the target devices. If something is found, require the '-f' option to

Re: [PATCH] Btrfs: do not change inode flags in rename

2013-02-25 Thread Liu Bo
On Mon, Feb 25, 2013 at 01:56:47PM -0500, Josef Bacik wrote: On Sun, Feb 24, 2013 at 09:04:42PM -0700, Liu Bo wrote: Before we forced to change a file's NOCOW and COMPRESS flag due to the parent directory's, but this ends up a bad idea, because it confuses end users a lot about file's NOCOW

Re: [PATCH, RFC] btrfs-progs: require mkfs -f force option to overwrite filesystem or partition table

2013-02-25 Thread Eric Sandeen
On 2/25/13 5:39 PM, Tsutomu Itoh wrote: On 2013/02/21 0:37, Stefan Behrens wrote: On Thu, 14 Feb 2013 12:30:03 -0600, Eric Sandeen wrote: The core of this is shamelessly stolen from xfsprogs. Use blkid to detect an existing filesystem or partition table on any of the target devices. If

Re: [PATCH 01/17] btrfs-progs: Unify size-parsing

2013-02-25 Thread Zach Brown
These comments still annoy me :). it shuts up coverity other static checkers which are worried about a missing break... Yeah, I know. And it's annoying! So my little brain fart there was an attempt to use a construct that simply couldn't be confused with mistakes that'd require

Re: [PATCH 14/17] btrfs-progs: fix mem leak in resolve_root

2013-02-25 Thread Shilong Wang
Hello, Eric 2013/2/26 Eric Sandeen sand...@redhat.com: If we exit with error we must free the allocated memory to avoid a leak. Signed-off-by: Eric Sandeen sand...@redhat.com --- btrfs-list.c |8 ++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/btrfs-list.c

Re: lvm volume like support

2013-02-25 Thread Mike Fleetwood
On 25 February 2013 23:35, Suman C schakr...@gmail.com wrote: Hi, I think it would be great if there is a lvm volume or zfs zvol type support in btrfs. As far as I can tell, there's nobody actively working on this feature. I want to know what the core developers think of this feature, is it

Re: lvm volume like support

2013-02-25 Thread Fajar A. Nugraha
On Tue, Feb 26, 2013 at 11:59 AM, Mike Fleetwood mike.fleetw...@googlemail.com wrote: On 25 February 2013 23:35, Suman C schakr...@gmail.com wrote: Hi, I think it would be great if there is a lvm volume or zfs zvol type support in btrfs. Btrfs already has capabilities to add and remove

Re: [PATCH, RFC] btrfs-progs: require mkfs -f force option to overwrite filesystem or partition table

2013-02-25 Thread Tsutomu Itoh
On 2013/02/26 9:07, Eric Sandeen wrote: On 2/25/13 5:39 PM, Tsutomu Itoh wrote: On 2013/02/21 0:37, Stefan Behrens wrote: On Thu, 14 Feb 2013 12:30:03 -0600, Eric Sandeen wrote: The core of this is shamelessly stolen from xfsprogs. Use blkid to detect an existing filesystem or partition

Re: [PATCH, RFC] btrfs-progs: require mkfs -f force option to overwrite filesystem or partition table

2013-02-25 Thread Eric Sandeen
On 2/25/13 9:55 PM, Tsutomu Itoh wrote: On 2013/02/26 9:07, Eric Sandeen wrote: On 2/25/13 5:39 PM, Tsutomu Itoh wrote: On 2013/02/21 0:37, Stefan Behrens wrote: On Thu, 14 Feb 2013 12:30:03 -0600, Eric Sandeen wrote: The core of this is shamelessly stolen from xfsprogs. Use blkid to detect

Re: [PATCH, RFC] btrfs-progs: require mkfs -f force option to overwrite filesystem or partition table

2013-02-25 Thread Tsutomu Itoh
On 2013/02/26 13:06, Eric Sandeen wrote: On 2/25/13 9:55 PM, Tsutomu Itoh wrote: On 2013/02/26 9:07, Eric Sandeen wrote: On 2/25/13 5:39 PM, Tsutomu Itoh wrote: On 2013/02/21 0:37, Stefan Behrens wrote: On Thu, 14 Feb 2013 12:30:03 -0600, Eric Sandeen wrote: The core of this is shamelessly

Re: [PATCH 14/17] btrfs-progs: fix mem leak in resolve_root

2013-02-25 Thread Eric Sandeen
On 2/25/13 6:36 PM, Shilong Wang wrote: Hello, Eric 2013/2/26 Eric Sandeen sand...@redhat.com: If we exit with error we must free the allocated memory to avoid a leak. Signed-off-by: Eric Sandeen sand...@redhat.com --- btrfs-list.c |8 ++-- 1 files changed, 6 insertions(+), 2

Re: lvm volume like support

2013-02-25 Thread Suman C
Yes, zvol like feature where a btrfs subvolume like construct can be made available as a LUN/block device. This device can then be used by any application that wants a raw block device. iscsi is another obvious usecase. Having thin provisioning support would make it pretty awesome. Suman On Mon,

Re: lvm volume like support

2013-02-25 Thread Remco Hosman - Yerf-IT
Can't thus be done with a regular file and a loop back device? Remco On 26 Feb 2013, at 06:35, Suman C schakr...@gmail.com wrote: Yes, zvol like feature where a btrfs subvolume like construct can be made available as a LUN/block device. This device can then be used by any application that

Re: lvm volume like support

2013-02-25 Thread Roman Mamedov
On Mon, 25 Feb 2013 21:35:08 -0800 Suman C schakr...@gmail.com wrote: Yes, zvol like feature where a btrfs subvolume like construct can be made available as a LUN/block device. This device can then be used by any application that wants a raw block device. iscsi is another obvious usecase.

Re: lvm volume like support

2013-02-25 Thread Suman C
Thanks for the sparse file idea, I am actually using that solution already. I am not sure if its the best way, however. Suman On Mon, Feb 25, 2013 at 9:57 PM, Roman Mamedov r...@romanrm.ru wrote: On Mon, 25 Feb 2013 21:35:08 -0800 Suman C schakr...@gmail.com wrote: Yes, zvol like feature

Re: lvm volume like support

2013-02-25 Thread Remco Hosman - Yerf IT
would be really cool if a TRIM to the loopback device would do a 'hole punch' on the file Remco On Feb 26, 2013, at 7:25 AM, Suman C schakr...@gmail.com wrote: Thanks for the sparse file idea, I am actually using that solution already. I am not sure if its the best way, however. Suman

Re: lvm volume like support

2013-02-25 Thread Alex Elsayed
Remco Hosman - Yerf IT wrote: would be really cool if a TRIM to the loopback device would do a 'hole punch' on the file There are patches on the scsi target mailing list to make this happen for the FILEIO backend. This has the added benefit that if you set it up via LIO, it appears as a full

kernel BUG at fs/btrfs/volumes.c:3753! These btrfs crashes at mount time on log replay are really a problem

2013-02-25 Thread Marc MERLIN
TL;DR; WARNING: at fs/btrfs/tree-log.c:1984 walk_down_log_tree+0x51/0x307() WARNING: at fs/btrfs/tree-log.c:1988 walk_down_log_tree+0x6c/0x307() kernel BUG at fs/btrfs/volumes.c:3753! It's way time for btrfs to stop crashing your system with no recovery flag that works to clear the log if the log

Re: WARNING: at fs/btrfs/inode.c:2165 btrfs_orphan_commit_root+0xcb/0xdf()

2013-02-25 Thread Liu Bo
On Sun, Feb 24, 2013 at 06:55:46PM -0800, Marc MERLIN wrote: Is this useful to anyone? Hi Marc, Thanks for the report, of course they're useful. Could you please also show us your workloads and it'd be better to know how to reproduce this? thanks, liubo Got this after a crash/reboot:

Re: [PATCH, RFC] btrfs-progs: require mkfs -f force option to overwrite filesystem or partition table

2013-02-25 Thread Dave Chinner
On Tue, Feb 26, 2013 at 01:25:11PM +0900, Tsutomu Itoh wrote: On 2013/02/26 13:06, Eric Sandeen wrote: On 2/25/13 9:55 PM, Tsutomu Itoh wrote: EXPERIMENTAL... It's certainly so. However, I think that we should not add the option that it troubles a lot of people. Well, I sent it as an RFC.