diff options
author | Karel Zak | 2009-10-14 01:13:18 +0200 |
---|---|---|
committer | Karel Zak | 2009-10-14 01:13:18 +0200 |
commit | acf6ab6f676b1ce91f438518d21fd6fa7b671f2b (patch) | |
tree | 898132cf5e3f7465331076aa2201ec1caa038d5a /include/ismounted.h | |
parent | hwclock: set kernel timezone with --systz --utc (diff) | |
download | kernel-qcow2-util-linux-acf6ab6f676b1ce91f438518d21fd6fa7b671f2b.tar.gz kernel-qcow2-util-linux-acf6ab6f676b1ce91f438518d21fd6fa7b671f2b.tar.xz kernel-qcow2-util-linux-acf6ab6f676b1ce91f438518d21fd6fa7b671f2b.zip |
lib: import whole ismounted.c code from e2fsprogs
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'include/ismounted.h')
-rw-r--r-- | include/ismounted.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/ismounted.h b/include/ismounted.h index 2b7cca022..57918cb3a 100644 --- a/include/ismounted.h +++ b/include/ismounted.h @@ -1,6 +1,14 @@ #ifndef IS_MOUNTED_H #define IS_MOUNTED_H +#define MF_MOUNTED 1 +#define MF_ISROOT 2 +#define MF_READONLY 4 +#define MF_SWAP 8 +#define MF_BUSY 16 + extern int is_mounted(const char *file); +extern int check_mount_point(const char *device, int *mount_flags, + char *mtpt, int mtlen); #endif /* IS_MOUNTED_H */ |