Re: Why does stat() return invalid st_dev field for btrfs ??

2009-08-17 Thread Chris Samuel
On Tue, 18 Aug 2009 12:01:26 pm Mark Lord wrote: > But really, it should be using DM/LVM when there are multiple devices. Chris Mason addressed a number of these points in this January 2008 comment on LWN - http://lwn.net/Articles/265533/ - especially: # This is something LVM cannot provide bec

Re: Why does stat() return invalid st_dev field for btrfs ??

2009-08-17 Thread Mark Lord
Kay Sievers wrote: On Mon, Aug 17, 2009 at 22:47, Mark Lord wrote: Chris / list, stat(2) seems to return invalid major/minor device info for btrfs filesystems. Why? Is this a bug? This is not invalid and not a bug. It's a superblock without a device, and expected behavior. There is no one-

Re: Why does stat() return invalid st_dev field for btrfs ??

2009-08-17 Thread Kay Sievers
On Mon, Aug 17, 2009 at 22:47, Mark Lord wrote: > Chris / list, > > stat(2) seems to return invalid major/minor device info > for btrfs filesystems. > > Why?  Is this a bug? This is not invalid and not a bug. It's a superblock without a device, and expected behavior. There is no one-to-one relati

Re: Why does stat() return invalid st_dev field for btrfs ??

2009-08-17 Thread Chris Ball
Hi, > Mmm.. btrfs appears to configure itself as a "pseudo" filesystem, > which is why it returns fake device numbers via stat(), similar > to procfs or sysfs. Probably because a single btrfs filesystem can be composed of multiple devices; one major/minor would not be sufficient. - Chri

Re: Why does stat() return invalid st_dev field for btrfs ??

2009-08-17 Thread Mark Lord
Mark Lord wrote: stat(2) seems to return invalid major/minor device info for btrfs filesystems. Why? Is this a bug? Eg. [~] uname -r 2.6.31-rc6 [~] mkfs.btrfs /dev/sdb WARNING! - Btrfs Btrfs v0.19 IS EXPERIMENTAL WARNING! - see http://btrfs.wiki.kernel.org before us

Re: Why does stat() return invalid st_dev field for btrfs ??

2009-08-17 Thread Mark Lord
Chris Ball wrote: Hi, > Mmm.. btrfs appears to configure itself as a "pseudo" filesystem, > which is why it returns fake device numbers via stat(), similar > to procfs or sysfs. Probably because a single btrfs filesystem can be composed of multiple devices; one major/minor would not be

Re: Why does stat() return invalid st_dev field for btrfs ??

2009-08-17 Thread Mark Lord
Mark Lord wrote: Chris / list, stat(2) seems to return invalid major/minor device info for btrfs filesystems. Why? Is this a bug? Eg. [~] uname -r 2.6.31-rc6 [~] mkfs.btrfs /dev/sdb WARNING! - Btrfs Btrfs v0.19 IS EXPERIMENTAL WARNING! - see http://btrfs.wiki.kernel

Why does stat() return invalid st_dev field for btrfs ??

2009-08-17 Thread Mark Lord
Chris / list, stat(2) seems to return invalid major/minor device info for btrfs filesystems. Why? Is this a bug? Eg. [~] uname -r 2.6.31-rc6 [~] mkfs.btrfs /dev/sdb WARNING! - Btrfs Btrfs v0.19 IS EXPERIMENTAL WARNING! - see http://btrfs.wiki.k

[PATCH] Btrfs: don't keep retrying a block group if we fail to allocate a cluster

2009-08-17 Thread Josef Bacik
The box can get locked up in the allocator if we happen upon a block group under these conditions: 1) During a commit, so caching threads cannot make progress 2) Our block group currently is in the middle of being cached 3) Our block group currently has plenty of free space in it 4) Our block grou