From 3401c0be0d905fdc4c83fb419c8398f0be7b000f Mon Sep 17 00:00:00 2001 From: Bart Hakvoort Date: Sat, 4 Dec 2004 16:56:08 +0000 Subject: [PATCH] added correct check for availability of 'dosfsck' bumped to 0.0.7 YAY! ;) * src/fat16.cc, src/fat32.cc: added correct check for availability of 'dosfsck' * configure.in: bumped to 0.0.7 YAY! ;) --- ChangeLog | 6 ++++++ configure.in | 2 +- src/fat16.cc | 7 ++++++- src/fat32.cc | 7 +++++-- 4 files changed, 18 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 4a49d729..a525465e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2004-12-03 Bart Hakvoort + + * src/fat16.cc, + src/fat32.cc: added correct check for availability of 'dosfsck' + * configure.in: bumped to 0.0.7 YAY! ;) + 2004-12-03 Bart Hakvoort * src/GParted_Core.cc: When ( ! deep_scan ) now only one device is scanned (first found one). Shaves off a couple of millisec from startuptime |-) diff --git a/configure.in b/configure.in index c0aa95b7..d55bd39c 100644 --- a/configure.in +++ b/configure.in @@ -1,4 +1,4 @@ -AC_INIT(gparted, 0.0.6) +AC_INIT(gparted, 0.0.7) AC_CONFIG_SRCDIR(src/main.cc) AM_INIT_AUTOMAKE diff --git a/src/fat16.cc b/src/fat16.cc index 7d4ea779..610fcec8 100644 --- a/src/fat16.cc +++ b/src/fat16.cc @@ -28,9 +28,14 @@ FS fat16::get_filesystem_support( ) fs .filesystem = "fat16" ; fs .read = true ; //provided by libparted fs .create = true ; + + if ( ! system( "which dosfsck 1>/dev/null 2>/dev/null" ) ) + fs .check = true ; + + //resizing of start and endpoint are provided by libparted fs .resize = true ; fs .move = true ; - + if ( ! system( "which dd 1>/dev/null 2>/dev/null" ) ) fs .copy = true ; diff --git a/src/fat32.cc b/src/fat32.cc index d4fc087a..da31a864 100644 --- a/src/fat32.cc +++ b/src/fat32.cc @@ -31,11 +31,14 @@ FS fat32::get_filesystem_support( ) //find out if we can create fat32 filesystems if ( ! system( "which mkdosfs 1>/dev/null 2>/dev/null" ) ) fs .create = true ; + + if ( ! system( "which dosfsck 1>/dev/null 2>/dev/null" ) ) + fs .check = true ; - //resing of start and endpoint are provided by libparted + //resizing of start and endpoint are provided by libparted fs .resize = true ; fs .move = true ; - + if ( ! system( "which dd 1>/dev/null 2>/dev/null" ) ) fs .copy = true ;