Re: [PATCH v1 0/2] Btrfs-progs: commands resolve inode and resolve logical

2011-07-08 Thread Jan Schmidt
On 08.07.2011 01:19, Goffredo Baroncelli wrote: On 07/07/2011 06:01 PM, Jan Schmidt wrote: The kernel patch series just sent (Subject: Btrfs: scrub: print path to corrupted files and trigger nodatasum fixup) introduces two new ioctls to do in-kernel filesystem path construction. This series

How to get the default subvolume?

2011-07-08 Thread Yi Yang
Hi, I know I can set the default subvolume for a btrfs fs using sudo btrfs subvolume set-default 256 /btrfs/mnt But after that, how can get the default subvolume name? In my opinion, btrfs-progs should provide btrfs subvolume get-default /btrfs/mnm to get the default subvolume id and name, I

Re: How to get the default subvolume?

2011-07-08 Thread Hugo Mills
On Fri, Jul 08, 2011 at 05:58:02PM +0800, Yi Yang wrote: I know I can set the default subvolume for a btrfs fs using sudo btrfs subvolume set-default 256 /btrfs/mnt But after that, how can get the default subvolume name? In my opinion, btrfs-progs should provide btrfs subvolume get-default

Re: How to get the default subvolume?

2011-07-08 Thread Andreas Philipp
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 08.07.2011 11:58, Hugo Mills wrote: On Fri, Jul 08, 2011 at 05:58:02PM +0800, Yi Yang wrote: I know I can set the default subvolume for a btrfs fs using sudo btrfs subvolume set-default 256 /btrfs/mnt But after that, how can get the default

RE: How to get the default subvolume?

2011-07-08 Thread Yang, Yi Y
That's great, can you share your source code with me? I'm very eager to get this now :-) -Original Message- From: Hugo Mills [mailto:h...@carfax.org.uk] Sent: Friday, July 08, 2011 5:58 PM To: Yang, Yi Y Cc: linux-btrfs@vger.kernel.org Subject: Re: How to get the default subvolume? On

Re: How to get the default subvolume?

2011-07-08 Thread Hugo Mills
On Fri, Jul 08, 2011 at 06:06:02PM +0800, Yang, Yi Y wrote: That's great, can you share your source code with me? I'm very eager to get this now :-) http://carfax.org.uk/btrfs-gui http://git.darksatanic.net/repo/btrfs-gui.git/ You probably want the btrfsgui.hlp.subvol.sv_list()

RE: How to get the default subvolume?

2011-07-08 Thread Yang, Yi Y
From your source, you defined some structures using python and use them to get and parse btrfs metadata, very advanced and complicated :-), do you know there is any library to provide similar APIs in order that I can use some advanced APIs and don't need to worry about frequent changes of

btrfs hang in flush-btrfs-5

2011-07-08 Thread Jeremy Sanders
Hi - I'm trying btrfs with kernel 2.6.38.8-32.fc15.x86_64 (a Fedora kernel). I'm just doing a tar-to-tar copy onto the file system with compress- force=zlib. Here are some traces of the stuck processes. flush-btrfs-5 seems to be stuck: Jul 8 11:49:40 xback2 kernel: [74920.681032] flush-btrfs-5

Re: How to get the default subvolume?

2011-07-08 Thread Hugo Mills
On Fri, Jul 08, 2011 at 06:28:54PM +0800, Yang, Yi Y wrote: From your source, you defined some structures using python and use them to get and parse btrfs metadata, very advanced and complicated :-), do you know there is any library to provide similar APIs in order that I can use some advanced

Re: Memory leak?

2011-07-08 Thread Chris Mason
Excerpts from Stephane Chazelas's message of 2011-07-08 08:44:29 -0400: 2011-07-06 09:11:11 +0100, Stephane Chazelas: 2011-07-03 13:38:57 -0600, cwillu: On Sun, Jul 3, 2011 at 1:09 PM, Stephane Chazelas stephane_chaze...@yahoo.fr wrote: [...] Now, on a few occasions (actually, most

Re: Memory leak?

