Mailinglist Archive: yast-commit (747 mails)
| < Previous | Next > |
[yast-commit] r39420 - /trunk/storage/libstorage/src/Volume.cc
- From: fehr@xxxxxxxxxxxxxxxx
- Date: Mon, 16 Jul 2007 10:27:19 -0000
- Message-id: <20070716102719.D3A163BF3B@xxxxxxxxxxxxxxxx>
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@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx
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@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx
| < Previous | Next > |