Re: [PATCH] mountpoint: drop S_ISDIR check

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

 



Bernhard Voelker <mail@xxxxxxxxxxxxxxxxxxx> writes:

> just out of curiosity - how?

It's certainly possible with bind mounts:

  # touch /foo
  # mount --bind /etc/hostname /foo
  # mountpoint /foo
  mountpoint: /foo: not a directory

(whereas it works fine for a bind-mounted directory).

However, the mountpoint(1) man page talks explicitly about the argument
being a directory, so that should probably be updated as well if it now
works on files too.

-- 
Adam Sampson <ats@xxxxxxxxx>                         <http://offog.org/>
--
To unsubscribe from this list: send the line "unsubscribe util-linux" 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