ny additional dependencies.
> I suppose one could split libmount
> to avoid that dependency, though it's probably not worth it for this case at
> least?
Well, I can create a fallback for this stuff and move the translation code to
mount(8) only... then libmount will be without the dependence.
Karel
--
Karel Zak
http://karelzak.blogspot.com
.so.1 (0x7f2a1f2fc000)
> libselinux.so.1 => /lib64/libselinux.so.1 (0x7f2a1f0d7000)
> libpcre.so.1 => /lib64/libpcre.so.1 (0x7f2a1ee69000)
> liblzma.so.5 => /lib64/liblzma.so.5 (0x7f2a1ec44000)
> libdl.so.2 => /lib64/libdl.so.2 (0x7f2a1ea40000)
> li
; going to be noticeable?
Well, we have /proc/self is everywhere, including libmount, findmnt,
mount, ... systemd sources:
$ git grep "/proc/self" | wc -l
51
please, don't try to be more smart then kernel, it's premature
optimization to care about such things in userspace.
BTW, there will be /proc/thread-self
(http://lwn.net/Articles/607422/)
Karel
--
Karel Zak
http://karelzak.blogspot.com
On Wed, Jun 01, 2011 at 12:28:46AM +0100, James Youngman wrote:
> 2011/5/31 Karel Zak :
> > On Tue, May 31, 2011 at 10:31:17AM +0100, Pádraig Brady wrote:
> >> On 31/05/11 01:14, James Youngman wrote:
> >> > On Tue, Apr 5, 2011 at 1:36 PM, Philipp Thomas wrote:
>
v/sda4 / ext3
rw,noatime,errors=continue,user_xattr,acl,barrier=0,data=ordered 0 0
... so I have two entries for the same mountpoint:
# find / -maxdepth 0 -printf '%p %F\n'
/ rootfs
why does it return the first entry? It seems like obvious bug. You
have to read entries in the mtab file in reverse order.
Anyway, /proc/self/mountinfo is definitely more sexy... :-)
Karel
--
Karel Zak
http://karelzak.blogspot.com
emember then people from almost all mainstream distributions
collaborate on systemd development, so Fedora-15 is the first, but
not last distro without mtab...
Karel
--
Karel Zak
http://karelzak.blogspot.com