如何修复 mount 命令输出“relatime”中的拼写错误?

如何修复 mount 命令输出“relatime”中的拼写错误?

我运行了 mount 命令来查看目前设置的内容。Ubuntu 22.04.1 LTS (GNU/Linux 5.15.0-56-generic x86_64) 输出片段:

sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,nosuid,relatime,size=8029452k,nr_inodes=2007363,mode=755,inode64)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs

答案1

输出是正确的 - 应该是relatime。输出不是标准英语,并且单词不应该是relative(或其他单词)。

有一个名为ccessatime的选项,以及该选项的一个变体atime相对的被命名为其他东西relatime。从man mount

atime
   Do not use the noatime feature, so the inode access time is controlled by kernel
   defaults. See also the descriptions of the relatime and strictatime mount options.

noatime
   Do not update inode access times on this filesystem (e.g. for faster access on the
   news spool to speed up news servers). This works for all inode types (directories
   too), so it implies nodiratime.

[...]
relatime
   Update inode access times relative to modify or change time. Access time is only
   updated if the previous access time was earlier than the current modify or change
   time. (Similar to noatime, but it doesn’t break mutt(1) or other applications that
   need to know if a file has been read since the last time it was modified.)

相关内容