diff options
author | pfg <pfg@FreeBSD.org> | 2014-07-14 21:32:40 +0000 |
---|---|---|
committer | pfg <pfg@FreeBSD.org> | 2014-07-14 21:32:40 +0000 |
commit | ce102225bd4dbf744bdfe29d60b06a676f7235ad (patch) | |
tree | d7627c68c5555ccbeec9828c92578a3fa4630eb2 /sbin | |
parent | fe1391d5a57152b798ccfea726b15d78f3c4f440 (diff) | |
download | FreeBSD-src-ce102225bd4dbf744bdfe29d60b06a676f7235ad.zip FreeBSD-src-ce102225bd4dbf744bdfe29d60b06a676f7235ad.tar.gz |
newfs_msdosfs: Respect FSFIXFAT
Fix some whitespace issues while here.
Obtained from: NetBSD (rev. 1.9)
MFC after: 3 days
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/fsck_msdosfs/check.c | 2 | ||||
-rw-r--r-- | sbin/fsck_msdosfs/ext.h | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sbin/fsck_msdosfs/check.c b/sbin/fsck_msdosfs/check.c index 1fb005d..083389e 100644 --- a/sbin/fsck_msdosfs/check.c +++ b/sbin/fsck_msdosfs/check.c @@ -142,7 +142,7 @@ checkfilesys(const char *fname) goto out; /* now write the FATs */ - if (mod & FSFATMOD) { + if (mod & (FSFATMOD|FSFIXFAT)) { if (ask(1, "Update FATs")) { mod |= writefat(dosfs, &boot, fat, mod & FSFIXFAT); if (mod & FSFATAL) diff --git a/sbin/fsck_msdosfs/ext.h b/sbin/fsck_msdosfs/ext.h index 9793e12..ef9c420 100644 --- a/sbin/fsck_msdosfs/ext.h +++ b/sbin/fsck_msdosfs/ext.h @@ -26,7 +26,7 @@ */ #ifndef EXT_H -#define EXT_H +#define EXT_H #include <sys/types.h> @@ -69,8 +69,8 @@ int checkfilesys(const char *); #define FSFATMOD 4 /* The FAT was modified */ #define FSERROR 8 /* Some unrecovered error remains */ #define FSFATAL 16 /* Some unrecoverable error occurred */ -#define FSDIRTY 32 /* File system is dirty */ -#define FSFIXFAT 64 /* Fix file system FAT */ +#define FSDIRTY 32 /* File system is dirty */ +#define FSFIXFAT 64 /* Fix file system FAT */ /* * read a boot block in a machine independent fashion and translate |