strange interaction between open and cwd

Cameron Simpson cs at zip.com.au
Thu May 6 02:00:27 EDT 2010


On 06May2010 05:24, Nobody <nobody at nowhere.com> wrote:
| On Thu, 06 May 2010 10:21:45 +1000, Cameron Simpson wrote:
| 
| > Look at the st_rdev field (== the device holding this inode).
| > When that changes, you've crossed a mount mount point.
| 
| st_dev reports the device on which the inode resides.
| 
| st_rdev is only meaningul if the inode type is block device (S_IFBLK) or
| character device (S_IFCHR), in which case it identifies the device to
| which the inode refers, e.g.:

Gah. Yes, you're quite right. st_dev is what I should have been citing.
-- 
Cameron Simpson <cs at zip.com.au> DoD#743
http://www.cskk.ezoshosting.com/cs/

It's better, when you're riding with someone you don't know so well, to stick
to the inside line - it's easier to avoid the bits...
        - Barry Sheene



More information about the Python-list mailing list