diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2007-08-03 14:36:30 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2007-08-03 14:36:30 +0000 |
commit | b21144e3eebc4cb79f3c711ba507ed6251ec4ed4 (patch) | |
tree | d8a2fa05ad2e052d4e6c774558d0981615d87545 /perl-install/fs | |
parent | b36272f65f128d9f8ec424ad4370314bc5656788 (diff) | |
download | drakx-b21144e3eebc4cb79f3c711ba507ed6251ec4ed4.tar drakx-b21144e3eebc4cb79f3c711ba507ed6251ec4ed4.tar.gz drakx-b21144e3eebc4cb79f3c711ba507ed6251ec4ed4.tar.bz2 drakx-b21144e3eebc4cb79f3c711ba507ed6251ec4ed4.tar.xz drakx-b21144e3eebc4cb79f3c711ba507ed6251ec4ed4.zip |
- diskdrake:
o allow setting "flush" option (for vfat)
- install:
o configure removable writable media to use "flush" option instead of "sync" (#23042)
Diffstat (limited to 'perl-install/fs')
-rw-r--r-- | perl-install/fs/mount_options.pm | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/perl-install/fs/mount_options.pm b/perl-install/fs/mount_options.pm index ce06ef9e2..2cd184814 100644 --- a/perl-install/fs/mount_options.pm +++ b/perl-install/fs/mount_options.pm @@ -27,7 +27,7 @@ sub unpack { my @auto_fs = fs::type::guessed_by_mount(); my %per_fs = ( iso9660 => [ qw(unhide) ], - vfat => [ qw(umask=0 umask=0022) ], + vfat => [ qw(flush umask=0 umask=0022) ], ntfs => [ qw(umask=0 umask=0022) ], nfs => [ qw(rsize=8192 wsize=8192) ], smbfs => [ qw(username= password=) ], @@ -110,6 +110,8 @@ sub help() { 'encrypted' => N("Use an encrypted file system"), + 'flush' => N("Flush write cache on file close"), + 'grpquota' => N("Enable group disk quota accounting and optionally enforce limits"), 'noatime' => N("Do not update inode access times on this file system @@ -181,7 +183,7 @@ sub set_default { && (!$part->{fs_type} || $part->{fs_type} eq 'auto' || $part->{fs_type} =~ /:/)) { $options->{supermount} = 0; #- always disable supermount $part->{fs_type} = 'auto'; - $options->{sync} = 1 if $part->{media_type} ne 'cdrom'; + $options->{flush} = 1 if $part->{media_type} ne 'cdrom'; } if ($part->{media_type} eq 'cdrom') { @@ -190,7 +192,7 @@ sub set_default { if ($part->{media_type} eq 'fd') { # slow device so do not loose time, write now! - $options->{sync} = 1; + $options->{flush} = 1; } if (isTrueFS($part)) { |