Removed warning when reading volume label from mounted reiser4 file system

svn path=/trunk/; revision=941
This commit is contained in:
Curtis Gedak 2008-10-28 19:34:25 +00:00
parent e9c44ad13e
commit 59f69f67a4
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2008-10-28 Curtis Gedak <gedakc@gmail.com>
* src/reiser4.cc: Removed warning reading mounted reiser4 volume label
- Closes GParted bug #380546
2008-10-24 Curtis Gedak <gedakc@gmail.com> 2008-10-24 Curtis Gedak <gedakc@gmail.com>
* src/Utils.cc: Increased robustness of get_lang() function * src/Utils.cc: Increased robustness of get_lang() function

View File

@ -82,7 +82,7 @@ void reiser4::set_used_sectors( Partition & partition )
void reiser4::get_label( Partition & partition ) void reiser4::get_label( Partition & partition )
{ {
if ( ! Utils::execute_command( "debugfs.reiser4 " + partition .get_path(), output, error, true ) ) if ( ! Utils::execute_command( "debugfs.reiser4 -f " + partition .get_path(), output, error, true ) )
{ {
Glib::ustring label = Utils::regexp_label( output, "^label:[\t ]*([^!]*)$" ) ; Glib::ustring label = Utils::regexp_label( output, "^label:[\t ]*([^!]*)$" ) ;
//FIXME: find a better way to see if label is empty.. imagine someone uses '<none>' as label.... ;) //FIXME: find a better way to see if label is empty.. imagine someone uses '<none>' as label.... ;)