fixed 'broken pipe' warning removed unnecessary 'echo 2 |' from freespace
* src/jfs.cc: fixed 'broken pipe' warning * src/fat16.cc, src/fat32.cc: removed unnecessary 'echo 2 |' from freespace scan.
This commit is contained in:
parent
d32802166b
commit
73c5fa6f4e
|
@ -1,3 +1,8 @@
|
||||||
|
2005-11-29 Bart Hakvoort <hakvoort@cvs.gnome.org>
|
||||||
|
* src/jfs.cc: fixed 'broken pipe' warning
|
||||||
|
* src/fat16.cc,
|
||||||
|
src/fat32.cc: removed unnecessary 'echo 2 |' from freespace scan.
|
||||||
|
|
||||||
2005-11-29 Bart Hakvoort <hakvoort@cvs.gnome.org>
|
2005-11-29 Bart Hakvoort <hakvoort@cvs.gnome.org>
|
||||||
* include/GParted_Core.h,
|
* include/GParted_Core.h,
|
||||||
src/GParted_Core.cc: implemented a 'wait_for_node()' function after
|
src/GParted_Core.cc: implemented a 'wait_for_node()' function after
|
||||||
|
|
|
@ -60,7 +60,7 @@ void fat16::Set_Used_Sectors( Partition & partition )
|
||||||
Sector free_clusters = -1, bytes_per_cluster = -1 ;
|
Sector free_clusters = -1, bytes_per_cluster = -1 ;
|
||||||
|
|
||||||
//get free blocks..
|
//get free blocks..
|
||||||
f = popen( ( "LC_ALL=C echo 2 | dosfsck -v " + partition .partition ) .c_str( ), "r" ) ;
|
f = popen( ( "LC_ALL=C dosfsck -v " + partition .partition ) .c_str( ), "r" ) ;
|
||||||
while ( fgets( c_buf, 512, f ) )
|
while ( fgets( c_buf, 512, f ) )
|
||||||
{
|
{
|
||||||
output = Glib::locale_to_utf8( c_buf ) ;
|
output = Glib::locale_to_utf8( c_buf ) ;
|
||||||
|
|
|
@ -59,7 +59,7 @@ void fat32::Set_Used_Sectors( Partition & partition )
|
||||||
Sector free_clusters = -1, bytes_per_cluster = -1 ;
|
Sector free_clusters = -1, bytes_per_cluster = -1 ;
|
||||||
|
|
||||||
//get free blocks..
|
//get free blocks..
|
||||||
f = popen( ( "LC_ALL=C echo 2 | dosfsck -v " + partition .partition ) .c_str( ), "r" ) ;
|
f = popen( ( "LC_ALL=C dosfsck -v " + partition .partition ) .c_str( ), "r" ) ;
|
||||||
while ( fgets( c_buf, 512, f ) )
|
while ( fgets( c_buf, 512, f ) )
|
||||||
{
|
{
|
||||||
output = Glib::locale_to_utf8( c_buf ) ;
|
output = Glib::locale_to_utf8( c_buf ) ;
|
||||||
|
|
|
@ -67,7 +67,7 @@ void jfs::Set_Used_Sectors( Partition & partition )
|
||||||
Glib::ustring output ;
|
Glib::ustring output ;
|
||||||
|
|
||||||
//get free sectors..
|
//get free sectors..
|
||||||
f = popen( ( "echo dm | LC_ALL=C jfs_debugfs " + partition .partition ) .c_str( ), "r" ) ;
|
f = popen( ( "echo dm | LC_ALL=C jfs_debugfs " + partition .partition + " | grep dn_nfree" ) .c_str( ), "r" ) ;
|
||||||
while ( fgets( c_buf, 512, f ) )
|
while ( fgets( c_buf, 512, f ) )
|
||||||
{
|
{
|
||||||
output = Glib::locale_to_utf8( c_buf ) ;
|
output = Glib::locale_to_utf8( c_buf ) ;
|
||||||
|
|
Loading…
Reference in New Issue