WARNING at fs/btrfs/super.c:260 __btrfs_abort_transaction

2015-03-19 Thread Eryu Guan
Hi all, Filling a dm/lvm snapshot triggered this btrfs WARNING, kernel is 4.0-rc3+ I'm working a xfstests case but this simple script could reproduce --- cut --- #!/bin/bash dev=/dev/sda5 mnt=/mnt/test vgname=testvg lvname=testlv snap=snap vgcreate -f $vgname $dev lvcreate -L 256M -n $lvname $v

Re: nube trying to backup my systems

2015-03-19 Thread Duncan
don fisher posted on Thu, 19 Mar 2015 18:49:32 -0700 as excerpted: > Any thoughts on stability of the IDs across boots? Btrfs subvolIDs are a property of the btrfs and thus stable across boots. (They're actually the root-tree ID, with ID=5 the main root tree for the entire filesystem, various o

Re: syntax for deleting subvolumes?

2015-03-19 Thread Duncan
Chris Murphy posted on Thu, 19 Mar 2015 13:09:06 -0600 as excerpted: > Erkki's cp --reflink idea is a good one. I've often wondered if it's a > good idea, and possible, to eventually make --reflink the default > behavior with Btrfs copies (I think some things probably first need > enhancement like

Re: nube trying to backup my systems

2015-03-19 Thread Chris Murphy
On Thu, Mar 19, 2015 at 8:34 PM, don fisher wrote: > Thanks. I will try that. How does the mount distinguish between /srv and > /usr11/srv if the subvol=srv is the same for both? It appears to work, for > when I do a df the sizes are different. I guess it can tell from the UUID of > / as opposed

Re: nube trying to backup my systems

2015-03-19 Thread don fisher
On 03/19/2015 07:15 PM, Chris Murphy wrote: On Thu, Mar 19, 2015 at 7:49 PM, don fisher wrote: My rot is mounted at /usr11. I tried: UUID=26d63d99-92f4-4a49-878b-236f5e88af69 /usr11/srv btrfs subvol=usr11/srv 0 0 but /usr11/srv did not mount. I replaced the number and it did mount. Woul

Re: nube trying to backup my systems

2015-03-19 Thread Chris Murphy
On Thu, Mar 19, 2015 at 7:49 PM, don fisher wrote: > My rot > is mounted at /usr11. I tried: > > UUID=26d63d99-92f4-4a49-878b-236f5e88af69 /usr11/srv btrfs > subvol=usr11/srv 0 0 > > but /usr11/srv did not mount. I replaced the number and it did mount. Would > like to use string like you sug

Re: [PATCH 25/26] Btrfs: sysfs: support seed devices in the sysfs layout v3

2015-03-19 Thread Anand Jain
OK will do. Thanks, Anand On 03/20/2015 02:55 AM, David Sterba wrote: On Tue, Mar 10, 2015 at 06:38:43AM +0800, Anand Jain wrote: by using the kobject_move() Then you should add the kobject_move patch to this patchset as well, with Greg's ack. -- To unsubscribe from this list: send t

Re: nube trying to backup my systems

2015-03-19 Thread don fisher
# btrfs sub list / ID 257 gen 1703 top level 5 path root ID 258 gen 1662 top level 5 path home ID 259 gen 1681 top level 5 path boot ID 262 gen 1629 top level 257 path var/lib/machines To mount machines, either subvol=root/var/lib/machines OR subvolid=262 Why root/var/lib/machines? Because var/

[PATCH v2 4/4] btrfs-progs: Add nodesize test for btrfs-convert

2015-03-19 Thread Sebastian Thorarensen
convert-tests now test both 4096 and 16384 nodesizes. Signed-off-by: Sebastian Thorarensen --- tests/convert-tests.sh | 15 ++- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/tests/convert-tests.sh b/tests/convert-tests.sh index 6094287..3d912f3 100644 --- a/tests/c

[PATCH v2 3/4] btrfs-progs: btrfs-convert: Allow setting nodesize

2015-03-19 Thread Sebastian Thorarensen
Allow btrfs-convert to use nodesizes other than 4096. It defaults to max(16384, pagesize), like mkfs. Signed-off-by: Sebastian Thorarensen --- Documentation/btrfs-convert.txt |4 +++ btrfs-convert.c | 60 ++- 2 files changed, 57 insertion

[PATCH v2 1/4] btrfs-progs: mkfs: Move out some nodesize code

2015-03-19 Thread Sebastian Thorarensen
Move the constant DEFAULT_MKFS_LEAF_SIZE to utils.h and rename it to BTRFS_MKFS_DEFAULT_NODE_SIZE for consistency. Move the function check_leaf_or_node_size to utils.c and rename it to check_node_or_leaf_size. Signed-off-by: Sebastian Thorarensen --- mkfs.c | 26 ++ ut

[PATCH v2 2/4] btrfs-progs: Fix msgs in check_node_or_leaf_size

2015-03-19 Thread Sebastian Thorarensen
check_node_or_leaf_size in utils.c now prints 'nodesize (or leafsize)' instead of 'leafsize (or nodesize)' in the error messages, in order to be less confusing for the user, as leafsize in mkfs is deprecated. 'ERROR: ' is also prepended to be consistent with other error messages. Signed-off-by: Se

[PATCH v2 0/4] btrfs-progs: btrfs-convert: Allow setting nodesize

2015-03-19 Thread Sebastian Thorarensen
Changes since v1: * Split patch into smaller patches * btrfs-convert and mkfs now shares check_node_or_leaf_size * Rebased onto latest v3.19.x Sebastian Thorarensen (4): btrfs-progs: mkfs: Move out some nodesize code btrfs-progs: Fix msgs in check_node_or_leaf_size btrfs-progs: btrfs-conv

Re: nube trying to backup my systems

2015-03-19 Thread Chris Murphy
On Thu, Mar 19, 2015 at 5:31 PM, don fisher wrote: > I was happy until I tried to perform an ls on /usr11/tmp and found that it > contained the root file system, all the /usr11 files present. My plan had > been to rsync these two systems, from / to /usr11. If I umount /usr1/tmp > subvolume and ls

nube trying to backup my systems

2015-03-19 Thread don fisher
I am new to btrfs, being introduced under openSuse 3.2 as the root file system. In the past I always made backups of my disks using rsync. I now have two versions of the OS on the same system. I was trying to mount the second btrfs system as well as the first. I edited my /etc/fstab (attached)

Re: Upgrade to 3.19.2 Kernel fails to boot

2015-03-19 Thread Chris Murphy
On Thu, Mar 19, 2015 at 5:06 PM, G. Richard Bellamy wrote: > When I upgrade to the 3.19.2 Kernel I get a deadlocked boot: > INFO: task mount:302 blocked for more than 120 seconds. > INFO: task btrfs-transacti:329 blocked for more than 120 seconds. If you boot single user is it semi-responsive eno

Re: [PATCH 1/3] dm: log writes target

2015-03-19 Thread Zach Brown
On Thu, Mar 19, 2015 at 04:31:08PM -0400, Josef Bacik wrote: > This creates a new target that is meant for file system developers to test > file > system integrity at particular points in the life of a file system. Hi Josef, just a quick drive-by review for stuff that jumps out at me.. > + a

Upgrade to 3.19.2 Kernel fails to boot

2015-03-19 Thread G. Richard Bellamy
When I upgrade to the 3.19.2 Kernel I get a deadlocked boot: INFO: task mount:302 blocked for more than 120 seconds. INFO: task btrfs-transacti:329 blocked for more than 120 seconds. I have an LTS Kernel at 3.14.35 that also fails to boot with the same behavior. My 3.18.6 works just fine. -rb --

Re: number of hardlinks for directory in ls -lid always 1?

2015-03-19 Thread Kai Krakow
Filipe David Manana schrieb: > On Thu, Mar 19, 2015 at 1:21 PM, David Sterba wrote: >> On Wed, Mar 18, 2015 at 03:23:50PM +0100, Martin Steigerwald wrote: >>> It explains that having a correct hardlink number for directory is not >>> mandatory, but it doesn´t explain why BTRFS always has 1 in th

Re: number of hardlinks for directory in ls -lid always 1?

2015-03-19 Thread Filipe David Manana
On Thu, Mar 19, 2015 at 1:21 PM, David Sterba wrote: > On Wed, Mar 18, 2015 at 03:23:50PM +0100, Martin Steigerwald wrote: >> It explains that having a correct hardlink number for directory is not >> mandatory, but it doesn´t explain why BTRFS always has 1 in there instead >> of the actual count o

Re: rsync vs. extent-same: this time with lock debugging (still v3.18.8)

2015-03-19 Thread Mark Fasheh
On Thu, Mar 05, 2015 at 10:17:14AM +, Filipe David Manana wrote: > On Thu, Mar 5, 2015 at 2:56 AM, Zygo Blaxell > wrote: > > rsync seems to get stuck just by reading the same file that extent-same is > > acting upon. > > > > Mar 4 21:35:08 sneezy kernel: [89798.758960] INFO: task rsync:7425 b

[PATCH 2/3] fstests: add dm-log-writes test and supporting code

2015-03-19 Thread Josef Bacik
This patch adds the supporting code for using the dm-log-writes target. The bash stuff is similar to the dmflakey code, it just gives us functions to build and tear down a dm-log-writes target. We add a new LOGWRITES_DEV variable to take in the device we will use as the log and add checks for tha

[PATCH 3/3] fstests: btrfs balance with dm log writes test

2015-03-19 Thread Josef Bacik
This test runs fsstress+balance+defrag and then replays every FUA in the log and mounts, scrubs and then fscks the fs to make sure it does the balance recovery properly. Thanks, Signed-off-by: Josef Bacik --- tests/btrfs/083 | 135 tests/

[PATCH 0/3] Device mapper log writes patches

2015-03-19 Thread Josef Bacik
Here are my patches for adding the dm-log-writes target to the kernel and the supporting xfstests to go along with it. The dm patch has a pretty detailed documentation file to describe the methodology behind the target and how to use it. The xfstest that is generic has been tested on btrfs, xfs a

[PATCH 1/3] dm: log writes target

2015-03-19 Thread Josef Bacik
This creates a new target that is meant for file system developers to test file system integrity at particular points in the life of a file system. We capture all write requests and the data and log the requests and the data to a separate device for later replay. There is a userspace utility to d

Re: syntax for deleting subvolumes?

2015-03-19 Thread Chris Murphy
On Wed, Mar 18, 2015 at 5:22 PM, K Richard Pixley wrote: > Most of the uses I have for btrfs involve fairly dynamic use of snapshots, > typically by non-root users. Another thing. Some distros behave this way: chris@linux-6gc0:~> btrfs sub list / Absolute path to 'btrfs' is '/usr/sbin/btrfs', so

Re: [PATCH 00/26 v4] provide framework so that sysfs attributs from the fs_devices can be added

2015-03-19 Thread David Sterba
On Tue, Mar 10, 2015 at 06:38:18AM +0800, Anand Jain wrote: > This patch set will provide a framework and help to create attributes > from the structure btrfs_fs_devices which are available even before > fs_info is created. So by moving the parent kobject super_kobj from > fs_info to btrfs_fs_devic

Re: [PATCH 25/26] Btrfs: sysfs: support seed devices in the sysfs layout v3

2015-03-19 Thread David Sterba
On Tue, Mar 10, 2015 at 06:38:43AM +0800, Anand Jain wrote: > by using the kobject_move() Then you should add the kobject_move patch to this patchset as well, with Greg's ack. -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.ker

Re: [PATCH] btrfs/052: Fix test case to work on 64K block size.

2015-03-19 Thread Filipe David Manana
On Sun, Mar 1, 2015 at 5:20 PM, Chandan Rajendra wrote: > The test case passes file offsets which don't align with 64K block size. This > causes btrfs_ioctl_clone() to return with -EINVAL. Fix this by using offsets > which are multiples of 64k. > > Signed-off-by: Chandan Rajendra Reviewed-by: Fil

Re: [PATCH 1/7] btrfs: Check qgroup level in kernel qgroup assign.

2015-03-19 Thread David Sterba
On Fri, Feb 27, 2015 at 04:24:22PM +0800, Qu Wenruo wrote: > Although we have qgroup level check in btrfs-progs, it's not enough > since other programe may still call ioctl directly not using > btrfs-progs. For example, systemd. > > But it's btrfs-progs to be blame since we don't provide a > full-

Re: Is btrfs filesystem resize synchronous?

2015-03-19 Thread David Sterba
On Wed, Mar 18, 2015 at 04:36:17PM +0100, Zoltán Halassy wrote: > Is it safe to use do something like this: > > # btrfs filesystem resize 100m /mnt/something && lvreduce -f -L100M > /dev/somevg/somelv > > as in, when the first command exits with 0 status, is the filesystem > already resized? I me

Re: number of hardlinks for directory in ls -lid always 1?

2015-03-19 Thread David Sterba
On Wed, Mar 18, 2015 at 03:23:50PM +0100, Martin Steigerwald wrote: > It explains that having a correct hardlink number for directory is not > mandatory, but it doesn´t explain why BTRFS always has 1 in there instead > of the actual count of hardlinks. Is this an performance optimization for > B

Re: [PATCH 0/4] Accounting fixes

2015-03-19 Thread David Sterba
On Tue, Mar 17, 2015 at 04:37:59PM -0400, Josef Bacik wrote: > I've changed all of these a whole bunch recently, I think I've gotten all the > issues worked out, please review/test to make sure there's not some other > fucking corner I've missed. Thanks, The dirty_bgs assert is gone and fstests h

Re: syntax for deleting subvolumes?

2015-03-19 Thread Erkki Seppala
K Richard Pixley writes: > But as a user level facility, I want to be able to snapshot before > making a change to a tree full of source code and (re)building it all > over again. I may want to keep my new build, but I may want to flush > it and return to known good state. You may want to check