aboutsummaryrefslogtreecommitdiffstats
path: root/misc/util.h
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2001-01-03 17:02:13 +0000
committerTheodore Ts'o <tytso@mit.edu>2001-01-03 17:02:13 +0000
commit63985320384bf143eaac9857af424800d9867a1a (patch)
tree85675c0f8a882ee7eb1bc46b37b12290e63ace61 /misc/util.h
parentf18996c8eb7f530a7a408b8ede4a99fd52c02533 (diff)
downloadandroid_external_e2fsprogs-63985320384bf143eaac9857af424800d9867a1a.tar.gz
android_external_e2fsprogs-63985320384bf143eaac9857af424800d9867a1a.tar.bz2
android_external_e2fsprogs-63985320384bf143eaac9857af424800d9867a1a.zip
ChangeLog, Makefile.in, mke2fs.c, tune2fs.8.in, tune2fs.c, util.c, util.h:
tune2fs.c (update_feature_set, add_journal): Moved to separate functions. Added ability to add and remove the journal while the filesystem is live. Added support for setting a time-based UUID. Removed zero-initialized static variables. mke2fs.c, util.c, util.h (strcasecmp, proceed_question, check_plausibility, parse_journal_opts, check_mount): Moved functions to util.c so they can be used by tune2fs. mke2fs.c (main): Change ext2fs_add_journal_fs() to ext2fs_add_journal_inode() to reflect function renaming.
Diffstat (limited to 'misc/util.h')
-rw-r--r--misc/util.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/misc/util.h b/misc/util.h
new file mode 100644
index 00000000..bf631099
--- /dev/null
+++ b/misc/util.h
@@ -0,0 +1,23 @@
+/*
+ * util.h --- header file defining prototypes for helper functions
+ * used by tune2fs and mke2fs
+ *
+ * Copyright 2000 by Theodore Ts'o.
+ *
+ * %Begin-Header%
+ * This file may be redistributed under the terms of the GNU Public
+ * License.
+ * %End-Header%
+ */
+
+extern int journal_size;
+extern int journal_flags;
+extern char *journal_device;
+
+#ifndef HAVE_STRCASECMP
+extern int strcasecmp (char *s1, char *s2);
+#endif
+extern void proceed_question(void);
+extern void check_plausibility(const char *device);
+extern void parse_journal_opts(const char *opts);
+extern void check_mount(const char *device, int force, const char *type);