Author: fehr Date: Mon Jul 16 12:27:19 2007 New Revision: 39420 URL: http://svn.opensuse.org/viewcvs/yast?rev=39420&view=rev Log: use ntfs-3g for mounting ntfs in fs hierarchy Modified: trunk/storage/libstorage/src/Volume.cc Modified: trunk/storage/libstorage/src/Volume.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/libstorage/src/Volume.cc?rev=39420&r1=39419&r2=39420&view=diff ============================================================================== --- trunk/storage/libstorage/src/Volume.cc (original) +++ trunk/storage/libstorage/src/Volume.cc Mon Jul 16 12:27:19 2007 @@ -2051,8 +2051,19 @@ string lmount = (!m.empty())?m:mp; y2milestone( "device:%s mp:%s", dev.c_str(), lmount.c_str() ); string fsn = fs_names[fs]; - cmdline = "modprobe " + fsn; - cmd.execute( cmdline ); + switch( fs ) + { + case NTFS: + fsn = "ntfs-3g"; + break; + case FSUNKNOWN: + fsn = "auto"; + break; + default: + cmdline = "modprobe " + fsn; + cmd.execute( cmdline ); + break; + } if( fs == VFAT ) { cmdline = "modprobe nls_cp437"; @@ -2061,10 +2072,6 @@ cmd.execute( cmdline ); } cmdline = "mount "; - if( fs == NTFS ) - cmdline += "-r "; - else if( fs == FSUNKNOWN ) - fsn = "auto"; const char * ign_opt[] = { "defaults", "" }; const char * ign_beg[] = { "loop", "encryption=", "phash=", "itercountk=" }; -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org