[gparted] Allow creation of reiser4 file systems on Linux 3.x (#742511)
- From: Curtis Gedak <gedakc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gparted] Allow creation of reiser4 file systems on Linux 3.x (#742511)
- Date: Wed, 7 Jan 2015 15:51:06 +0000 (UTC)
commit be8cc9c0842b1af1347b5c1d3d7fc932a58b3e47
Author: Mike Fleetwood <mike fleetwood googlemail com>
Date: Wed Jan 7 09:01:48 2015 +0000
Allow creation of reiser4 file systems on Linux 3.x (#742511)
With reiser4progs 1.0.7 and earlier mkfs specifically checks for Linux
kernel 2.5 or 2.6. On Linux 3.x it fails with the following warning:
# mkfs.reiser4 --yes --label "" /dev/sdb1
Warn : Linux 3.13.0-39-generic is detected. Reiser4 does not support
such a platform. Use -f to force over.
# echo $?
8
This is fixed in reiser4progs 1.0.8 and later. From the reiser4progs
SourceForce README.txt:
. Do not ask for confirmation to work under Linux-3.X;
Found on Ubuntu 12.04 LTS and Ubuntu 14.04 LTS both with reiser4progs
1.0.7 and a Linux 3.x kernel.
Fix by adding "--force" flag to the mkfs command line.
Bug 742511 - Creation of reiser4 file systems fails with unsupported
warning
src/reiser4.cc | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/reiser4.cc b/src/reiser4.cc
index 5453464..657b01c 100644
--- a/src/reiser4.cc
+++ b/src/reiser4.cc
@@ -138,9 +138,9 @@ void reiser4::read_uuid( Partition & partition )
bool reiser4::create( const Partition & new_partition, OperationDetail & operationdetail )
{
- return ! execute_command( "mkfs.reiser4 --yes --label \"" + new_partition.get_label() +
- "\" " + new_partition.get_path(), operationdetail,
- false, true );
+ return ! execute_command( "mkfs.reiser4 --force --yes --label \"" + new_partition.get_label() + "\" "
+
+ new_partition.get_path(), operationdetail,
+ false, true );
}
bool reiser4::check_repair( const Partition & partition, OperationDetail & operationdetail )
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]