跳转到主内容

在FlexCache 中创建只读文件会导致权限被拒绝、但仍会创建此文件

Views:
3
Visibility:
Public
Votes:
0
Category:
ontap-9
Specialty:
cifs<a>2009年116155</a>
Last Updated:

适用场景

  • ONTAP 9
  • FlexCache
  • CIFS

问题描述

  • 在FlexCache 中创建只读文件会导致权限被拒绝、但仍会创建此文件
  • 数据包跟踪显示客户端尝试创建设置了只读位的文件。

166   2022-04-12 08:02:24.415988   192.168.0.5   192.168.0.134   SMB2   368      Create Request File: TestFile01.txt
    File Attributes: 0x00000021
    .... .... .... .... .... .... .... ...1 = Read Only: Yes
    Disposition: Create (if file exists fail, else create it) (2)

访问被拒绝后、此操作将失败:
169   2022-04-12 08:02:24.450312   192.168.0.134   192.168.0.5   SMB2   77      Create Response, Error: STATUS_ACCESS_DENIED

但是、在创建
同一文件的后续尝试失败时、仍会创建文件 STATUS_OBJECT_NAME_COLLISION

170   2022-04-12 08:02:24.450599   192.168.0.5   192.168.0.134   SMB2   368      Create Request File: TestFile01.txt
172   2022-04-12 08:02:24.451809   192.168.0.134   192.168.0.5   SMB2   77      Create Response, Error: STATUS_OBJECT_NAME_COLLISION

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.