diff options
author | Michael Biebl <mbiebl@gmail.com> | 2017-03-02 19:11:37 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2017-03-02 19:11:37 +0100 |
commit | dcce98a4bdc302a5efeb3a5c35b6cbf6d16a3efc (patch) | |
tree | fc658fb96fd2776b824b007a35d0fac5ab4dbc6f /src/core/umount.c | |
parent | 09c11024969fbf562f2b4c153aa41aa383f9931a (diff) |
Avoid strict DM interface version dependencies (#5519)
Compiling against the dm-ioctl.h header as provided by the Linux kernel
will embed the DM interface version number. Running an older kernel can
result in an error like this on shutdown:
Could not detach DM dm-11: ioctl mismatch, kernel(4.34.4), user(4.35.4)
Work around this by shipping a local copy of dm-ioctl.h. We need at
least the version from 3.13 for DM_DEFERRED_REMOVE [1], so bump the
requirements in README accordingly.
[1] https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=2c140a246dc0bc085b98eddde978060fcec1080c
Fixes: #5492
Diffstat (limited to 'src/core/umount.c')
-rw-r--r-- | src/core/umount.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/umount.c b/src/core/umount.c index 2f4b12bdb9..454383e7eb 100644 --- a/src/core/umount.c +++ b/src/core/umount.c @@ -19,7 +19,6 @@ #include <errno.h> #include <fcntl.h> -#include <linux/dm-ioctl.h> #include <linux/loop.h> #include <string.h> #include <sys/mount.h> @@ -31,6 +30,7 @@ #include "escape.h" #include "fd-util.h" #include "fstab-util.h" +#include "linux-3.13/dm-ioctl.h" #include "list.h" #include "mount-setup.h" #include "path-util.h" |