无法将LastAccessDate设置为文件
适用场景
ONTAP 9
问题描述
- 将来在非SnapLock卷上设置LastAccessDate时会在启动ontap.10.1时引发错误(在ONTAP 9.11中也会出现相同的错误)
- 之前(ONTAP 9.9.1及更早版本)未引发任何错误、但此日期会无提示设置为2038年1月19日凌晨3:14:07
- 在ONTAP 9.9.1和ONTAP 9.10.1中、您可以看到以下行为示例:
==================================================================
ONTAP 9.9.1:
==================================================================
PS C:\Users\Administrator.DEMO> (Get-Item "Z:\test1.txt").LastAccessTime
Tuesday, September 20, 2022 9:10:00 AM
PS C:\Users\Administrator.DEMO> (Get-Item "Z:\test1.txt").LastAccessTime=("3 August 2222 17:10:00")
PS C:\Users\Administrator.DEMO> (Get-Item "Z:\test1.txt").LastAccessTime
Tuesday, January 19, 2038 3:14:07 AM
==================================================================
==================================================================
ONTAP 9.10.1:
==================================================================
PS Z:\> (Get-Item "Z:\test1.txt").LastAccessTime
Tuesday, September 20, 2022 8:32:58 AM
PS Z:\> (Get-Item "Z:\test1.txt").LastAccessTime=("3 August 2222 17:10:00")
Exception setting "LastAccessTime": "A device attached to the system is not functioning.
"
At line:1 char:1
+ (Get-Item "Z:\test1.txt").LastAccessTime=("3 August 2222 17:10:00")
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], SetValueInvocationException
+ FullyQualifiedErrorId : ExceptionWhenSetting
PS Z:\> (Get-Item "Z:\test1.txt").LastAccessTime
Tuesday, September 20, 2022 8:32:58 AM
==================================================================