Re: Can anyone boot a system using btrfs root with linux 3.14 or newer?

2014-04-24 Thread Fajar A. Nugraha
On Thu, Apr 24, 2014 at 10:23 AM, Chris Murphy li...@colorremedies.com wrote: It sounds like either a grub.cfg misconfiguration, or a failure to correctly build the initrd/initramfs. So I'd post the grub.cfg kernel command line for the boot entry that works and the entry that fails, for

bedup - De-duplication and snapshots

2014-04-24 Thread Pete
Dear All, I have a very slow deduplication going on on an external usb disk. I'm using it for backups - I rsync the relevent files to the disk and then take a snapshot. I then deduplicate with bedup dedup disk-mount-point What I am finding is that it is reporting a deduplication between the

Re: Cycle of send/receive for backup/restore is incomplete...

2014-04-24 Thread Robert White
I am, then, quite confused... On 04/23/2014 09:28 PM, Brendan Hide wrote: Replied inline: btrfs doesn't differentiate snapshots and subvolumes. They're the same first-class citizen. A snapshot is a subvolume that just happens to have some data (automagically/naturally) deduplicated with another

Re: Which companies are using Btrfs in production?

2014-04-24 Thread Adam Brenner
On 04/23/2014 06:19 PM, Marc MERLIN wrote: Oh while we're at it, are there companies that can say they are using btrfs in production? Marc On the Gluster Listsrv a few brave souls have used it on as a distributive filesystem[1]. Here at UCI's HPC Cluster we *might* use it on a scratch

Re: Which companies contribute to Btrfs?

2014-04-24 Thread Filipe David Manana
On Thu, Apr 24, 2014 at 2:18 AM, Marc MERLIN m...@merlins.org wrote: Howdy, I writing slides about btrfs for an upcoming talk (at linuxcon) and I was trying to gather a list of companies that contribute code to btrfs. What I came up with (sorted alphabetically) Couchbase (CouchDB) Hi Marc,

Re: inode cache rebuild problem

2014-04-24 Thread Duncan
Shridhar Daithankar posted on Wed, 23 Apr 2014 23:07:13 +0630 as excerpted: I have a desktop system with 2 disks, all btrfs, single partition. All of these partitions had space_cache,inode_cache enabled. But even on clean reboot, inode_cache was constantly being rebuilt on each boot. While

[PATCH v2 3/3] Btrfs-progs: fsck: add ability to check reloc roots

2014-04-24 Thread Wang Shilong
When encountering system crash or balance enospc errors, there maybe still some reloc roots left. The way we store reloc root is different from fs root: reloc root's root key(BTRFS_RELOC_TREE_OBJECTID, ROOT_ITEM, objectid) fs root's root key(objectid, ROOT_ITEM, -1) reloc data's root

Re: Kernel crash triggered by dd to file with memcg, worst on btrfs

