ntfsresize, ntfsclone: always use MS_NOATIME

edge.strict_endians
szaka 2006-02-05 16:39:35 +00:00
parent c0e5461995
commit fefc3e5195
3 changed files with 3 additions and 2 deletions

View File

@ -115,6 +115,7 @@
record size to be below or equal to the system page size which we
determine using sysconf()). (Anton)
- Fix tons of big-endian bugs in mkntfs. (Anton)
- ntfsresize, ntfsclone: always use MS_NOATIME. (Szaka)
10/10/2005 - 1.12.1 - Minor fix to location of mount.ntfs-fuse and mkfs.ntfs.

View File

@ -1603,7 +1603,7 @@ int main(int argc, char **argv)
/* 'force' again mount for dirty volumes (e.g. after resize).
FIXME: use mount flags to avoid potential side-effects in future */
opt.force++;
mount_volume(0);
mount_volume(MS_NOATIME);
free(lcn_bitmap.bm);
setup_lcn_bitmap();

View File

@ -2251,7 +2251,7 @@ static ntfs_volume *mount_volume(void)
"You must 'umount' it first.\n", opt.volume);
}
if (!(vol = ntfs_mount(opt.volume, opt.ro_flag))) {
if (!(vol = ntfs_mount(opt.volume, opt.ro_flag | MS_NOATIME))) {
int err = errno;