Page MenuHomeFreeBSD

D30537.id90090.diff
No OneTemporary

D30537.id90090.diff

Index: sbin/fsck_ffs/main.c
===================================================================
--- sbin/fsck_ffs/main.c
+++ sbin/fsck_ffs/main.c
@@ -272,7 +272,6 @@
* exit status will cause a foreground check to be run.
*/
sblock_init();
- bufinit();
if (bkgrdcheck) {
if ((fsreadfd = open(filesys, O_RDONLY)) < 0 || readsb(0) == 0)
exit(3); /* Cannot read superblock */
@@ -310,6 +309,7 @@
exit(0);
}
if ((sblock.fs_flags & (FS_UNCLEAN | FS_NEEDSFSCK)) == 0) {
+ bufinit();
gjournal_check(filesys);
if (chkdoreload(mntp) == 0)
exit(0);
Index: sbin/fsck_ffs/setup.c
===================================================================
--- sbin/fsck_ffs/setup.c
+++ sbin/fsck_ffs/setup.c
@@ -298,6 +298,7 @@
(uintmax_t)numdirs * sizeof(struct inoinfo *));
goto badsb;
}
+ bufinit();
if (sblock.fs_flags & FS_DOSOFTDEP)
usedsoftdep = 1;
else
Index: sbin/fsdb/fsdb.c
===================================================================
--- sbin/fsdb/fsdb.c
+++ sbin/fsdb/fsdb.c
@@ -111,7 +111,6 @@
fsys = argv[0];
sblock_init();
- bufinit();
if (!setup(fsys))
errx(1, "cannot set up file system `%s'", fsys);
if (fswritefd < 0)

File Metadata

Mime Type
text/plain
Expires
Sat, Feb 1, 7:09 AM (19 h, 19 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16378054
Default Alt Text
D30537.id90090.diff (1 KB)

Event Timeline