3
0
forked from pool/util-linux
util-linux/util-linux-2.14.1-mount_skip_sync.patch
OBS User autobuild d1422021c2 Accepting request 21341 from Base:System
Copy from Base:System/util-linux based on submit request 21341 from user hennevogel

OBS-URL: https://build.opensuse.org/request/show/21341
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/util-linux?expand=0&rev=78
2009-10-02 21:21:11 +00:00

24 lines
718 B
Diff

diff -Nurw util-linux-ng-2.16.orig/mount/umount.c util-linux-ng-2.16/mount/umount.c
--- util-linux-ng-2.16.orig/mount/umount.c 2009-07-04 01:20:06.000000000 +0200
+++ util-linux-ng-2.16/mount/umount.c 2009-09-29 14:50:44.000000000 +0200
@@ -361,6 +361,7 @@
umount_all (char *types, char *test_opts) {
struct mntentchn *mc, *hd;
int errors = 0;
+ int do_sync = 0;
hd = mtab_head();
if (!hd->prev)
@@ -370,9 +371,11 @@
&& matching_opts (mc->m.mnt_opts, test_opts)) {
errors |= umount_one (mc->m.mnt_fsname, mc->m.mnt_dir,
mc->m.mnt_type, mc->m.mnt_opts, mc);
+ do_sync = 1;
}
}
+ if (do_sync)
sync ();
return errors;
}