Dr. Werner Fink 2017-07-06 13:59:59 +00:00 committed by Git OBS Bridge
parent d16b550658
commit eb177148b7
2 changed files with 9 additions and 3 deletions

View File

@ -1,4 +1,4 @@
From 5bcb9ee808fa6f35b7fb2fb986cd9d8486720410 Mon Sep 17 00:00:00 2001 From 60bbf03a076374e20aa62e1f3297be170403fcb7 Mon Sep 17 00:00:00 2001
From: Werner Fink <werner@suse.de> From: Werner Fink <werner@suse.de>
Date: Thu, 29 Jun 2017 15:18:28 +0200 Date: Thu, 29 Jun 2017 15:18:28 +0200
Subject: [PATCH] Use mountinfo to be able to use the mount identity Subject: [PATCH] Use mountinfo to be able to use the mount identity
@ -64,7 +64,7 @@ index 176a2fc..d8d3366 100644
dnl Checks for typedefs, structures, and compiler characteristics. dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST AC_C_CONST
diff --git src/fuser.c src/fuser.c diff --git src/fuser.c src/fuser.c
index 31ef30c..74c2353 100644 index 31ef30c..4ef7cfd 100644
--- src/fuser.c --- src/fuser.c
+++ src/fuser.c +++ src/fuser.c
@@ -32,6 +32,10 @@ @@ -32,6 +32,10 @@
@ -247,7 +247,7 @@ index 31ef30c..74c2353 100644
+ count = 0; + count = 0;
+ list_for_each(ptr, &mntinfo) { + list_for_each(ptr, &mntinfo) {
+ mntinfo_t *mnt = list_entry(ptr, mntinfo_t); + mntinfo_t *mnt = list_entry(ptr, mntinfo_t);
+ if (match_device != mnt->dev) + if (match_device != mnt->dev || this_name->mnt_id != mnt->id)
+ continue; + continue;
+ if (!mountinfo) + if (!mountinfo)
+ mountinfo = mnt; + mountinfo = mnt;

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Jul 6 13:59:36 UTC 2017 - werner@suse.de
- Update patch
0001-Use-mountinfo-to-be-able-to-use-the-mount-identity.patch
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Jul 5 13:24:01 UTC 2017 - werner@suse.de Wed Jul 5 13:24:01 UTC 2017 - werner@suse.de