From dc262e5bc2cf83fcfc02c46765ddfb22e396fbfa Mon Sep 17 00:00:00 2001 From: Fedor Uporov Date: Tue, 24 Oct 2017 19:16:25 +0000 Subject: [PATCH] Set doreallocblks sysctl value to zero by default because of possibility of filesystem corruption. Approved by: pfg (mentor) MFC after: 2 weeks --- sys/fs/ext2fs/ext2_alloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/fs/ext2fs/ext2_alloc.c b/sys/fs/ext2fs/ext2_alloc.c index 6ffb9106907..2084bd93a24 100644 --- a/sys/fs/ext2fs/ext2_alloc.c +++ b/sys/fs/ext2fs/ext2_alloc.c @@ -173,7 +173,7 @@ static int doasyncfree = 1; SYSCTL_INT(_vfs_ext2fs, OID_AUTO, doasyncfree, CTLFLAG_RW, &doasyncfree, 0, "Use asychronous writes to update block pointers when freeing blocks"); -static int doreallocblks = 1; +static int doreallocblks = 0; SYSCTL_INT(_vfs_ext2fs, OID_AUTO, doreallocblks, CTLFLAG_RW, &doreallocblks, 0, "");