summaryrefslogtreecommitdiffstats
path: root/sbin/fsck_msdosfs
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>2003-12-27 06:44:32 +0000
committerbde <bde@FreeBSD.org>2003-12-27 06:44:32 +0000
commitb82aa9e5c7a65948641e2fec0986f7b05a84b3a4 (patch)
tree70361432fe0c3c0ee2c50dfbb0d66855495d751c /sbin/fsck_msdosfs
parent401b7edaf6860c054af0bcdfe57199e5d9b79c18 (diff)
downloadFreeBSD-src-b82aa9e5c7a65948641e2fec0986f7b05a84b3a4.zip
FreeBSD-src-b82aa9e5c7a65948641e2fec0986f7b05a84b3a4.tar.gz
Fixed style bugs in previous commit (unsorting of declarations and poor
wording in a comment).
Diffstat (limited to 'sbin/fsck_msdosfs')
-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