Commit d795cccb authored by Mike Fleetwood's avatar Mike Fleetwood Committed by Curtis Gedak

Consolidate common if have ntfsresize command conditions

parent ef4d4cb1
......@@ -65,9 +65,6 @@ FS ntfs::get_filesystem_support()
if (! Glib::find_program_in_path("ntfsinfo").empty())
fs.read = FS::EXTERNAL;
if (! Glib::find_program_in_path("ntfsresize").empty())
fs.check = FS::EXTERNAL;
if ( ! Glib::find_program_in_path( "ntfslabel" ) .empty() ) {
Glib::ustring version ;
......@@ -93,20 +90,20 @@ FS ntfs::get_filesystem_support()
}
//resizing is a delicate process ...
if (fs.check)
if (! Glib::find_program_in_path("ntfsresize").empty())
{
fs.check = FS::EXTERNAL;
fs.grow = FS::EXTERNAL;
if ( fs .read ) //needed to determine a min file system size..
fs.shrink = FS::EXTERNAL;
fs.move = FS::GPARTED;
}
if ( ! Glib::find_program_in_path( "ntfsclone" ) .empty() )
fs.copy = FS::EXTERNAL;
if ( fs .check )
fs.move = FS::GPARTED;
fs .online_read = FS::GPARTED ;
//Minimum NTFS partition size = (Minimum NTFS volume size) + (backup NTFS boot sector)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment