Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F156896980
D30880.id91296.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
899 B
Referenced Files
None
Subscribers
None
D30880.id91296.diff
View Options
Index: sbin/fsck_ffs/main.c
===================================================================
--- sbin/fsck_ffs/main.c
+++ sbin/fsck_ffs/main.c
@@ -295,15 +295,7 @@
*/
if ((fsreadfd = open(filesys, O_RDONLY)) < 0 || readsb(0) == 0)
exit(3); /* Cannot read superblock */
- if (nflag || (fswritefd = open(filesys, O_WRONLY)) < 0) {
- fswritefd = -1;
- if (preen)
- pfatal("NO WRITE ACCESS");
- printf(" (NO WRITE)");
- }
if ((sblock.fs_flags & FS_GJOURNAL) != 0) {
- //printf("GJournaled file system detected on %s.\n",
- // filesys);
if (sblock.fs_clean == 1) {
pwarn("FILE SYSTEM CLEAN; SKIPPING CHECKS\n");
exit(0);
@@ -317,10 +309,9 @@
} else {
pfatal(
"UNEXPECTED INCONSISTENCY, CANNOT RUN FAST FSCK\n");
- close(fsreadfd);
- close(fswritefd);
}
}
+ close(fsreadfd);
}
/*
* If we are to do a background check:
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, May 18, 4:23 AM (14 h, 14 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33232987
Default Alt Text
D30880.id91296.diff (899 B)
Attached To
Mode
D30880: fsck_ufs: fix background fsck in preen mode
Attached
Detach File
Event Timeline
Log In to Comment