Skip to content

mount: use libmount to monitor mountinfo & utab - #53

Closed
haraldh wants to merge 1 commit into
masterfrom
unknown repository
Closed

haraldh wants to merge 1 commit into
masterfrom
unknown repository

Conversation

@haraldh

@haraldh haraldh commented Jun 3, 2015

Copy link
Copy Markdown
Member

The current implementation directly monitor /proc/self/mountinfo and
/run/mount/utab files. It's really not optimal because utab file is
private libmount stuff without any official guaranteed semantic.

The libmount since v2.26 provides API to monitor mount kernel &
userspace changes. This patch replaces the current implementation with
libmount based solution.

Now the manager.h includes <libmount.h>, so $MOUNT_CFLAGS has been
necessary to add to many tests CFLAGS.

Note that mnt_monitor_event_cleanup() in v2.26 is broken, so the patch
uses mnt_monitor_next_change(). It's exactly the same solution which
uses the current libmount HEAD (mnt_monitor_event_cleanup() is API
shorcut only).

The current implementation directly monitor /proc/self/mountinfo and
/run/mount/utab files. It's really not optimal because utab file is
private libmount stuff without any official guaranteed semantic.

The libmount since v2.26 provides API to monitor mount kernel &
userspace changes. This patch replaces the current implementation with
libmount based solution.

Now the manager.h includes <libmount.h>, so $MOUNT_CFLAGS has been
necessary to add to many tests CFLAGS.

Note that mnt_monitor_event_cleanup() in v2.26 is broken, so the patch
uses mnt_monitor_next_change(). It's exactly the same solution which
uses the current libmount HEAD (mnt_monitor_event_cleanup() is API
shorcut only).
@zonque

zonque commented Jun 12, 2015

Copy link
Copy Markdown
Contributor

Could you rebase and force-push this one to trigger Semaphore? I'd lilke to know whether the build deps are satisfied on their side.

@dvdhrm

dvdhrm commented Jun 14, 2015

Copy link
Copy Markdown
Contributor

Replaced by #194.

@dvdhrm dvdhrm closed this Jun 14, 2015
whot pushed a commit to whot/systemd that referenced this pull request Oct 10, 2017
sd-bus: bump message queue size
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants