Fix NTFS resize operation fails (#655215)
Due to a change in error handling behaviour in ntfsresize version 2.011.4.12AR.4 (libntfs-3g) GParted would fail to properly resize ntfs file systems if the file system was marked for consistency check. The current maintainer of ntfsprogs provided the following advice: "Well, though I am reverting back to the old behavior, you should add -ff instead of relying on an unspecified behavior when ntfsresize gets an error when trying to read the reply. I suppose you do not connect the stdin of ntfsresize, hence the error. With -ff no question is asked (I stress : even with the old ntfsresize)." Hence I have added a second "--force" option to the ntfsresize command for resizing NTFS file systems. Closes Bug #655215 - NTFS partition resize fails
This commit is contained in:
parent
146c3bf1ea
commit
bbd09a6321
|
@ -1,5 +1,5 @@
|
|||
/* Copyright (C) 2004 Bart
|
||||
* Copyright (C) 2008, 2009, 2010 Curtis Gedak
|
||||
* Copyright (C) 2008, 2009, 2010, 2011 Curtis Gedak
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
@ -112,7 +112,7 @@ bool ntfs::create( const Partition & new_partition, OperationDetail & operationd
|
|||
bool ntfs::resize( const Partition & partition_new, OperationDetail & operationdetail, bool fill_partition )
|
||||
{
|
||||
bool return_value = false ;
|
||||
Glib::ustring str_temp = "ntfsresize -P --force " + partition_new .get_path() ;
|
||||
Glib::ustring str_temp = "ntfsresize -P --force --force " + partition_new .get_path() ;
|
||||
|
||||
if ( ! fill_partition )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue