[PATCH] Btrfs: reset path lock state to zero

2012-12-28 Thread Liu Bo
We forgot to reset the path lock state to zero after we unlock the path block, and this can lead to the ASSERT checker in tree unlock API. Reported-by: Slava Barinov raysl...@gmail.com Signed-off-by: Liu Bo bo.li@oracle.com --- fs/btrfs/extent-tree.c |2 ++ 1 files changed, 2

Re: BUG at fs/btrfs/locking.c:265

2012-12-28 Thread Liu Bo
Hi Slava, David, I've sent a patch to fix the bug(Cced you), could you please check if it works? :) thanks, liubo On Thu, Dec 27, 2012 at 02:24:37PM +0100, David Sterba wrote: On Thu, Dec 27, 2012 at 04:07:31PM +0800, Liu Bo wrote: On Thu, Dec 27, 2012 at 08:27:11AM +0400, Slava Barinov

Re: [RFC PATCH v8 1/2] Btrfs: Add a new ioctl to get the label of a mounted file system

2012-12-28 Thread David Sterba
On Fri, Dec 28, 2012 at 11:42:36AM +0800, Jeff Liu wrote: +static int btrfs_ioctl_get_fslabel(struct file *file, void __user *arg) +{ + struct btrfs_root *root = BTRFS_I(fdentry(file)-d_inode)-root; + const char *label = root-fs_info-super_copy-label; + size_t len = strnlen(label,

Re: [RFC PATCH v8 2/2] Btrfs: Add a new ioctl to set/change the label of a mounted file system

2012-12-28 Thread David Sterba
On Fri, Dec 28, 2012 at 11:42:40AM +0800, Jeff Liu wrote: +static int btrfs_ioctl_set_fslabel(struct file *file, void __user *arg) +{ + struct btrfs_root *root = BTRFS_I(fdentry(file)-d_inode)-root; + struct btrfs_super_block *super_block = root-fs_info-super_copy; + struct

Re: [PATCH RESEND] vfs: re-implement writeback_inodes_sb(_nr)_if_idle() and rename them

2012-12-28 Thread David Sterba
On Thu, Dec 20, 2012 at 06:09:35PM +0800, Miao Xie wrote: --- a/fs/fs-writeback.c +++ b/fs/fs-writeback.c @@ -1314,7 +1314,6 @@ void writeback_inodes_sb_nr(struct super_block *sb, bdi_queue_work(sb-s_bdi, work); wait_for_completion(done); }

Re: problems with dracut mounting subvols

2012-12-28 Thread dima
On 12/28/2012 10:44 AM, Chris Murphy wrote: On Dec 27, 2012, at 6:13 PM, dima dole...@parallels.com wrote: /dev/disk/by-uuid/64383cfe-c31d-4d25-97c4-4e6b7e788b26 /sysroot/usr btrfs subvol=usr,subvol=root,ro 1 2 I'd say that the problem is definitely with this line having two subvolumes

Re: problems with dracut mounting subvols

2012-12-28 Thread Chris Murphy
On Dec 28, 2012, at 9:31 AM, dima dole...@parallels.com wrote: On 12/28/2012 10:44 AM, Chris Murphy wrote: Seems dracut is creating the wrong fstab for itself, but then also can't mount it correctly manually from a shell command. When booted in rescue mode to a full system, not just a

Re: [PATCH] Btrfs: reset path lock state to zero

2012-12-28 Thread Mitch Harder
On Fri, Dec 28, 2012 at 3:33 AM, Liu Bo bo.li@oracle.com wrote: We forgot to reset the path lock state to zero after we unlock the path block, and this can lead to the ASSERT checker in tree unlock API. Reported-by: Slava Barinov raysl...@gmail.com Signed-off-by: Liu Bo

Re: parent transid verify failed on -- After moving btrfs closer to the beginning of drive with dd

2012-12-28 Thread cwillu
On Fri, Dec 28, 2012 at 12:09 PM, Jordan Windsor jorda...@gmail.com wrote: Hello, I moved my btrfs to the beginning of my drive updated the partition table also restarted, I'm currently unable to mount it, here's the output in dmesg. [ 481.513432] device label Storage devid 1 transid

Re: parent transid verify failed on -- After moving btrfs closer to the beginning of drive with dd

2012-12-28 Thread Jordan Windsor
Hello, thanks for the response! Here's the output of -o recovery [ 5473.725751] device label Storage devid 1 transid 116023 /dev/sdb1 [ 5473.726612] btrfs: enabling auto recovery [ 5473.726615] btrfs: disk space caching is enabled [ 5473.734581] parent transid verify failed on 1229060423680

Incremental btrfs receive in opposite direction fails

2012-12-28 Thread junlion
Hi everyone! (I use kernel 3.7.1 and mason/btrfs-progs.git head + the receive lchown patch [1]. Is there a more up to date btrfs-progs repo for send/receive enthusiasts?) What I'm trying is basically: # Transfer a snapshot of my old system from a backup to the new system btrfs send

Re: corrupt filesystem after snapshots on 3.2

2012-12-28 Thread Russell Coker
On Sat, 29 Dec 2012, Chris Murphy li...@colorremedies.com wrote: Add another disk, or disk partition, to the Btrfs volume. That'll give it more space and hopefully you can back out at that point. # df -h /mnt/tmp Filesystem Size Used Avail Use% Mounted on /dev/mapper/rjca-crypt

Re: corrupt filesystem after snapshots on 3.2

2012-12-28 Thread Chris Murphy
On Dec 28, 2012, at 8:14 PM, Russell Coker russ...@coker.com.au wrote: On Sat, 29 Dec 2012, Chris Murphy li...@colorremedies.com wrote: Add another disk, or disk partition, to the Btrfs volume. That'll give it more space and hopefully you can back out at that point. # df -h /mnt/tmp