Re: Shrinking virtual disk with btrfs on it

2011-01-22 Thread Tomasz Torcz
On Fri, Jan 21, 2011 at 07:43:47PM +, David Pottage wrote: > On 21/01/11 17:20, Rodney Beede wrote: > > Any tools to go about zeroing about the free space on a btrfs file > > system so I can shrink the VMware vmdk virtual disk? > > > > I ran the VMware command, but the dynamic disk is still rea

[PATCH] Add -v option to btrfsctl to control verbosity: Be quiet unless requested.

2011-01-22 Thread Maximilian Mehnert
--- btrfsctl.c | 10 -- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git a/btrfsctl.c b/btrfsctl.c index 92bdf39..156ed62 100644 --- a/btrfsctl.c +++ b/btrfsctl.c @@ -106,6 +106,7 @@ int main(int ac, char **av) char *pos; char *fullpath; u64 objectid

Re: [PATCH] Add -v option to btrfsctl to control verbosity: Be quiet unless requested.

2011-01-22 Thread Felix Blanke
Hi, btrfsctl is deprecated, why you're adding new options to it? :) Regards, Felix On 22. January 2011 - 12:59, Maximilian Mehnert wrote: > Date: Sat, 22 Jan 2011 12:59:22 +0100 > From: Maximilian Mehnert > To: linux-btrfs > Subject: [PATCH] Add -v option to btrfsctl to control verbosity: Be

Re: [PATCH] Add -v option to btrfsctl to control verbosity: Be quiet unless requested.

2011-01-22 Thread Maximilian Mehnert
On 22/01/11 13:11, Felix Blanke wrote: Hi, btrfsctl is deprecated, why you're adding new options to it? :) Well, I did not know that it's deprecated ;-) Neither the manpage nor the program itself said so and the messages annoyed logcheck... -- To unsubscribe from this list: send the line "

Re: [PATCH] Add -v option to btrfsctl to control verbosity: Be quiet unless requested.

2011-01-22 Thread Felix Blanke
Hi, there is a patch that marks it deprecated: http://www.spinics.net/lists/linux-btrfs/msg06625.html But it's not in git yet :/ Last commit is from oct. 2010, hopefully all new patches will be pulled soon. Regards, Felix On 22. January 2011 - 13:26, Maximilian Mehnert wrote: > Date: Sat, 2

Re: btrfs defrag: how does it work?

2011-01-22 Thread Paul Komkoff
On Thu, Jan 20, 2011 at 9:38 PM, Chris Mason wrote: > Are you using compression? No. -- This message represents the official view of the voices in my head -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordom

Re: Synching a Backup Server

2011-01-22 Thread Hugo Mills
On Fri, Jan 21, 2011 at 11:28:19AM -0800, Freddie Cash wrote: > On Sun, Jan 9, 2011 at 10:30 AM, Hugo Mills wrote: > > On Sun, Jan 09, 2011 at 09:59:46AM -0800, Freddie Cash wrote: > >> Let see if I can match up the terminology and layers a bit: > >> > >> LVM Physical Volume == Btrfs disk == ZFS d

Re: Synching a Backup Server

2011-01-22 Thread Hubert Kario
On Friday 21 of January 2011 20:28:19 Freddie Cash wrote: > On Sun, Jan 9, 2011 at 10:30 AM, Hugo Mills wrote: > > On Sun, Jan 09, 2011 at 09:59:46AM -0800, Freddie Cash wrote: > >> Let see if I can match up the terminology and layers a bit: > >> > >> LVM Physical Volume == Btrfs disk == ZFS disk

Bug in mkfs.btrfs?!

2011-01-22 Thread Felix Blanke
Hi, I wanted to create a new btrfs fs for my backups. When trying to mkfs.btrfs for that device, I'm getting "error checking /dev/loop2 mount status" With strace I see where the problem is: lstat("/dev/disk/by-id/ata-INTEL_SSDSA2M160G2GC_CVPO939201JX160AGN-par", 0x7fffa30b3cf0) = -1 ENOENT (N

Re: Bug in mkfs.btrfs?!

