Using the upcoming fsinfo()

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

 



Hi all,

Some of you may know that David Howells is working on getting
a new system call fsinfo() merged into the Linux kernel.

This system call will provide access to information about mounted
mounts without having to read and parse file based mount tables
such as /proc/self/mountinfo, etc.

Essentially all mounts have an id and one can get the id of a
mount by it's path and then use that to obtain a large range
of information about it.

The information can include a list of mounts within the mount
which can be used to traverse a tree of mounts or the id used
to lookup information on an individual mount without the need
to traverse a file based mount table.

I'd like to update libmount to use the fsinfo() system call
because I believe using file based methods to get mount
information introduces significant overhead that can be
avoided. 

Because the fsinfo() system call provides a very different way
to get information
about mounts, and having looked at the current
code, I'm wondering what will be
the best way to go about it.

Any suggestions about the way this could best be done, given
that the existing methods must still work, will be very much
appreciated.

Ian




[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