summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sbin/fsck_msdosfs/ext.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/sbin/fsck_msdosfs/ext.h b/sbin/fsck_msdosfs/ext.h
index 9eb4098..7a24a5d 100644
--- a/sbin/fsck_msdosfs/ext.h
+++ b/sbin/fsck_msdosfs/ext.h
@@ -46,9 +46,9 @@
*/
extern int alwaysno; /* assume "no" for all questions */
extern int alwaysyes; /* assume "yes" for all questions */
+extern int force; /* force check even the fs is clean */
extern int preen; /* we are preening */
extern int rdonly; /* device is opened read only (supersedes above) */
-extern int force;
extern struct dosDirEntry *rootDir;
@@ -58,6 +58,13 @@ extern struct dosDirEntry *rootDir;
int ask(int, const char *, ...) __attribute__((__format__(__printf__,2,3)));
/*
+ * Check the dirty flag. If the file system is clean, then return 1.
+ * Otherwise, return 0 (this includes the case of FAT12 file systems --
+ * they have no dirty flag, so they must be assumed to be unclean).
+ */
+int checkdirty(int, struct bootblock *);
+
+/*
* Check file system given as arg
*/
int checkfilesys(const char *);
@@ -86,12 +93,6 @@ int readboot(int, struct bootblock *);
int writefsinfo(int, struct bootblock *);
/*
- * Check the dirty flag. If clean return 1, otherwise return 0.
- * If it is FAT12, return 0 always.
- */
-int checkdirty(int, struct bootblock *);
-
-/*
* Read one of the FAT copies and return a pointer to the new
* allocated array holding our description of it.
*/
OpenPOWER on IntegriCloud