跳转到主内容

当 SMB 客户端尝试设置时间戳超过 2038 年 1 月 19 日时,ONTAP 将文件的 mtime 设置为 2038 年 1 月 19 日

Views:
94
Visibility:
Public
Votes:
0
Category:
ontap-9
Specialty:
nas
Last Updated:

适用于

  • ONTAP 9
  • CIFS

问题

  • 当 CIFS 客户端或任何应用程序在将文件复制到 ONTAP 期间尝试将文件的 mtime 设置为超过 2038 年 1 月 19 日时,文件上设置的修改时间默认为 2038 年 1 月 19 日
  • 我们可以看到下面的文件时间戳设置为 2073 年 8 月 12 日(当此文件位于 Windows 客户端的本地驱动器时)

ONTAP sets the mtime of the file to 19 Jan 2038

C:\Users\administrator.NASLAB\Downloads>dir
 Volume in drive C has no label.
 Volume Serial Number is 2CCE-CDD9

 Directory of C:\Users\administrator.NASLAB\Downloads

12-08-2073  10:40   <DIR>     .
12-08-2073  10:40   <DIR>     ..
12-08-2073  10:40          0 test_date.txt  <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
16-03-2023  10:36     78,751,312 Wireshark-win64-4.0.4.exe

  • 将此文件复制到 ONTAP CIFS 共享后,修改时间设置为 2038 年 1 月 19 日

ONTAP CIFS share the time modified is set to 19 Jan 2038

 Z:\>dir  Volume in drive Z is vol1  Volume Serial Number is 80FF-DBD8

 Directory of Z:\

16-03-2023  10:38   <DIR>     .
16-03-2023  10:38   <DIR>     ..
23-01-2023  17:50         40 sample.txt
19-01-2038  08:44          0 test_date.txt  <<<<<<<< max data it can set is only 19-01-2038

Sign in to view the entire content of this KB article.

New to NetApp?

Learn more about our award-winning Support

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.