summaryrefslogtreecommitdiffstats
path: root/misc-utils/findmnt.h
diff options
context:
space:
mode:
authorKarel Zak2016-09-20 15:45:15 +0200
committerKarel Zak2016-09-23 13:21:02 +0200
commitc768892f4c2c33e52e5e898ee8b552ece4dd5224 (patch)
tree637ba4fabf1e3ea735dfd8af70f41c7d5b3ec333 /misc-utils/findmnt.h
parentlibsmartcols: use const qualifier for scols_table_get_termwidth (diff)
downloadkernel-qcow2-util-linux-c768892f4c2c33e52e5e898ee8b552ece4dd5224.tar.gz
kernel-qcow2-util-linux-c768892f4c2c33e52e5e898ee8b552ece4dd5224.tar.xz
kernel-qcow2-util-linux-c768892f4c2c33e52e5e898ee8b552ece4dd5224.zip
findmnt: add --verify and --verbose
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'misc-utils/findmnt.h')
-rw-r--r--misc-utils/findmnt.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/misc-utils/findmnt.h b/misc-utils/findmnt.h
new file mode 100644
index 000000000..fbaa38e82
--- /dev/null
+++ b/misc-utils/findmnt.h
@@ -0,0 +1,39 @@
+#ifndef UTIL_LINUX_FINDMNT_H
+#define UTIL_LINUX_FINDMNT_H
+
+/* flags */
+enum {
+ FL_EVALUATE = (1 << 1),
+ FL_CANONICALIZE = (1 << 2),
+ FL_FIRSTONLY = (1 << 3),
+ FL_INVERT = (1 << 4),
+ FL_NOSWAPMATCH = (1 << 6),
+ FL_NOFSROOT = (1 << 7),
+ FL_SUBMOUNTS = (1 << 8),
+ FL_POLL = (1 << 9),
+ FL_DF = (1 << 10),
+ FL_ALL = (1 << 11),
+ FL_UNIQ = (1 << 12),
+ FL_BYTES = (1 << 13),
+ FL_NOCACHE = (1 << 14),
+ FL_STRICTTARGET = (1 << 15),
+ FL_VERBOSE = (1 << 16),
+
+ /* basic table settings */
+ FL_ASCII = (1 << 20),
+ FL_RAW = (1 << 21),
+ FL_NOHEADINGS = (1 << 22),
+ FL_EXPORT = (1 << 23),
+ FL_TREE = (1 << 24),
+ FL_JSON = (1 << 25),
+};
+
+extern struct libmnt_cache *cache;
+extern int flags;
+extern int parse_nerrors;
+
+extern int is_listall_mode(void);
+extern struct libmnt_fs *get_next_fs(struct libmnt_table *tb, struct libmnt_iter *itr);
+extern int verify_table(struct libmnt_table *tb);
+
+#endif /* UTIL_LINUX_FINDMNT_H */