mountpoint-util: use new kernel 5.8 statx() API for determining mount points

We finally have an explicit API for this in the kernel. It's great and
simple. Let's use it!
This commit is contained in:
Lennart Poettering
2020-08-19 10:08:29 +02:00
parent 69b3fa14cd
commit 5f10408044
2 changed files with 37 additions and 19 deletions
+5
View File
@@ -63,3 +63,8 @@ struct new_statx STATX_DEFINITION;
#ifndef STATX_MNT_ID
#define STATX_MNT_ID 0x00001000U
#endif
/* 80340fe3605c0e78cfe496c3b3878be828cfdbfe (5.8) */
#ifndef STATX_ATTR_MOUNT_ROOT
#define STATX_ATTR_MOUNT_ROOT 0x00002000 /* Root of a mount */
#endif