qcow2 on btrfs

2013-11-16 Thread Chris Murphy
Since qcow2 only supports metadata preallocation, not full preallocation, I'm wondering if +C on the sparse file is sufficient, or alternatively using qemu-create -o preallocation=metadata,compat=1.1,lazy_refcounts=on? Or is qcow2 on btrfs just not a good idea? Chris Murphy-- To unsubscribe fr

Re: btrfs fi show

2013-11-16 Thread Duncan
Chris Murphy posted on Sat, 16 Nov 2013 14:50:00 -0700 as excerpted: > On Nov 16, 2013, at 1:33 PM, Duncan <1i5t5.dun...@cox.net> wrote: >> 1) If you run a generic btrfs filesystem show (without options or >> path), you *WILL* likely get the same base filesystem listed multiple >> times, as the d

Re: btrfs resize partition problem

2013-11-16 Thread Duncan
Dejan Ribič posted on Sat, 16 Nov 2013 21:37:09 +0100 as excerpted: > but it got me thinking why do I even have a seperate partition for home [List plus direct mail reply, as requested. Please remind me again with followups and don't post to both me and the list as I do follow the list and don

Re: How to fix/remove "csum failed ino" error

2013-11-16 Thread Chris Murphy
On Nov 16, 2013, at 1:54 PM, Duncan <1i5t5.dun...@cox.net> wrote: > Hugo Mills posted on Sat, 16 Nov 2013 12:23:42 + as excerpted: > >> On Sat, Nov 16, 2013 at 04:06:10AM -0800, Anatol Pomozov wrote: > >>> Follow-up for the issue. I stuck with this "invalid csum for free space >>> extent" e

Re: btrfs fi show

2013-11-16 Thread Chris Murphy
On Nov 16, 2013, at 1:33 PM, Duncan <1i5t5.dun...@cox.net> wrote: > > Meanwhile, in plain English based on my observation here, the new > behavior works like this: > > 1) If you run a generic btrfs filesystem show (without options or path), > you *WILL* likely get the same base filesystem list

Re: How to fix/remove "csum failed ino" error

2013-11-16 Thread Duncan
Hugo Mills posted on Sat, 16 Nov 2013 12:23:42 + as excerpted: > On Sat, Nov 16, 2013 at 04:06:10AM -0800, Anatol Pomozov wrote: >> Follow-up for the issue. I stuck with this "invalid csum for free space >> extent" error. Could anyone explain what does it mean? If this is not >> data and just

btrfs resize partition problem

2013-11-16 Thread Dejan Ribič
Hello, Originaly I had two seperate ext4 partitions for rootand home, thenI recently converted my root ext4 partition to btrfs primarily because of snapshots, I also created a subvolume for /var/cache/pacman/pkg because I didn't want the packages in snapshots and that worked out great, I have

Re: btrfs fi show

2013-11-16 Thread Duncan
Chris Murphy posted on Sat, 16 Nov 2013 09:04:31 -0700 as excerpted: > On Nov 16, 2013, at 7:58 AM, Gene Czarcinski wrote: > >> I am on Fedora 20-Beta and we just updated to btrfs-progs >> 0.20.rc1-20131114git9f0c53f >> >> Previously, when you did a btrfs fi show, you got a list with one >> out

Re: Subvolume creation returns file exists

2013-11-16 Thread Duncan
Duncan posted on Fri, 15 Nov 2013 16:07:22 + as excerpted: > FWIW, here's the version string from my btrfs-progs, updated a couple > days ago (tho there's one known bug in it, related to doing a mkfs.btrfs > on a sub-GiB filesystem, patch posted to list but as I've not updated in > a couple da

[PATCH 6/7] btrfs subvolume snapshot -R: update man page

2013-11-16 Thread Goffredo Baroncelli
Update man page of "btrfs subvolume snapshot", documenting the -R switch. Signed-off-by: Goffredo Baroncelli --- man/btrfs.8.in | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/man/btrfs.8.in b/man/btrfs.8.in index b620348..aee1f70 100644 --- a/man/btrfs.8.in +++ b/man/b

[PATCH 4/7] recursive btrfs subvol delete

2013-11-16 Thread Goffredo Baroncelli
Add the -R switch to allow to delete recursively a subvolume. Signed-off-by: Goffredo Baroncelli --- cmds-subvolume.c | 107 +-- 1 file changed, 89 insertions(+), 18 deletions(-) diff --git a/cmds-subvolume.c b/cmds-subvolume.c index 477919c..

