RFC: exporting info via sysfs [was Re: [patch 0/2] Control filesystem balances (kernel side)]

2010-11-04 Thread Goffredo Baroncelli
Hi all, I make a prototype for exporting info from btrfs via sysfs. Under /sys/btrfs were created two directories, named fs and devices. /sys/btrfs/fs/fs-uuid/ label - filesystem label num_devices- total number of devices

Re: Btrfs, NFS (v3) and ESTALE

2010-11-04 Thread David Flynn
* Daniel J Blueman (daniel.blue...@gmail.com) wrote: I was experiencing a similar pattern of ESTALE issues with NFS with 2.6.33 (IIRC) and cached data on ext4, and could reproduce it from time to time performing kernel rebuilds over NFS. I've CC'd Trond on the full email to see if it rings a

Finding Fragmentation on a Btrfs Volume

2010-11-04 Thread Mitch Harder
I was Googling around for ways to check fragmentation on Btrfs, and I came across the 'filefrag' command. Even though it is a ext2/3 command, it seems to work on Btrfs files since it uses the FIEMAP ioctl to determine the number of extents. From a bash prompt, I found I could examine large