ntfs-3g mounted with both options relatime and noatime
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ntfs-3g (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned | ||
Bug Description
Binary package hint: libntfs-3g23
The noatime option is always added when mounting ntfs-3g even when other mount options are given and even when the default shoud be relatime
$ sudo mount -t ntfs-3g /dev/sdb1 /media/sdb1/ -o relatime
/var/log/syslog
Apr 2 00:42:10 ubuntu-desktop ntfs-3g[10205]: Version 1.2216 external FUSE 27
Apr 2 00:42:10 ubuntu-desktop ntfs-3g[10205]: Mounted /dev/sdb1 (Read-Write, label "", NTFS 3.1)
Apr 2 00:42:10 ubuntu-desktop ntfs-3g[10205]: Cmdline options: rw,relatime
Apr 2 00:42:10 ubuntu-desktop ntfs-3g[10205]: Mount options: rw,silent,
$ sudo mount -t ntfs-3g /dev/sdb1 /media/sdb1/
/var/log/syslog
Apr 2 00:45:04 ubuntu-desktop ntfs-3g[10253]: Version 1.2216 external FUSE 27
Apr 2 00:45:04 ubuntu-desktop ntfs-3g[10253]: Mounted /dev/sdb1 (Read-Write, label "", NTFS 3.1)
Apr 2 00:45:04 ubuntu-desktop ntfs-3g[10253]: Cmdline options: rw
Apr 2 00:45:04 ubuntu-desktop ntfs-3g[10253]: Mount options: rw,silent,
from man ntfs-3g:
atime, noatime, relatime
The atime option updates inode access time for each access.
The noatime option disables inode access time updates which can
speed up file operations and prevent sleeping (notebook) disks
The relatime option is very similar to noatime. It updates
inode access times relative to modify or change time. The
lier than the current modify or change time. Unlike noatime this
has been read since the last time it was modified. This is the
Confirmed; I reproduced this problem as follows on Hardy Beta:
$ touch ntfs-test.img
$ shred -n1 -s 16M ntfs-test.img
$ sudo losetup /dev/loop0 ntfs-test.img
$ sudo mkntfs -f -L test /dev/loop0
$ sudo mount -t ntfs-3g /dev/loop0 /mnt -o atime
Also, e.g., allow_other, nonempty, relatime, noatime, fsname= /dev/loop0, blkdev, blksize= 4096 nodev,noatime, allow_other, blksize= 4096)
$ sudo mount -t ntfs-3g -o atime,debug /dev/loop0 /mnt
Version 1.2216 external FUSE 27
Mounted /dev/loop0 (Read-Write, label "test", NTFS 3.1)
Cmdline options: rw,debug
Mount options: rw,silent,
$ mount | grep loop
/dev/loop0 on /mnt type fuseblk (rw,nosuid,
The following packages are installed:
$ dpkg -l | grep ntfs
ii libntfs-3g23 1:1.2216-1ubuntu1 ntfs-3g filesystem in userspace (FUSE) libra
ii libntfs10 2.0.0-1ubuntu2 library that provides common NTFS access fun
ii ntfs-3g 1:1.2216-1ubuntu1 read-write NTFS driver for FUSE
ii ntfsprogs 2.0.0-1ubuntu2 tools for doing neat things in NTFS partitio