Skip to main content
NetApp Knowledge Base

What Fpolicy Notification is sent when a folder is moved via Windows client

Views:
349
Visibility:
Public
Votes:
1
Category:
ontap-9
Specialty:
nas
Last Updated:

Applies to

  • ONTAP 9
  • FPOLICY

Answer

When a folder is moved , Fpolicy screen request "SMB_REN_DIR" is sent to FPOLICY server as a notification
 
In Lab:
 
  • Folder "folder1" is present in share \\cifsvol\test : (Folder path : - "\\cifsvol\test\folder1")
  • It is moved to folder path "\\cifsvol\test2 : (New Folder path : - "\\cifsvol\test2\folder1")
 
Fpolicy Notification
 
Fpolicy logs shows: ( With debug logging enabled )

[kern_fpolicy:debug:6292] _tcpSendFSMXmlReq returned got [<?xml version="1.0"?><Header><NotfType>SCREEN_REQ</NotfType><ContentLen>1134</ContentLen><DataFormat>XML</DataFormat></Header>  <?xml version="1.0"?><FscreenReq><ReqId>518</ReqId><ReqType>SMB_REN_DIR</ReqType><NotfInfo><SmbRenReq><CommonInfo><ProtCommonInfo><ClientIp>10.216.41.190</ClientIp><UsrIdType>MAPPED_ID</UsrIdType><UsrContext><MappedId><Uid>0</Uid><WinSid>S-1-5-21-4227258846-2863433890-2438189577-500</WinSid></MappedId></UsrContext><FileOwner><WinSid>S-1-5-32-544</WinSid></FileOwner><AccessPath><Path><PathNameType>WIN_NAME</PathNameType><PathName>\test\folder1</PathName></Path><Path><PathNameType>UNIX_NAME</PathNameType><PathName>/test/folder1</PathName></Path></AccessPath><VolMsid>2154003189</VolMsid><FileSize>4096</FileSize><NumHardLnk>2</NumHardLnk><IsOfflineAttr>0</IsOfflineAttr><FileType>DIR</FileType><IsSparse>0</IsSparse><IsDense>0</IsDense></ProtCommonInfo><DisplayPath>\\98_SVM1\cifsvol\test\folder1</DisplayPath><ProtVer><MajorNum>3</MajorNum><MinorNum>0</MinorNum></ProtVer></CommonInfo><TargetAccessPath><Path><PathNameType>WIN_NAME</PathNameType><PathName>\test2\folder1</PathName></Path><Path><PathNameType>UNIX_NAME</PathNameType><PathName>/test2/folder1</PathName></Path></TargetAccessPath></SmbRenReq></NotfInfo></FscreenReq>] message of length 1263 for FPolicy server [0x0x805aa5100] src/fsm/fsm_external_engine.cc:6240
 
Packet traces will show : ( Taken on ONTAP end )
  • Since there is no SMB2 Move request in SMB2 command set, SMB2 Client uses SetInfo call for the move operation
  • Folder Move is done via Rename call where the old path (\test\folder1) is renamed to new path (\test2\folder1)
  • Fpolicy screen request is sent for "SMB_REN_DIR"
clipboard_e05499b331c112f1440f9349412b00539.png

Additional Information

  • Note :
    • If a file was moved instead of a folder then Fpolicy screen request is sent with SMB_REN 
    • File "Cmode_domain_login.pcapng" was moved from \\cifsvol to \\cifsvol\test2

Fpolicy Notification

Fpolicy Notification

  • Enabling Fpolicy Debug :

CDOT::> set diag
Warning: These diagnostic commands are for use by NetApp personnel only.
Do you want to continue? {y|n}: y

WARNING

These diagnostic commands are for use by NetApp personnel only.

Exit diag mode ( use command "set admin" ) once the below debugging is enabled

CDOT::*> fpolicy log show -node * -module fpolicy::fsm

Node             Module                                   Level
---------------- ---------------------------------------- ----------
CDOT-01
                 fpolicy::fsm                             info
CDOT-02
                 fpolicy::fsm                             info
2 entries were displayed.

CDOT::vserver fpolicy*> fpolicy log modify -node * -module fpolicy::fsm -level debug
2 entries were modified.

CDOT::vserver fpolicy*> fpolicy log show -node * -module fpolicy::fsm
Node             Module                                   Level
---------------- ---------------------------------------- ----------
CDOT-01
                 fpolicy::fsm                             debug
CDOT-02
                 fpolicy::fsm                             debug
2 entries were displayed.

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.