2011-01-22 Thread Felix Blanke
I was able to create the fs with the --force options. But that bug should be fixed, too :) Is that link maybe too long? It is created by udev, and there was never a problem using that link. Regards, Felix On 22. January 2011 - 15:45, Felix Blanke wrote: > Date: Sat, 22 Jan 2011 15:45:13 +0100

Re: Bug in mkfs.btrfs?!

2011-01-22 Thread Hugo Mills
On Sat, Jan 22, 2011 at 03:52:22PM +0100, Felix Blanke wrote: > I was able to create the fs with the --force options. But that bug should be > fixed, > too :) > > Is that link maybe too long? It is created by udev, and there was never a > problem > using that link. Yes, it certainly looks li

Re: Bug in mkfs.btrfs?!

2011-01-22 Thread Hugo Mills
On Sat, Jan 22, 2011 at 03:11:24PM +, Hugo Mills wrote: > On Sat, Jan 22, 2011 at 03:52:22PM +0100, Felix Blanke wrote: > > I was able to create the fs with the --force options. But that bug should > > be fixed, > > too :) > > > > Is that link maybe too long? It is created by udev, and there

Re: Bug in mkfs.btrfs?!

2011-01-22 Thread Felix Blanke
It was a simple: mkfs.btrfs -L backup -d single /dev/loop2 But it also happens without the options, like: mkfs.btrfs /dev/loop2 /dev/loop2 is a loop device, which is aes encrypted. The output of "losetup /dev/loop2": /dev/loop2: [0010]:5324 (/dev/disk/by-id/ata-WDC_WD6400AAKS-22A7B2_WD-WCAS

Re: Shrinking virtual disk with btrfs on it

2011-01-22 Thread Rodney Beede
On Fri, Jan 21, 2011 at 10:34 AM, Hugo Mills wrote: > On Fri, Jan 21, 2011 at 10:20:34AM -0700, Rodney Beede wrote: >> Any tools to go about zeroing about the free space on a btrfs file >> system so I can shrink the VMware vmdk virtual disk? >> >> I ran the VMware command, but the dynamic disk is

Re: Bug in mkfs.btrfs?!

2011-01-22 Thread Chris Samuel
On Sun, January 23, 2011 2:56 am, Felix Blanke wrote: > It was a simple: > > mkfs.btrfs -L backup -d single /dev/loop2 > > But it also happens without the options, like: > > mkfs.btrfs /dev/loop2 > > > /dev/loop2 is a loop device, which is aes encrypted. The output of > "losetup /dev/loop2": > >

Re: Bug in mkfs.btrfs?!

2011-01-22 Thread Felix Blanke
Hi, no :) loop2 is the decrypted device. A small example: /dev/sda1 is encrypted. Then you run losetup with some options and /dev/sda1, enter the password and after that /dev/loop1 will be created. >From now on you're using /dev/loop1 as your device node, e.g. fdisk -l /dev/loop1 If you wo

Re: [GIT PULL] Btrfs updates

2011-01-22 Thread Clemens Eisserer
> E.g. suppose you have a LZO compressed file, then a program rewrites some > data which is in the middle of the file, and suppose the newly written data > is less compressible. Any idea how this is handled? I would be interested in the answer as well. Thank you in advance, Clemens -- To unsubscr

Re: [GIT PULL] Btrfs updates

2011-01-22 Thread cwillu
On Sat, Jan 22, 2011 at 5:41 PM, Clemens Eisserer wrote: >> E.g. suppose you have a LZO compressed file, then a program rewrites some >> data which is in the middle of the file, and suppose the newly written data >> is less compressible. > > Any idea how this is handled? I would be interested in t

snapshot strange behaviour

2011-01-22 Thread Lubos Kolouch
Hello, During doing backups I found strange behaviour... 2.6.37, latest btrfs- progs from git nbgentoo ~ # btrfs subv crea a Create subvolume './a' nbgentoo ~ # cd a nbgentoo a # btrfs subv crea b Create subvolume './b' nbgentoo a # touch b/file nbgentoo a # ls -l b/ total 0 -rw-r--r-- 1 root roo