Re: [PATCH] namei: root is always mount point

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Jul 27, 2009 at 14:13, Sami Kerola<kerolasa@xxxxxx> wrote:

> See attached patch for semantics fix.

Patch I sent yesterday was rubbish. It misbehaves.

sake@lelux ~ namei -x .
f: .
 D .

Where current directory is not  mount point.

The only way I could think of making mount point detection work
correctly is to stat current inode and and .. in same directory,
compare device numbers and if they differ it's a mount point. In case
device number is the same and inode then it must be root. A better
patch will follow later, or much later.

-- 
   Sami Kerola
   http://www.iki.fi/kerolasa/
--
To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux