Re: kernel got struck while scrubbing BTRFS with node- and leafsize 32768

2012-06-24 Thread Martin Steigerwald
Am Samstag, 16. Juni 2012 schrieb Martin Steigerwald: Am Samstag, 16. Juni 2012 schrieb Martin Steigerwald: Am Samstag, 16. Juni 2012 schrieb Martin Steigerwald: merkaba:~ date ; btrfs scrub status /mnt/amazon-daten Sa 16. Jun 22:06:33 CEST 2012 scrub status for

[PATCH 0/5] introduce btrfs filesystem property command

2012-06-24 Thread Alexander Block
This patchset introduces the btrfs filesystem property command. It is the result of a discussion we had on IRC. I tried to make the properties interface as generic and extensible as possible. Comments are welcome. Currently the command looks like this: btrfs fi prop /path/to/object [name[=value]]

[PATCH 1/5] Btrfs-progs: add BTRFS_IOC_SUBVOL_GET/SETFLAGS to ioctl.h

2012-06-24 Thread Alexander Block
Btrfs send/receive needs this ioctl to make a subvolume r/o after it was received. --- ioctl.h |2 ++ 1 file changed, 2 insertions(+) diff --git a/ioctl.h b/ioctl.h index f2e5d8d..d6311f6 100644 --- a/ioctl.h +++ b/ioctl.h @@ -312,6 +312,8 @@ struct btrfs_ioctl_logical_ino_args {

[PATCH 2/5] Btrfs-progs: move skip_prefix and prefixcmp to utils.c

2012-06-24 Thread Alexander Block
Needed by btrfs fi prop. Signed-off-by: Alexander Block abloc...@googlemail.com --- btrfs.c| 17 ++--- commands.h |2 -- help.c |2 ++ utils.c| 15 +++ utils.h|3 +++ 5 files changed, 22 insertions(+), 17 deletions(-) diff --git a/btrfs.c

[PATCH 5/5] Btrfs-progs: introduce btrfs filesystem property command

2012-06-24 Thread Alexander Block
btrfs filesystem property is a generic interface to set/get properties on filesystem objects (inodes/subvolumes/roots/devs). This patch adds the generic framework for properties and also implements two properties. The first is the read-only property for subvolumes and the second is the label

[PATCH 4/5] Btrfs-progs: make filesystem_cmd_group non const

2012-06-24 Thread Alexander Block
Make filesystem_cmd_group non const so that btrfs fi prop can generate the usage string at runtime. The commands member of struct cmd_group is also non const now. Signed-off-by: Alexander Block abloc...@googlemail.com --- cmds-filesystem.c |2 +- commands.h|4 ++-- 2 files

[PATCH 3/5] Btrfs-progs: let get_label return the label instead of of printing it

2012-06-24 Thread Alexander Block
get_label prints the label at the moment. Change this so that the label is returned and printing is done by the caller. Also bail out when open_ctree failed to avoid a crash when btrfs fi label is called on a device with no btrfs on it. Signed-off-by: Alexander Block abloc...@googlemail.com ---

Re: [PATCH 4/5] Btrfs-progs: make filesystem_cmd_group non const

2012-06-24 Thread Alexander Block
I've removed this patch in the mean time. It was needed to build the usage string for btrfs fi props at runtime but I found a solution to do this at compile time now. On Sun, Jun 24, 2012 at 11:20 PM, Alexander Block abloc...@googlemail.com wrote: Make filesystem_cmd_group non const so that

Re: btrfs: filenames collide with snapshot/subvolume names

2012-06-24 Thread Ben Hutchings
On Thu, 2012-06-14 at 12:28 +0200, David Sterba wrote: On Thu, Jun 14, 2012 at 05:34:29AM +0100, Ben Hutchings wrote: ?? (Giorgos?) reports: Namely, being inside a snapshot directory, I can't create a file/directory with the name of the snapshot directory. For example,

Re: kernel got struck while scrubbing BTRFS with node- and leafsize 32768

2012-06-24 Thread Chester
On Sat, Jun 16, 2012 at 3:23 PM, Martin Steigerwald mar...@lichtvoll.de wrote: [251818.022631] [ cut here ] [251818.022714] WARNING: at /media/data/mattems/src/linux-2.6-3.4.1/debian/build/source_amd64_none/fs/btrfs/extent_io.c:4522 read_extent_buffer+0x43/0xf0