Re: large overhead in libmount

2015-04-07 Thread Karel Zak
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

Re: large overhead in libmount

2015-04-02 Thread Karel Zak
.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

Re: mountlist: libmount support on Linux

2014-08-27 Thread Karel Zak
; 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

Re: Using /proc/mounts in mountlist.c for linux

2011-06-01 Thread Karel Zak
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: >

Re: Using /proc/mounts in mountlist.c for linux

2011-05-31 Thread Karel Zak
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

Re: Using /proc/mounts in mountlist.c for linux

2011-04-06 Thread Karel Zak
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