diff options
author | wes <wes@FreeBSD.org> | 2003-11-16 07:08:27 +0000 |
---|---|---|
committer | wes <wes@FreeBSD.org> | 2003-11-16 07:08:27 +0000 |
commit | 546aec2dd673375b176313efbc3150f607e196de (patch) | |
tree | 81c5c78b5be0e614e96eb96dfc675ee5d06486de /sys/ufs/ffs/fs.h | |
parent | 11baeec8ad8ffc68802dd66d8f19f663003d9d3e (diff) | |
download | FreeBSD-src-546aec2dd673375b176313efbc3150f607e196de.zip FreeBSD-src-546aec2dd673375b176313efbc3150f607e196de.tar.gz |
Write the UFS2 superblock with a 'BAD' magic number at the beginning
of newfs, to signify the newfs operation has not yet completed. Re-
write the superblock with the correct magic number once all of the
cylinder groups have been created to show the operation has finished.
Sponsored by: St. Bernard Software
Diffstat (limited to 'sys/ufs/ffs/fs.h')
-rw-r--r-- | sys/ufs/ffs/fs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/ufs/ffs/fs.h b/sys/ufs/ffs/fs.h index 3aaa375..dc68435 100644 --- a/sys/ufs/ffs/fs.h +++ b/sys/ufs/ffs/fs.h @@ -361,6 +361,7 @@ CTASSERT(sizeof(struct fs) == 1376); */ #define FS_UFS1_MAGIC 0x011954 /* UFS1 fast filesystem magic number */ #define FS_UFS2_MAGIC 0x19540119 /* UFS2 fast filesystem magic number */ +#define FS_BAD2_MAGIC 0x19960408 /* UFS2 incomplete newfs magic number */ #define FS_OKAY 0x7c269d38 /* superblock checksum */ #define FS_42INODEFMT -1 /* 4.2BSD inode format */ #define FS_44INODEFMT 2 /* 4.4BSD inode format */ |