Sample Header Ad - 728x90

Setting noatime via mount options vs no atime updates (A) file attribute

0 votes
2 answers
2756 views
From man chattr > When a file with the 'A' attribute set is accessed, its atime record > is not modified. This avoids a certain amount of disk I/O for laptop > systems. However when I am remounting a filesystem with the noatime mount option: [root@localhost ~]# mount -o remount,noatime /dev/sdb1 /newfs/ creating a file in it [root@localhost ~]# cd /newfs/ [root@localhost newfs]# touch myfile and getting its file attributes: [root@localhost newfs]# lsattr myfile -------------e-- myfile the A file attribute is not set despite the fact. Is this the expected behavior?
Asked by pkaramol (3109 rep)
Apr 22, 2019, 03:25 PM
Last activity: Apr 24, 2019, 12:15 AM