btrfs-convert crashes

2011-04-26 Thread Brian Parma
I have a 1.5 TB (1,475,720,773,632) partition that I wanted to convert from ext4 to btrfs. It is currently used as / for ubuntu 10.10. I booted into 11.04 beta2 and tried a 'btrfs-convert /dev/sdc1', but after about 20 minutes it segfaulted. I performed a: sck.ext4 -cDfty -C 0 /dev/sdc1 A

Observed unexpected behavior of BTRFS in d_instantiate

2011-04-26 Thread Casey Schaufler
I have been tracking down an problem that we've been seeing with Smack on top of btrfs and have narrowed it down to a check in smack_d_instantiate() that checks to see if the underlying filesystem supports extended attributes by looking at inode->i_op->getxattr If the filesystem has no entr

RE: [PATCH V8 4/8] mm/fs: add hooks to support cleancache

2011-04-26 Thread Dan Magenheimer
> From: Minchan Kim [mailto:minchan@gmail.com] > On Sat, Apr 16, 2011 at 3:53 AM, Dan Magenheimer > wrote: > >> From: OGAWA Hirofumi [mailto:hirof...@mail.parknet.co.jp] > >> > >> Andrew Morton writes: > >> > > Andrew, I wonder if you would be so kind as to read the following > > and make a "

Re: [GIT PULL] Btrfs plugging

2011-04-26 Thread Linus Torvalds
On Tue, Apr 26, 2011 at 6:52 AM, Chris Mason wrote: > > Jens ripped this code out when he did the plugging work, I had promised > to redo it in the new framework. Nice. The new plugging code really made that look a lot prettier than it used to. Pulled. Linus -- To unsubsc

[GIT PULL] Btrfs updates

2011-04-26 Thread Chris Mason
Hi everyone, The master branch of the btrfs unstable repo: git://git.kernel.org/pub/scm/linux/kernel/git/mason/btrfs-unstable.git master Has a few bug fixes. Josef fixed up a crash in the free space cache error handling code, and it should close out the open bugs there. Li Zefan found a slab c

[GIT PULL] Btrfs plugging

2011-04-26 Thread Chris Mason
Hi everyone, The for-linus branch of the btrfs unstable tree: git://git.kernel.org/pub/scm/linux/kernel/git/mason/btrfs-unstable.git for-linus Has a single commit for the btrfs bio submission worker threads. These gather up IOs when the checksumming or compression threads are done with the CPU

[PATCH 2/5] Add support for read-only subvolumes.

2011-04-26 Thread Andreas Philipp
Use BTRFS_IOC_CREATE_SNAP_V2 instead of BTRFS_IOC_CREATE_SNAP and add an option for the creation of a readonly snapshot. Signed-off-by: Andreas Philipp --- btrfs_cmds.c | 48 1 files changed, 40 insertions(+), 8 deletions(-) diff --git a/btrfs_

[PATCH 4/5] Test the additional ioctl.

2011-04-26 Thread Andreas Philipp
Signed-off-by: Andreas Philipp --- ioctl-test.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/ioctl-test.c b/ioctl-test.c index 7cf3bc2..1c27d61 100644 --- a/ioctl-test.c +++ b/ioctl-test.c @@ -22,6 +22,7 @@ unsigned long ioctls[] = { BTRFS_IOC_INO_LOOKUP,

[PATCH 3/5] Support the new parameters in do_clone(int argc, char** argv).

2011-04-26 Thread Andreas Philipp
Now 'btrfs subvolume snapshot' takes not two but only at least two parameters. Additionally, the help message is updated accordingly. Signed-off-by: Andreas Philipp --- btrfs.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/btrfs.c b/btrfs.c index 46314cf..f70d64b

[PATCH 5/5] Updated manpage for btrfs subvolume snapshot.

2011-04-26 Thread Andreas Philipp
Signed-off-by: Andreas Philipp --- man/btrfs.8.in | 11 ++- 1 files changed, 6 insertions(+), 5 deletions(-) diff --git a/man/btrfs.8.in b/man/btrfs.8.in index 26ef982..b59bc6f 100644 --- a/man/btrfs.8.in +++ b/man/btrfs.8.in @@ -5,7 +5,7 @@ .SH NAME btrfs \- control a btrfs filesys

[PATCH 1/5] Added support for an additional ioctl.

2011-04-26 Thread Andreas Philipp
Added BTRFS_IOC_SNAP_CREATE_V2 and struct btrfs_ioctl_vol_args_v2 as defined in fs/btrfs/ioctl.h in the kernel sources. Signed-off-by: Andreas Philipp --- ioctl.h | 14 ++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/ioctl.h b/ioctl.h index 776d7a9..358f814 10064

[PATCH v2 0/5] Add user-space support for read-only snapshot creation.

2011-04-26 Thread Andreas Philipp
Changelog v2: - Fixed uninitialized variable (args). - Corrected order of patches to make everything compile. - Fixed some style errors. There is kernel side support for the creation of read-only snapshots for some time now, but I did not find any patches for the userspace btrfs utilites. Th