Re: b_dev vs. b_rdev confusion

Andries.Brouwer@cwi.nl
Tue, 19 Jun 2001 20:55:44 +0200 (MET DST)


> how do the inode->i_dev, i_rdev fit into this?

These are what you see with stat(2).
i_dev gives the device the file is on
i_rdev is usually undefined, but for device special files
it gives the real device.

> Is there a set rule on when/where one should use a buffer head's
> b_dev and when/where one should use b_rdev?

b_dev gives the device the user was thinking about
b_rdev is the actual underlying device

Andries
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/