[gparted] Fix NTFS resize operation fails (#655215)



commit bbd09a63210e89b754ce4bf9b66c7e2847568936
Author: Curtis Gedak <gedakc gmail com>
Date:   Tue Sep 13 11:20:50 2011 -0600

    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

 src/ntfs.cc |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/ntfs.cc b/src/ntfs.cc
index aecf928..a57faee 100644
--- a/src/ntfs.cc
+++ b/src/ntfs.cc
@@ -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 )
 	{



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]