2014-04-24 Thread Richard Davies
Michal Hocko wrote: Richard Davies wrote: I have a test case in which I can often crash an entire machine by running dd to a file with a memcg with relatively generous limits. This is simplified from real world problems with heavy disk i/o inside containers. ... [I have also just reported

Re: Which companies contribute to Btrfs?

2014-04-24 Thread David Sterba
On Wed, Apr 23, 2014 at 06:18:34PM -0700, Marc MERLIN wrote: I writing slides about btrfs for an upcoming talk (at linuxcon) and I was trying to gather a list of companies that contribute code to btrfs. https://btrfs.wiki.kernel.org/index.php/Main_Page [...] Jointly developed at Oracle, Red

Re: Kernel crash triggered by dd to file with memcg, worst on btrfs

2014-04-24 Thread Vladimir Davydov
On 04/24/2014 01:58 AM, Michal Hocko wrote: I have a test case in which I can often crash an entire machine by running dd to a file with a memcg with relatively generous limits. This is simplified from real world problems with heavy disk i/o inside containers. The crashes are easy to trigger

Re: Kernel crash triggered by dd to file with memcg, worst on btrfs

2014-04-24 Thread Michal Hocko
On Thu 24-04-14 11:59:33, Richard Davies wrote: Michal Hocko wrote: Richard Davies wrote: I have a test case in which I can often crash an entire machine by running dd to a file with a memcg with relatively generous limits. This is simplified from real world problems with heavy disk

Re: Can anyone boot a system using btrfs root with linux 3.14 or newer?

2014-04-24 Thread Chris Mason
On 04/23/2014 04:58 PM, Marc MERLIN wrote: On Wed, Apr 23, 2014 at 10:37:44PM +0300, Пламен Петров wrote: So now, we're kind of guessing. To save us all time, could you capture a serial console boot from the running 3.13 and then the failing 3.14. Well, for the details - see for example

Re: Can anyone boot a system using btrfs root with linux 3.14 or newer?

2014-04-24 Thread Chris Mason
On 04/24/2014 08:34 AM, Chris Mason wrote: On 04/23/2014 04:58 PM, Marc MERLIN wrote: On Wed, Apr 23, 2014 at 10:37:44PM +0300, Пламен Петров wrote: So now, we're kind of guessing. To save us all time, could you capture a serial console boot from the running 3.13 and then the failing 3.14.

Re: Which companies are using Btrfs in production?

2014-04-24 Thread Austin S. Hemmelgarn
On 2014-04-23 21:19, Marc MERLIN wrote: Oh while we're at it, are there companies that can say they are using btrfs in production? Marc Ohio Gravure Technologies is currently preparing to use it on our next generation of production systems. -- To unsubscribe from this list: send the line

Re: Which companies contribute to Btrfs?

2014-04-24 Thread Fajar A. Nugraha
On Thu, Apr 24, 2014 at 6:39 PM, David Sterba dste...@suse.cz wrote: On Wed, Apr 23, 2014 at 06:18:34PM -0700, Marc MERLIN wrote: I writing slides about btrfs for an upcoming talk (at linuxcon) and I was trying to gather a list of companies that contribute code to btrfs.

Re: Which companies are using Btrfs in production?

2014-04-24 Thread Tomasz Torcz
On Wed, Apr 23, 2014 at 06:19:52PM -0700, Marc MERLIN wrote: Oh while we're at it, are there companies that can say they are using btrfs in production? Jolla is selling smartphones with btrfs. -- Tomasz TorczThere exists no separation between gods and men: xmpp:

[PATCH] btrfs: make DEV_INFO ioctl available to anyone

2014-04-24 Thread David Sterba
This ioctl provides basic info about the devices that can be obtained in other ways (eg. sysfs), there's no reason to restrict it to CAP_SYSADMIN. Signed-off-by: David Sterba dste...@suse.cz --- fs/btrfs/ioctl.c |3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git

[PATCH] btrfs: make FS_INFO ioctl available to anyone

2014-04-24 Thread David Sterba
This ioctl provides basic info about the filesystem that can be obtained in other ways (eg. sysfs), there's no reason to restrict it to CAP_SYSADMIN. Signed-off-by: David Sterba dste...@suse.cz --- fs/btrfs/ioctl.c |3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git

[PATCH] Btrfs: correctly set profile flags on seqlock retry

2014-04-24 Thread Filipe David Borba Manana
If we had to retry on the profiles seqlock (due to a concurrent write), we would set bits on the input flags that corresponded both to the current profile and to previous values of the profile. Signed-off-by: Filipe David Borba Manana fdman...@gmail.com --- fs/btrfs/extent-tree.c | 4 +++- 1

[PATCH] Btrfs: use correct key when repeating search for extent item

2014-04-24 Thread Filipe David Borba Manana
If skinny metadata is enabled and our first tree search fails to find a skinny extent item, we may repeat a tree search for a fat extent item (if the previous item in the leaf is not the fat extent we're looking for). However we were not setting the new key's objectid to the right value, as we

Re: Which companies are using Btrfs in production?

2014-04-24 Thread Daniel Lee
On 04/23/2014 06:19 PM, Marc MERLIN wrote: Oh while we're at it, are there companies that can say they are using btrfs in production? Marc Netgear uses BTRFS as the filesystem in their refreshed ReadyNAS line. They apparently use Oracle's linux distro so I assume they're relying on them to do

Re: btrfs send receive, clone

2014-04-24 Thread Hugo Mills
On Thu, Apr 24, 2014 at 09:23:28AM -0600, Chris Murphy wrote: I don't understand the btrfs send -c clone-src man page text, or really even the use case. In part this is what it says: You must not specify clone sources unless you guarantee that these snapshots are exactly in the same

Re: btrfs send receive, clone

2014-04-24 Thread Hugo Mills
On Thu, Apr 24, 2014 at 04:55:10PM +0100, Hugo Mills wrote: I'm trying to think of a case where -c is useful that doesn't involve someone having done cp --reflink=always between subvolumes, but I can't. OK, you can use -c if you don't have a record of the relationships between the

Re: Which companies contribute to Btrfs?

2014-04-24 Thread Marc MERLIN
On Thu, Apr 24, 2014 at 11:31:17AM +0100, Filipe David Manana wrote: On Thu, Apr 24, 2014 at 2:18 AM, Marc MERLIN m...@merlins.org wrote: Howdy, I writing slides about btrfs for an upcoming talk (at linuxcon) and I was trying to gather a list of companies that contribute code to btrfs.

RE: Can anyone boot a system using btrfs root with linux 3.14 or newer?

2014-04-24 Thread Пламен Петров
-Original Message- From: Chris Mason [mailto:c...@fb.com] Sent: Thursday, April 24, 2014 3:36 PM To: Marc MERLIN; Пламен Петров Cc: linux-btrfs@vger.kernel.org Subject: Re: Can anyone boot a system using btrfs root with linux 3.14 or newer? On 04/24/2014 08:34 AM, Chris Mason

Re: raid6, disks of different sizes, ENOSPC errors despite having plenty of space

2014-04-24 Thread Sergey Ivanyuk
Thanks, this makes sense. I freed up some space and the re-balance back to raid1 is now running (I had to run 'btrfs balance -dusage=5' before some free space actually became available). Filed the other issue as https://bugzilla.kernel.org/show_bug.cgi?id=74761 . On Wed, Apr 23, 2014 at 6:53 PM,

RE: Can anyone boot a system using btrfs root with linux 3.14 or newer?

2014-04-24 Thread Пламен Петров
-Original Message- From: Пламен Петров [mailto:pla...@petrovi.no-ip.info] Sent: Wednesday, April 23, 2014 10:38 PM To: 'Marc MERLIN' Cc: 'linux-btrfs@vger.kernel.org' Subject: RE: Can anyone boot a system using btrfs root with linux 3.14 or newer? -Original Message-

Re: btrfs send receive, clone

2014-04-24 Thread Chris Murphy
On Apr 24, 2014, at 9:55 AM, Hugo Mills h...@carfax.org.uk wrote: On Thu, Apr 24, 2014 at 09:23:28AM -0600, Chris Murphy wrote: I don't understand the btrfs send -c clone-src man page text, or really even the use case. In part this is what it says: You must not specify clone sources

Re: Can anyone boot a system using btrfs root with linux 3.14 or newer?

2014-04-24 Thread Marc MERLIN
On Thu, Apr 24, 2014 at 08:19:21PM +0300, Пламен Петров wrote: I just realized that the l gave no way for identifying the particular bugzilla entry. Here it is: https://bugzilla.kernel.org/show_bug.cgi?id=74261 Thanks. But to save us a lot more speculation, can you please try booting a linux

RE: Can anyone boot a system using btrfs root with linux 3.14 or newer?

2014-04-24 Thread Пламен Петров
-Original Message- From: Marc MERLIN [mailto:m...@merlins.org] Sent: Thursday, April 24, 2014 8:33 PM To: Пламен Петров Cc: linux-btrfs@vger.kernel.org Subject: Re: Can anyone boot a system using btrfs root with linux 3.14 or newer? On Thu, Apr 24, 2014 at 08:19:21PM +0300,

Re: btrfs send receive, clone

2014-04-24 Thread Hugo Mills
On Thu, Apr 24, 2014 at 11:22:40AM -0600, Chris Murphy wrote: On Apr 24, 2014, at 9:55 AM, Hugo Mills h...@carfax.org.uk wrote: On Thu, Apr 24, 2014 at 09:23:28AM -0600, Chris Murphy wrote: I don't understand the btrfs send -c clone-src man page text, or really even the use case.

Re: Can anyone boot a system using btrfs root with linux 3.14 or newer?

2014-04-24 Thread Marc MERLIN
On Thu, Apr 24, 2014 at 09:51:30PM +0300, Пламен Петров wrote: So, here is what I did: My debug VM had: sda sda1 200 MB /boot - ext2 sda2 5 GB / - BTRFS sda3 5 GB / - XFS sda4 One extra partition used for mangling (XFS). sda2 and sda3 were mostly the same, except

RE: Can anyone boot a system using btrfs root with linux 3.14 or newer?

2014-04-24 Thread Пламен Петров
-Original Message- From: Marc MERLIN [mailto:m...@merlins.org] Sent: Thursday, April 24, 2014 10:31 PM To: Пламен Петров Cc: linux-btrfs@vger.kernel.org Subject: Re: Can anyone boot a system using btrfs root with linux 3.14 or newer? On Thu, Apr 24, 2014 at 09:51:30PM +0300,

Re: Can anyone boot a system using btrfs root with linux 3.14 or newer?

2014-04-24 Thread Chris Murphy
On Apr 24, 2014, at 12:51 PM, Пламен Петров pla...@petrovi.no-ip.info wrote: I booted 3.14.1 using sda3 as root, and then tried mounting sda2. It went OK, here is what dmesg said: [ 12.412465] Btrfs loaded For me, with Btrfs not compiled in the kernel, and with an initramfs, on SSD I

RE: Can anyone boot a system using btrfs root with linux 3.14 or newer?

2014-04-24 Thread Пламен Петров
-Original Message- From: Chris Murphy [mailto:li...@colorremedies.com] Sent: Friday, April 25, 2014 12:06 AM To: Пламен Петров Cc: 'Marc MERLIN'; linux-btrfs@vger.kernel.org Subject: Re: Can anyone boot a system using btrfs root with linux 3.14 or newer? On Apr 24, 2014, at

Re: Which companies are using Btrfs in production?

2014-04-24 Thread Marc MERLIN
On Thu, Apr 24, 2014 at 06:34:29AM -0700, Daniel Lee wrote: On 04/23/2014 06:19 PM, Marc MERLIN wrote: Oh while we're at it, are there companies that can say they are using btrfs in production? Marc Netgear uses BTRFS as the filesystem in their refreshed ReadyNAS line. They apparently

Re: Which companies contribute to Btrfs?

2014-04-24 Thread Marc MERLIN
On Thu, Apr 24, 2014 at 07:55:31PM +0700, Fajar A. Nugraha wrote: On Thu, Apr 24, 2014 at 6:39 PM, David Sterba dste...@suse.cz wrote: On Wed, Apr 23, 2014 at 06:18:34PM -0700, Marc MERLIN wrote: I writing slides about btrfs for an upcoming talk (at linuxcon) and I was trying to gather a

Re: Can anyone boot a system using btrfs root with linux 3.14 or newer?

2014-04-24 Thread Chris Murphy
On Apr 24, 2014, at 2:26 PM, Пламен Петров pla...@petrovi.no-ip.info wrote: -Original Message- From: Marc MERLIN [mailto:m...@merlins.org] You said using rootwait as recommended by Chris Mason did not help. What output are you getting when you use this? The image file attached

Re: Which companies are using Btrfs in production?

2014-04-24 Thread Justin Maggard
On Thu, Apr 24, 2014 at 6:34 AM, Daniel Lee longinu...@gmail.com wrote: On 04/23/2014 06:19 PM, Marc MERLIN wrote: Oh while we're at it, are there companies that can say they are using btrfs in production? Marc Netgear uses BTRFS as the filesystem in their refreshed ReadyNAS line. They

Re: Can anyone boot a system using btrfs root with linux 3.14 or newer?

2014-04-24 Thread Marc MERLIN
On Fri, Apr 25, 2014 at 01:22:32AM +0300, Пламен Петров wrote: -Original Message- From: Chris Murphy [mailto:li...@colorremedies.com] Sent: Friday, April 25, 2014 12:06 AM To: Пламен Петров Cc: 'Marc MERLIN'; linux-btrfs@vger.kernel.org Subject: Re: Can anyone boot a system

Re: Which companies are using Btrfs in production?

2014-04-24 Thread Marc MERLIN
On Thu, Apr 24, 2014 at 03:03:24PM -0700, Justin Maggard wrote: On Thu, Apr 24, 2014 at 6:34 AM, Daniel Lee longinu...@gmail.com wrote: On 04/23/2014 06:19 PM, Marc MERLIN wrote: Oh while we're at it, are there companies that can say they are using btrfs in production? Marc Netgear

Re: Can anyone boot a system using btrfs root with linux 3.14 or newer?

2014-04-24 Thread Chris Murphy
On Apr 24, 2014, at 5:07 PM, Marc MERLIN m...@merlins.org wrote: In 3.14 the device shows up before btrfs is loaded: sd 2:0:0:0: [sda] Cache data unavailable sd 2:0:0:0: [sda] Assuming drive cache: write through sd 2:0:0:0: [sda] Attached SCSI disk (...) Btrfs loaded Same for me

Re: Can anyone boot a system using btrfs root with linux 3.14 or newer?

2014-04-24 Thread Chris Mason
On 04/24/2014 08:04 PM, Chris Murphy wrote: On Apr 24, 2014, at 5:07 PM, Marc MERLIN m...@merlins.org wrote: In 3.14 the device shows up before btrfs is loaded: sd 2:0:0:0: [sda] Cache data unavailable sd 2:0:0:0: [sda] Assuming drive cache: write through sd 2:0:0:0: [sda] Attached SCSI

Re: Bug:

2014-04-24 Thread Andreas Reis
Duncan 1i5t5.duncan at cox.net writes: Plus, either way you can report back the results and then we'll know whether it's safe to recommend btrfs check for the next report, or not. =:^) Well this is just bloody brilliant. I did btrfs check --repair with from integration and a bunch of

Re: Bug: Partition borked

2014-04-24 Thread Andreas Reis
Andreas Reis andreas.reis at gmail.com writes: Turns out that when I try to run any binary from the restored partition (via LiveCD), *every* *single* *one* fails with this remarkably expressive error. If I manually replace one with a fresh download, I get a SIGBUS crash instead. Alright,

Re: Bug: Partition borked

2014-04-24 Thread Chris Murphy
On Apr 24, 2014, at 8:43 PM, Andreas Reis andreas.r...@gmail.com wrote: Andreas Reis andreas.reis at gmail.com writes: Turns out that when I try to run any binary from the restored partition (via LiveCD), *every* *single* *one* fails with this remarkably expressive error. If I manually

RE: Can anyone boot a system using btrfs root with linux 3.14 or newer?

2014-04-24 Thread Пламен Петров
-Original Message- From: Chris Murphy [mailto:li...@colorremedies.com] Sent: Friday, April 25, 2014 3:04 AM To: Marc MERLIN Cc: Пламен Петров; linux-btrfs@vger.kernel.org Subject: Re: Can anyone boot a system using btrfs root with linux 3.14 or newer? On Apr 24, 2014, at 5:07

RE: Can anyone boot a system using btrfs root with linux 3.14 or newer?

2014-04-24 Thread Пламен Петров
-Original Message- From: Chris Mason [mailto:c...@fb.com] Sent: Friday, April 25, 2014 3:08 AM To: Chris Murphy; Marc MERLIN Cc: Пламен Петров; linux-btrfs@vger.kernel.org Subject: Re: Can anyone boot a system using btrfs root with linux 3.14 or newer? On 04/24/2014 08:04 PM,

[PATCH 1/2] Btrfs-progs: set string end sing '\0' for property

2014-04-24 Thread Liu Bo
Set string xattr_name 's end with '\0' so that it won't be violated in memory. With this fix, xfstest/btrfs/048 can pass on my box. Signed-off-by: Liu Bo bo.li@oracle.com --- props.c | 1 + 1 file changed, 1 insertion(+) diff --git a/props.c b/props.c index 4d0aeea..53223a3 100644 ---