2011-07-08 Thread Stephane Chazelas
2011-07-08 11:06:08 -0400, Chris Mason: [...] So the invalidate opcode in btrfs-fixup-0 is the big problem. We're either failing to write because we weren't able to allocate memory (and not dealing with it properly) or there is a bigger problem. Does the btrfs-fixup-0 oops come before or

Re: Memory leak?

2011-07-08 Thread Stephane Chazelas
2011-07-08 16:41:23 +0100, Stephane Chazelas: 2011-07-08 11:06:08 -0400, Chris Mason: [...] So the invalidate opcode in btrfs-fixup-0 is the big problem. We're either failing to write because we weren't able to allocate memory (and not dealing with it properly) or there is a bigger

Re: Memory leak?

2011-07-08 Thread Chris Mason
Excerpts from Stephane Chazelas's message of 2011-07-08 11:41:23 -0400: 2011-07-08 11:06:08 -0400, Chris Mason: [...] So the invalidate opcode in btrfs-fixup-0 is the big problem. We're either failing to write because we weren't able to allocate memory (and not dealing with it properly)

Re: [PATCH] fs/vfs/security: pass last path component to LSM on inode creation

2011-07-08 Thread Al Viro
On Wed, Dec 08, 2010 at 02:45:27PM -0500, Eric Paris wrote: SELinux would like to implement a new labeling behavior of newly created inodes. We currently label new inodes based on the parent and the creating process. This new behavior would also take into account the name of the new object

Re: Memory leak?

2011-07-08 Thread Chris Mason
Excerpts from Stephane Chazelas's message of 2011-07-08 12:11:03 -0400: 2011-07-08 16:41:23 +0100, Stephane Chazelas: 2011-07-08 11:06:08 -0400, Chris Mason: [...] So the invalidate opcode in btrfs-fixup-0 is the big problem. We're either failing to write because we weren't able to

Re: Memory leak?

2011-07-08 Thread Stephane Chazelas
2011-07-08 12:17:54 -0400, Chris Mason: [...] Jun 5 00:58:10 BUG: Bad page state in process rsync pfn:1bfdf Jun 5 00:58:10 page:ea61f8c8 count:0 mapcount:0 mapping: (null) index:0x2300 Jun 5 00:58:10 page flags: 0x110(dirty) Jun 5 00:58:10 Pid:

Re: Memory leak?

2011-07-08 Thread Stephane Chazelas
2011-07-08 12:15:08 -0400, Chris Mason: [...] You described this workload as rsync, is there anything else running? [...] Nope. Nothing else. And at least initially, that was onto an empty drive so basic copy. rsync --archive --xattrs --hard-links --numeric-ids --sparse --acls Cheers,

[GIT PULL] btrfs fixes

2011-07-08 Thread Chris Mason
Hi everyone, The for-linus branch of the btrfs-unstable repo: git://git.kernel.org/pub/scm/linux/kernel/git/mason/btrfs-unstable.git for-linus Has three more fixes. We're fixing oopsen during space balancing (btrfs filesystem balance /mnt)) and during device removal. Dave Sterba also sent in

Re: Memory leak?

2011-07-08 Thread Stephane Chazelas
2011-07-08 12:15:08 -0400, Chris Mason: [...] I'd definitely try without -o compress_force. [...] Just started that over the night. I'm running a dstat -df at the same time and I'm seeing substantive amount of disk writes on the disks that hold the source FS (and I'm rsyncing from read-only

Re: Memory leak?

2011-07-08 Thread Chris Mason
Excerpts from Stephane Chazelas's message of 2011-07-08 16:04:12 -0400: 2011-07-08 12:15:08 -0400, Chris Mason: [...] I'd definitely try without -o compress_force. [...] Just started that over the night. I'm running a dstat -df at the same time and I'm seeing substantive amount of disk

Raid root filesystem?

2011-07-08 Thread Evert Vorster
Hi there... A year ago a btrfs raid needs to be scanned before it can be mounted. Is this still the case? I would like to have a btrfs raid as root, but so far this was not possible due to the scanning thing, and thus I still need a /boot filesystem. It would be awesome to be able to just boot