Re: Synching a Backup Server

2011-01-09 Thread Alan Chandler
On 07/01/11 16:20, Hubert Kario wrote: I usually create subvolumes in btrfs root volume: /mnt/btrfs/ |- server-a |- server-b \- server-c then create snapshots of these directories: /mnt/btrfs/ |- server-a |- server-b |- server-c

Re: Various Questions

2011-01-09 Thread Carl Cook
I'd rather not do the copy again unless necessary, as it took a day. Directories look identical, but who knows? I'm going to try and figure out how to do a file-by-file crc check, for peace of mind. On Sat 08 January 2011 17:26:25 Freddie Cash wrote: On Sat, Jan 8, 2011 at 5:25 AM, Carl

Re: Synching a Backup Server

2011-01-09 Thread Fajar A. Nugraha
On Sun, Jan 9, 2011 at 6:46 PM, Alan Chandler a...@chandlerfamily.org.uk wrote: then create snapshots of these directories: /mnt/btrfs/         |- server-a         |- server-b         |- server-c         |- snapshots-server-a                  |- @GMT-2010.12.21-16.48.09                    

Re: Various Questions

2011-01-09 Thread Alan Chandler
On 09/01/11 13:37, Fajar A. Nugraha wrote: On Sun, Jan 9, 2011 at 8:16 PM, Carl Cookcac...@quantum-sci.com wrote: I'd rather not do the copy again unless necessary, as it took a day. Directories look identical, but who knows? I'm going to try and figure out how to do a file-by-file

Re: Atomic file data replace API

2011-01-09 Thread Olaf van der Spek
On Sat, Jan 8, 2011 at 10:43 PM, Thomas Bellman bell...@nsc.liu.se wrote: So, basically database transactions with an isolation level of committed read, for file operations.  That's something I have wanted for a long time, especially if I also get a rollback() operation, but have never heard

Re: Synching a Backup Server

2011-01-09 Thread Alan Chandler
On 09/01/11 13:54, Fajar A. Nugraha wrote: By default, when you do something like mount /dev/sdb1 /mnt/btrfs the default subvolume will be mounted under /mnt/btrfs. Snapshots and subvolumes will be visible as subdirectories under it, regardless whether it's in the root or several

Swap file on btrfs fails (swapfile has holes)

2011-01-09 Thread Paul Richards
Hi, I have just recently installed Debian squeeze with a root filesystem on btrfs [1]. I have noticed however that I cannot set up a swap file stored on the btrfs volume: dd if=/dev/zero of=/var/swap bs=16M count=4 mkswap /var/swap chmod 0 /var/swap swapon /var/swap [ 01751.879759] swapon:

Re: Synching a Backup Server

2011-01-09 Thread Freddie Cash
On Sun, Jan 9, 2011 at 7:32 AM, Alan Chandler a...@chandlerfamily.org.uk wrote: I think I start to get it now.  Its the fact that subvolumes can be snapshotted etc without mounting them that is the difference.  I guess I am too used to thinking like LVM and I was thinking subvolumes where like

Re: Atomic file data replace API

2011-01-09 Thread Thomas Bellman
Olaf van der Spek wrote: On Sat, Jan 8, 2011 at 10:43 PM, Thomas Bellman bell...@nsc.liu.se wrote: So, basically database transactions with an isolation level of committed read, for file operations. That's something I have wanted for a long time, especially if I also get a rollback()

Re: Atomic file data replace API

2011-01-09 Thread Olaf van der Spek
On Sun, Jan 9, 2011 at 7:56 PM, Thomas Bellman bell...@nsc.liu.se wrote: True, that's why this feature request is here. Note that it's (ATM) only about  single file data replace. That particular problem was solved with the introduction of the rename(2) system call in 4.2BSD a bit more than a

Re: Atomic file data replace API

2011-01-09 Thread Phillip Susi
On 01/09/2011 01:56 PM, Thomas Bellman wrote: That particular problem was solved with the introduction of the rename(2) system call in 4.2BSD a bit more than a quarter of a century ago. There is no need to introduce another, less flexible, API for doing the same thing. I'm curious if there are

Re: Synching a Backup Server

2011-01-09 Thread Alan Chandler
On 09/01/11 18:30, Hugo Mills wrote: No, subvolumes are a part of the whole filesystem. In btrfs, there is only one filesystem. There are 6 main B-trees that store metadata in btrfs (plus a couple of others). One of those is the filesystem tree (or FS tree), which contains all the

Re: Synching a Backup Server

2011-01-09 Thread Hugo Mills
On Sun, Jan 09, 2011 at 08:57:12PM +, Alan Chandler wrote: On 09/01/11 18:30, Hugo Mills wrote: No, subvolumes are a part of the whole filesystem. In btrfs, there is only one filesystem. There are 6 main B-trees that store metadata in btrfs (plus a couple of others). One of those is

Re: Synching a Backup Server

2011-01-09 Thread Alan Chandler
On 09/01/11 22:01, Hugo Mills wrote: I find the wiki also confusing because it talks about subvolumes having to be at the first level of the filesystem, but again further up this thread there is an example which is used for real of it not being at the first level, but at one level down inside

Re: Synching a Backup Server

2011-01-09 Thread Fajar A. Nugraha
On Mon, Jan 10, 2011 at 5:01 AM, Hugo Mills hugo-l...@carfax.org.uk wrote:   There is a root subvolume namespace (subvolid=0), which may contain files, directories, and other subvolumes. This root subvolume is what you see when you mount a newly-created btrfs filesystem. Is there a detailed

Re: [GIT PULL] [RFC PATCH 0/4] btrfs: Implement delayed directory name index insertion and deletion

2011-01-09 Thread Itaru Kitayama
Hi Miao, As you suggested, in btrfs_recover_log_trees(), the items to modify in the transaction are not known before entering a tree, we can use the global block reservation for it. Signed-off-by: Itaru Kitayama kitay...@cl.bb4u.ne.jp --- fs/btrfs/tree-log.c |2 ++ 1 files changed, 2