Needed change in Wiki

2013-02-24 Thread Hendrik Friedel
Hello, I don't see how to change the wiki, but it needs an update: apt-get build-dep btrfs-tools -or- apt-get install uuid-dev libattr1-dev zlib1g-dev libacl1-dev e2fslibs-dev here libblkid-dev is missing -at least for the latest git version of the btrfs-progs. Greetings, Hendrik -- To

Re: Needed change in Wiki

2013-02-24 Thread Goffredo Baroncelli
On 02/24/2013 03:13 PM, Hendrik Friedel wrote: Hello, I don't see how to change the wiki, but it needs an update: apt-get build-dep btrfs-tools -or- apt-get install uuid-dev libattr1-dev zlib1g-dev libacl1-dev e2fslibs-dev here libblkid-dev is missing -at least for the latest git

Re: [PATCH 2/3] Btrfs: fix the deadlock between the transaction start/attach and commit

2013-02-24 Thread Alex Lyakas
Hi Miao, can you please explain your solution a bit more. On Wed, Feb 20, 2013 at 11:16 AM, Miao Xie mi...@cn.fujitsu.com wrote: Now btrfs_commit_transaction() does this ret = btrfs_run_ordered_operations(root, 0) which async flushes all inodes on the ordered operations list, it introduced

Re: [PATCH 1/8] Add some helpers to manage the strings allocation/deallocation.

2013-02-24 Thread Eric Sandeen
On 2/23/13 7:46 AM, Goffredo Baroncelli wrote: From: Goffredo Baroncelli kreij...@inwind.it This patch adds some helpers to manage the strings allocation and deallocation. The function string_list_add(char *) adds the passed string to a list; the function string_list_free() frees all the

WARNING: at fs/btrfs/inode.c:2165 btrfs_orphan_commit_root+0xcb/0xdf()

2013-02-24 Thread Marc MERLIN
Is this useful to anyone? Got this after a crash/reboot: if (block_rsv) { WARN_ON(block_rsv-size 0); btrfs_free_block_rsv(root, block_rsv); } [ cut here ] WARNING: at fs/btrfs/inode.c:2165

Re: [PATCH] Btrfs: update inode flags when renaming

2013-02-24 Thread Liu Bo
On Fri, Feb 22, 2013 at 11:04:40PM +0100, David Sterba wrote: On Fri, Feb 22, 2013 at 05:34:47PM +0800, Miao Xie wrote: On fri, 22 Feb 2013 16:40:35 +0800, Liu Bo wrote: On Fri, Feb 22, 2013 at 03:32:50AM -0500, Marios Titas wrote: Sorry, but the bug persists even with the above patch.

[PATCH] Btrfs: do not change inode flags in rename

2013-02-24 Thread Liu Bo
Before we forced to change a file's NOCOW and COMPRESS flag due to the parent directory's, but this ends up a bad idea, because it confuses end users a lot about file's NOCOW status, eg. if someone change a file to NOCOW via 'chattr' and then rename it in the current directory which is without

Re: [PATCH] Btrfs: update inode flags when renaming

2013-02-24 Thread Miao Xie
On mon, 25 Feb 2013 11:50:01 +0800, Liu Bo wrote: On Fri, Feb 22, 2013 at 11:04:40PM +0100, David Sterba wrote: On Fri, Feb 22, 2013 at 05:34:47PM +0800, Miao Xie wrote: On fri, 22 Feb 2013 16:40:35 +0800, Liu Bo wrote: On Fri, Feb 22, 2013 at 03:32:50AM -0500, Marios Titas wrote:

Re: Needed change in Wiki

2013-02-24 Thread Anand Jain
You may need to update the minimum version of libblkid-dev that is required. Since. latest btrfs-progs needs blkid_probe_get_wholedisk_devno() from the libblkid-dev. found libblkid-dev version 2.17.2 does not work, and 2.22 works. Not sure which version introduced the function required here.

Re: [PATCH] Btrfs: update inode flags when renaming

2013-02-24 Thread Liu Bo
On Mon, Feb 25, 2013 at 12:23:03PM +0800, Miao Xie wrote: Onmon, 25 Feb 2013 11:50:01 +0800, Liu Bo wrote: On Fri, Feb 22, 2013 at 11:04:40PM +0100, David Sterba wrote: On Fri, Feb 22, 2013 at 05:34:47PM +0800, Miao Xie wrote: Onfri, 22 Feb 2013 16:40:35 +0800, Liu Bo wrote:

[PATCH 0/2 v4] Btrfs-progs: Add support for subvol label

2013-02-24 Thread Anand Jain
This is the Btrfs-progs changes to add support for the subvol label. As discussed in the mailing-list there are two ways we could get the label attached to the subvol, using kernel-ioctl method and the other method is by using attributes. I preferred kernel-ioctl method over the attribute since

[PATCH 1/2 v4] Btrfs-progs: add feature to label subvol and snapshot

2013-02-24 Thread Anand Jain
btrfs-progs framework to add support to label the subvol and snapshots. This patch is for the ioctl-way to write label to the subvol and snapshot. (the other way is to use attribute if then only this patch has to be backed out in btrfs-progs and replace with the patch titled Btrfs-progs: add

[PATCH 2/2 v4] Btrfs-progs: cmd option to show or set the subvol label

2013-02-24 Thread Anand Jain
This adds the command option label to the subvol sub-command, this is a generic patch which will stay irrespective of which approach we take, that is the ioctl-way or the attributes. Signed-off-by: Anand Jain anand.j...@oracle.com --- cmds-subvolume.c | 37 +

[PATCH v4] Btrfs: Add support for subvol label

2013-02-24 Thread Anand Jain
This is the btrfs kernel changes to add supprt for the subvol label. The related (v4) Btrfs-progs patches are Btrfs-progs: add feature to label subvol and snapshot Btrfs-progs: cmd option to show or set the subvol label v4: rebased to Josef Bacik btrfs-next Anand Jain (1): Btrfs:

[PATCH v4] Btrfs: ability to add label to snapshot and subvol

2013-02-24 Thread Anand Jain
Generally snapshots are machine generated, so at any point in time if a sysadmin looks at a list of snapshots there should be some info about the snapshots to indicate purpose of it being created. With this patch and along with the corresponding btrfs-progs patch a 32byte info can be added to the