public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
* Why does stat() return invalid st_dev field for btrfs ??
@ 2009-08-17 20:47 Mark Lord
  2009-08-17 21:15 ` Mark Lord
  2009-08-18  0:29 ` Kay Sievers
  0 siblings, 2 replies; 9+ messages in thread
From: Mark Lord @ 2009-08-17 20:47 UTC (permalink / raw)
  To: linux-btrfs, Chris Mason

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.org before using
	
	fs created label (null) on /dev/sdb
	        nodesize 4096 leafsize 4096 sectorsize 4096 size 30.06GB
	Btrfs Btrfs v0.19
	[~] mount /dev/sdb /x -t btrfs
	[~] stat --format="%04D" /x
	0017
	[~] touch /x/junk
	[~] stat --format="%04D" /x/junk
	0017

This gives major=0x00, minor=0x17 for /dev/sdb,
which should have major=8, minor=0x10.

???

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2009-08-18 21:21 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-17 20:47 Why does stat() return invalid st_dev field for btrfs ?? Mark Lord
2009-08-17 21:15 ` Mark Lord
2009-08-17 21:52   ` Chris Ball
2009-08-17 21:59     ` Mark Lord
2009-08-17 22:03       ` Mark Lord
2009-08-18  0:29 ` Kay Sievers
2009-08-18  2:01   ` Mark Lord
2009-08-18  2:40     ` Chris Samuel
2009-08-18 21:21     ` Jens Axboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox