diff options
author | Karel Zak | 2012-01-02 15:00:27 +0100 |
---|---|---|
committer | Karel Zak | 2012-01-02 15:00:27 +0100 |
commit | c70d9d768bbe291ad29f29200340d1f4d8bbf30f (patch) | |
tree | 0878a5b06223146a9bbe6a48109cf348df75218d /libmount/src/mountP.h | |
parent | mount: don't canonicalize the source of a pseudofs (diff) | |
download | kernel-qcow2-util-linux-c70d9d768bbe291ad29f29200340d1f4d8bbf30f.tar.gz kernel-qcow2-util-linux-c70d9d768bbe291ad29f29200340d1f4d8bbf30f.tar.xz kernel-qcow2-util-linux-c70d9d768bbe291ad29f29200340d1f4d8bbf30f.zip |
libmount: consolidate MNT_FS_* code
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libmount/src/mountP.h')
-rw-r--r-- | libmount/src/mountP.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libmount/src/mountP.h b/libmount/src/mountP.h index 9be3aabed..c82a97999 100644 --- a/libmount/src/mountP.h +++ b/libmount/src/mountP.h @@ -224,9 +224,9 @@ struct libmnt_fs { #define MNT_FS_KERNEL (1 << 4) /* data from /proc/{mounts,self/mountinfo} */ #define MNT_FS_MERGED (1 << 5) /* already merged data from /run/mount/utab */ -extern int __mnt_fs_get_flags(struct libmnt_fs *fs); -extern int __mnt_fs_set_flags(struct libmnt_fs *fs, int flags); - +#define mnt_fs_is_regular(_f) (!(mnt_fs_is_pseudofs(_f) \ + || mnt_fs_is_netfs(_f) \ + || mnt_fs_is_swaparea(_f))) /* * mtab/fstab/mountinfo file |