Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F147382326
D24087.id69570.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D24087.id69570.diff
View Options
Index: libexec/rc/rc.conf
===================================================================
--- libexec/rc/rc.conf
+++ libexec/rc/rc.conf
@@ -101,6 +101,7 @@
root_rw_mount="YES" # Set to NO to inhibit remounting root read-write.
root_hold_delay="30" # Time to wait for root mount hold release.
+fsck_flags="-p"
fsck_y_enable="NO" # Set to YES to do fsck -y if the initial preen fails.
fsck_y_flags="-T ffs:-R -T ufs:-R" # Additional flags for fsck -y
background_fsck="YES" # Attempt to run fsck in the background where possible.
Index: libexec/rc/rc.d/fsck
===================================================================
--- libexec/rc/rc.d/fsck
+++ libexec/rc/rc.d/fsck
@@ -25,10 +25,11 @@
trap : 3
check_startmsgs && echo "Starting file system checks:"
+ # background fsck can only (safely?) be used with preen mode
if checkyesno background_fsck; then
fsck -F -p
else
- fsck -p
+ fsck ${fsck_flags}
fi
err=$?
@@ -37,10 +38,11 @@
"available; retrying"
root_hold_wait
check_startmsgs && echo "Restarting file system checks:"
+ # background fsck can only (safely?) be used with preen mode
if checkyesno background_fsck; then
fsck -F -p
else
- fsck -p
+ fsck ${fsck_flags}
fi
err=$?
fi
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Mar 11, 12:34 PM (1 h, 8 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29520738
Default Alt Text
D24087.id69570.diff (1 KB)
Attached To
Mode
D24087: Add fsck_flags config option
Attached
Detach File
Event Timeline
Log In to Comment