What would happen if storage time changes while editing a file?
Applies to
- ONTAP 9
- NFS
Answer
- Subsequent editing and saving work without problem.
- After the file is saved, new storage time will be applied to it.
Example
[root@linux mnt]# stat f1
File: ‘f1’
Size: 39 Blocks: 0 IO Block: 65536 regular file
Device: 5eh/94d Inode: 12391 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 99/ nobody) Gid: ( 99/ nobody)
Access: 2024-03-26 00:20:31.536752000 +0000
Modify: 2024-03-26 00:20:31.536757000 +0000
Change: 2024-03-26 00:20:31.536760000 +0000
Birth: -
[root@linux mnt]# vi f1
cluster1::*> date
Node Date Time zone
--------- ------------------------ -------------------------
cluster1-01
Tue Mar 26 00:27:10 2024 Etc/UTC
cluster1-02
Tue Mar 26 00:27:10 2024 Etc/UTC
2 entries were displayed.
cluster1::*> cluster date modify -node * -dateandtime 202403260010.00
cluster1::*> date
Node Date Time zone
--------- ------------------------ -------------------------
cluster1-01
Tue Mar 26 00:10:02 2024 Etc/UTC
cluster1-02
Tue Mar 26 00:10:02 2024 Etc/UTC
2 entries were displayed.
Save the file and exist 'vi'
[root@linux mnt]# stat f1
File: ‘f1’
Size: 57 Blocks: 0 IO Block: 65536 regular file
Device: 5eh/94d Inode: 12393 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 99/ nobody) Gid: ( 99/ nobody)
Access: 2024-03-26 00:10:08.813645000 +0000
Modify: 2024-03-26 00:10:08.813655000 +0000
Change: 2024-03-26 00:10:08.813666000 +0000
Birth: -