为什么需要更新MTIME和ATIME?

发布于 2025-02-01 12:05:11 字数 395 浏览 1 评论 0原文

有谁知道为什么完成文件时需要更新MTIME和电气设备?

mInodeTree.updateInode(rpcContext, UpdateInodeEntry.newBuilder()

    .setId(inode.getId())
    .setUfsFingerprint(ufsFingerprint)
    .setLastModificationTimeMs(opTimeMs) // mtime?
    .setLastAccessTimeMs(opTimeMs) // atime?
    .setOverwriteModificationTime(true)
    .build();
mInodeTree.updateInodeFile(rpcContext, entry.build());

Does anyone know why the mtime and atime need to be updated when completing the file?

mInodeTree.updateInode(rpcContext, UpdateInodeEntry.newBuilder()

    .setId(inode.getId())
    .setUfsFingerprint(ufsFingerprint)
    .setLastModificationTimeMs(opTimeMs) // mtime?
    .setLastAccessTimeMs(opTimeMs) // atime?
    .setOverwriteModificationTime(true)
    .build();
mInodeTree.updateInodeFile(rpcContext, entry.build());

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

凝望流年 2025-02-08 12:05:11

在早期,Alluxio主要用于存储真正大文件的Spark或MR时,我们认为完成可能需要一段时间,因此完成时间可以更好地反映MTIME和NITHIME。我认为背后没有任何特殊的技术原因

In the early days when Alluxio is mostly used for Spark or MR for storing really large files, we were thinking the completion could take a while, thus the completion time may better reflect the mtime and atime. I don’t think there is any particular technical reason behind that

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文