default subvolume abilities/restrictions

2010-05-19 Thread C Anthony Risinger
hi, i'm working on an initrd hook [http://aur.archlinux.org/packages.php?ID=33376] to support non-volatile system rollbacks (promoting a temporary rollback snapshot to the new active/default). when the system is installed to the default/. subvolume (as many users probably initially do), it is

the flushoncommit mount option

2010-05-19 Thread Mathijs Kwik
Hi all, Over the past few months, I've been trying out btrfs on separate mountpoints. I like it very much so I would like to try it on my home or root volumes and see if I can do something fun with the snapshots. As btrfs still isn't production-ready, I made sure everything is backed-up to an

Re: default subvolume abilities/restrictions

2010-05-19 Thread Chris Ball
Hi, moving along to a question... can the default subvolume be swapped/removed/renamed/popped/shifted? I think btrfs subvolume list; btrfs subvolume set-default id path does what you need. - Chris. -- Chris Ball c...@laptop.org One Laptop Per Child -- To unsubscribe from this list:

Re: default subvolume abilities/restrictions

2010-05-19 Thread C Anthony Risinger
On Wed, May 19, 2010 at 9:20 AM, Chris Ball c...@laptop.org wrote: Hi,   moving along to a question... can the default subvolume be   swapped/removed/renamed/popped/shifted? I think btrfs subvolume list; btrfs subvolume set-default id path does what you need. - Chris. maybe i'm missing

Re: default subvolume abilities/restrictions

2010-05-19 Thread Goffredo Baroncelli
On Wednesday, May 19, 2010, C Anthony Risinger wrote: On Wed, May 19, 2010 at 6:56 AM, kreij...@libero.it kreij...@libero.it wrote: Hi Anthony, I think that for you may be interested to read this thread http://kerneltrap.org/mailarchive/linux-btrfs/2009/11/20/6588643/thread and to

Re: [PATCH] btrfs: check alloc return value before use handle and struct

2010-05-19 Thread Andi Kleen
Steven Liu lingjiujia...@gmail.com writes: diff --git a/fs/btrfs/dir-item.c b/fs/btrfs/dir-item.c index e9103b3..230a131 100644 --- a/fs/btrfs/dir-item.c +++ b/fs/btrfs/dir-item.c @@ -142,6 +142,8 @@ int btrfs_insert_dir_item(struct btrfs_trans_handle *trans, struct btrfs_root

[PATCH 6/6] Btrfs: do aio_write instead of write V2

2010-05-19 Thread Josef Bacik
V1-V2 -Fix some things that git rebase screwed up -Use iov_iter_count() instead of count in a few places -Update pos if we had a short read/write In order for AIO to work, we need to implement aio_write. This patch converts our btrfs_file_write to btrfs_aio_write. I've tested this with xfstests

[PATCH 5/6] Btrfs: add basic DIO read/write support V6

2010-05-19 Thread Josef Bacik
V1-V2 -Use __blockdev_direct_IO instead of helper -Use KM_IRQ0 for kmap instead of KM_USER0 V2-V3 -Update the submit function to work with my submit hook changes -Add DIO write support V3-V4 -Use local_irq_save/restore around the KM_IRQ0 kmaps V4-V5 -Use ordered extents for the DIO stuff so we

Re: Fullfil the bmap operation

2010-05-19 Thread Chris Mason
On Wed, May 19, 2010 at 04:09:21PM +0800, liubo wrote: Hi, When we tested btrfs with Josef's test-tools, a FAIL came to us. After looking into it, we found that aops-bmap had been deleted because btrfs's COW + swapfile led to corruption. So, is there a plan for this bmap operation?