Re: On-Disk Format

2010-10-11 Thread Nathan Caza
How is a device checked (when being scanned) to contain a btrfs filesystem? I have a filesystem spread across two devices; one of them is not being detected; the first (@64KiB) superblock is missing (not sure why); but the second one (64MiB) seems valid (fs uuid + dev uuid and all); would i have

One question about btrfs

2010-10-11 Thread Nikko
Hi Experts, I have a question about btrfs, have you people integrated Oracle DIX/T10 DIF into btrfs? If no, do you plan to do that? And what's the reason? Thanks in advance, Nikko -- To unsubscribe from this list: send the line unsubscribe linux-btrfs in the body of a message to

crc32c

2010-10-11 Thread Nathan Caza
I think I'm on the verge of getting all my data back; the only missing piece is to recalculate the crc checksum of my altered superblock and I'm having trouble finding the correct function/method; the data I am checksumming is (based on the sheet) 0x20 (directly after the checksum) to 0x32b + n

converting one-disk btrfs into RAID-1?

2010-10-11 Thread Tomasz Chmielewski
Some Linux distributions started adding btrfs support in their installers. Unfortunately, you can't specify your own mkfs.btrfs parameters, so the best an installer can produce is a btrfs filesystem made on one partition. Is it possible to turn a 1-disk (partition) btrfs filesystem into

Re: crc32c

2010-10-11 Thread Sean Bartell
On Mon, Oct 11, 2010 at 03:47:58AM -0500, Nathan Caza wrote: I think I'm on the verge of getting all my data back; the only missing piece is to recalculate the crc checksum of my altered superblock and I'm having trouble finding the correct function/method; the data I am checksumming is (based

Re: Horrible btrfs performance on cold cache

2010-10-11 Thread Calvin Walton
On Mon, 2010-10-11 at 03:30 +0300, Felipe Contreras wrote: Hi, I use btrfs on most of my volumes on my laptop, and I've always felt booting was very slow, but definitely sure is slow, is starting up Google Chrome: encrypted ext4: ~20s btrfs: ~2:11s I have tried different things to

Re: Horrible btrfs performance on cold cache

2010-10-11 Thread Chester
I think I read/heard somewhere that snapshots can cause pretty bad fragmentation, because it causes your system to write changes to files to random locations on the disk, leaving the original inodes intact.. For that reason, I have replaced the directories ~/.config/chromium , /var , /usr/portage

Re: converting one-disk btrfs into RAID-1?

2010-10-11 Thread Chris Ball
Hi, Is it possible to turn a 1-disk (partition) btrfs filesystem into RAID-1? Not yet, but I'm pretty sure it's on the roadmap. - Chris. -- Chris Ball c...@laptop.org One Laptop Per Child -- To unsubscribe from this list: send the line unsubscribe linux-btrfs in the body of a message

[PATCH V2] Removing a subvolume by an ordinary user

2010-10-11 Thread Goffredo Baroncelli
Hi all, enclosed you can find a patch which permits to remove a volume via the rmdir(2) syscall by an ordinary user. The rules for a subvolume removal are the same ones of a directory: - the user must have the write permission on the parent directory - the subvolume must be empty The mains

Re: Horrible btrfs performance on cold cache

2010-10-11 Thread Felipe Contreras
On Mon, Oct 11, 2010 at 7:23 PM, Chester somethingsome2...@gmail.com wrote: I think I read/heard somewhere that snapshots can cause pretty bad fragmentation But I'm not using snapshots. -- Felipe Contreras -- To unsubscribe from this list: send the line unsubscribe linux-btrfs in the body of

Re: Horrible btrfs performance on cold cache

2010-10-11 Thread Felipe Contreras
On Mon, Oct 11, 2010 at 6:46 PM, Calvin Walton calvin.wal...@gmail.com wrote: On Mon, 2010-10-11 at 03:30 +0300, Felipe Contreras wrote: I use btrfs on most of my volumes on my laptop, and I've always felt booting was very slow, but definitely sure is slow, is starting up Google Chrome:

Re: system crash at mounting of btrfs

2010-10-11 Thread Chris Mason
On Sat, Oct 09, 2010 at 01:08:40PM +, Gerhard Kulzer wrote: Gerhard Kulzer gerhard at kulzer.net writes: Chris Mason chris.mason at oracle.com writes: [7.881078] Btrfs detected SSD devices, enabling SSD mode [7.923553] [ cut here ] [

Re: [PATCH V2] Removing a subvolume by an ordinary user

2010-10-11 Thread Ian Kent
On Mon, 2010-10-11 at 20:08 +0200, Goffredo Baroncelli wrote: Hi all, enclosed you can find a patch which permits to remove a volume via the rmdir(2) syscall by an ordinary user. The rules for a subvolume removal are the same ones of a directory: - the user must have the write permission