Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F145599479
D30880.id91304.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
754 B
Referenced Files
None
Subscribers
None
D30880.id91304.diff
View Options
Index: sbin/fsck_ffs/main.c
===================================================================
--- sbin/fsck_ffs/main.c
+++ sbin/fsck_ffs/main.c
@@ -295,15 +295,14 @@
*/
if ((fsreadfd = open(filesys, O_RDONLY)) < 0 || readsb(0) == 0)
exit(3); /* Cannot read superblock */
- if (nflag || (fswritefd = open(filesys, O_WRONLY)) < 0) {
+ if (bkgrdflag == 0 &&
+ (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);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Feb 23, 12:32 AM (1 h, 17 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28947138
Default Alt Text
D30880.id91304.diff (754 B)
Attached To
Mode
D30880: fsck_ufs: fix background fsck in preen mode
Attached
Detach File
Event Timeline
Log In to Comment