[PATCH 5/7] recursively btrfs subvolume snapshot

2013-11-16 Thread Goffredo Baroncelli
Add a '-R' switch to btrfs subvolume snapshot to allow a recursively subvolume snapshotting. Signed-off-by: Goffredo Baroncelli --- cmds-subvolume.c | 213 +++ 1 file changed, 167 insertions(+), 46 deletions(-) diff --git a/cmds-subvolume.c b/

[PATCH 2/7] recursive btrfs sub snapshot/delete: create pathjoin() function

2013-11-16 Thread Goffredo Baroncelli
The pathjoin() function creates a path from a list of strings. Signed-off-by: Goffredo Baroncelli --- utils.c | 63 +++ utils.h | 1 + 2 files changed, 64 insertions(+) diff --git a/utils.c b/utils.c index f499023..5f4d0ef 100644 ---

[PATCH 7/7] Document the -R switch for the "btrfs subvolume delete" command.

2013-11-16 Thread Goffredo Baroncelli
Signed-off-by: Goffredo Baroncelli --- man/btrfs.8.in | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/man/btrfs.8.in b/man/btrfs.8.in index aee1f70..5ed5277 100644 --- a/man/btrfs.8.in +++ b/man/btrfs.8.in @@ -8,7 +8,7 @@ btrfs \- control a btrfs filesystem .SH SYNOPSI

[PATCH 1/7] Recursive btrfs sub snapshot/delete: create get_root_info() function

2013-11-16 Thread Goffredo Baroncelli
Move some code from cmd_subvol_show() to get_root_info(). This is a preparation for the introducing of traverse_list_subvol_rec() function. Signed-off-by: Goffredo Baroncelli --- btrfs-list.c | 95 btrfs-list.h | 7 + cmds-sub

[PATCH 3/7] recursive btrfs snapshot/delete: create traverse_list_subvol_rec()

2013-11-16 Thread Goffredo Baroncelli
Create the traverse_list_subvol_rec() function. Its aim is to permit to process recursively the filesystems subvolumes. Signed-off-by: Goffredo Baroncelli --- btrfs-list.c | 121 +++ btrfs-list.h | 3 ++ 2 files changed, 124 insertions(+)

[PATCH] BTRFS-PROG: recursively subvolume snapshot and delete

2013-11-16 Thread Goffredo Baroncelli
Hi All, the following patches implement the recursively snapshotting and deleting of a subvolume. To snapshot recursively you must pass the -R switch: # btrfs subvolume create sub1 Create subvolume './sub1' # btrfs subvolume create sub1/sub2 Create subvolume 'sub1/sub2' # btrfs subvolume snaps

Re: btrfs fi show

2013-11-16 Thread Chris Murphy
On Nov 16, 2013, at 7:58 AM, Gene Czarcinski wrote: > I am on Fedora 20-Beta and we just updated to btrfs-progs > 0.20.rc1-20131114git9f0c53f > > Previously, when you did a btrfs fi show, you got a list with one output for > each btrfs storage volume whether it was a single device or multi-de

btrfs fi show

2013-11-16 Thread Gene Czarcinski
I am on Fedora 20-Beta and we just updated to btrfs-progs 0.20.rc1-20131114git9f0c53f Previously, when you did a btrfs fi show, you got a list with one output for each btrfs storage volume whether it was a single device or multi-device volume. Now, I get multiple outputs for each storage vol

Re: btrfsck errors is it save to fix?

2013-11-16 Thread Hendrik Friedel
Hello, >> Possible? Yes. Although I did not implicitly mention it, you would combine "clear_cache" and "nospace_cache" - that should do the trick. Then unmount and check. Thanks and mentally noted for further reference. I didn't think about combining the options, but it makes perfect sense no

Re: How to fix/remove "csum failed ino" error

2013-11-16 Thread Hugo Mills
On Sat, Nov 16, 2013 at 04:06:10AM -0800, Anatol Pomozov wrote: > Hi > > Follow-up for the issue. I stuck with this "invalid csum for free > space extent" error. Could anyone explain what does it mean? If this > is not data and just a free space, why do we care about its checksum? > And if we do r

Re: How to fix/remove "csum failed ino" error

2013-11-16 Thread Anatol Pomozov
Hi Follow-up for the issue. I stuck with this "invalid csum for free space extent" error. Could anyone explain what does it mean? If this is not data and just a free space, why do we care about its checksum? And if we do really care then btrfs should have a way to fix this error. I can "fix" a fil