[systemd-devel] [PATCH v2 0/5] mount unit handling improvments with libmount

Chris Leech cleech at redhat.com
Sun Nov 23 20:33:36 PST 2014


This patch set is an attempt to use libmount for mount unit handling, in order
to address the issues I raised with the _netdev option and remote-fs ordering
not working as expected.

In addition, given the feedback on my previous posting I went ahead and
implemented auto-detection of iSCSI and the FCoE drivers that need a
functioning network interface and userspace support.  It's somewhat based on
the transport detection from lsblk, but using libudev and with a different FCoE
check.

Changes in v2:
  Removed all existing mountinfo parsing code that was previously left as a
  fall-back for building without libmount, which is now a hard build
  requirement.

  Added iSCSI and FCoE auto-detection.

Chris Leech (5):
  mount: use libmount to enumerate /proc/self/mountinfo
  mount: check options as well as fstype for network mounts
  mount: monitor for utab changes with inotify
  mount: add remote-fs dependencies if needed after change
  mount: auto-detect iSCSI and FCoE as requiring network

 .travis.yml        |   2 +-
 Makefile.am        |   4 +-
 README             |   1 +
 configure.ac       |  10 ++
 src/core/build.h   |   7 ++
 src/core/manager.c |   2 +-
 src/core/manager.h |   2 +
 src/core/mount.c   | 309 ++++++++++++++++++++++++++++++++++++++++++++---------
 8 files changed, 282 insertions(+), 55 deletions(-)

-- 
1.9.3


More information about the systemd-devel mailing list