[yast-commit] r40531 - /trunk/storage/libstorage/src/EtcFstab.cc

Author: fehr Date: Tue Aug 28 13:20:18 2007 New Revision: 40531 URL: http://svn.opensuse.org/viewcvs/yast?rev=40531&view=rev Log: add debug output to fstab handling Modified: trunk/storage/libstorage/src/EtcFstab.cc Modified: trunk/storage/libstorage/src/EtcFstab.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/libstorage/src/EtcFstab.c... ============================================================================== --- trunk/storage/libstorage/src/EtcFstab.cc (original) +++ trunk/storage/libstorage/src/EtcFstab.cc Tue Aug 28 13:20:18 2007 @@ -650,6 +650,21 @@ return( line ); } +static void printFile( const string& fname ) + { + y2mil( "name:" << fname ); + ifstream file( fname.c_str() ); + string line; + int count = 1; + getline( file, line ); + while( file.good() ) + { + y2mil( "line:" << count++ << " \"" << line << "\"" ); + getline( file, line ); + } + file.close(); + } + int EtcFstab::flush() { int ret = 0; @@ -786,6 +801,9 @@ } if( !crypttab.removeIfEmpty() ) crypttab.updateFile(); + printFile( prefix + "/fstab" ); + printFile( prefix + "/cryptotab" ); + printFile( prefix + "/crypttab" ); y2milestone( "ret:%d", ret ); return( ret ); } -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
fehr@svn.opensuse.org