[patch] 3.2 test - add fsctl_recall_offline support
Alexander Bokovoy
ab at samba.org
Sat May 10 17:20:54 GMT 2008
David, thanks for the patches.
I'm just back from the red-sea-without-network family trip and
catching up with lots of mail. Expect review in a week or so -- I saw
comments from Jeremy and James already.
2008/5/9, David Disseldorp <ddiss at sgi.com>:
> Hi Alexander,
>
> Following on from the HSM offline files changes you made recently,
> this set of patches adds FSCTL_RECALL_FILE support to Samba 3.2.
>
> for details on the fsctl:
> http://msdn.microsoft.com/en-us/library/aa364587(VS.85).aspx
>
> comments / feedback welcome.
>
> Cheers, Dave
>
>
>
> Patches in apply order:
>
> add_recall_offline_vfs_func.patch
> =================================
> Add new RECALL_OFFLINE vfs function
>
> To be used for recalling files migrated to offline storage by a Hierarchical
> Storage Management system.
>
> support_setupcount_nttrans.patch
> ================================
> Support Setup[SetupCount] values in nttrans response packets
>
> send_nt_replies currently sets SetupCount to zero, however some packets
> require different values. When testing FSCTL_RECALL_FILE, Windows XPsp2
> was observed dropping connections where SetupCount was not one in the server
> response.
>
> The SNIA CIFS documentation also describes NT_TRANSACT_IOCTL server response
> packets as having a SetupCount of 1.
>
> add_fsctl_recall_file_support.patch
> ===================================
> FSCTL_RECALL_FILE can be used to recall files moved offline by hierarchical
> storage management software.
>
> The nttrans ioctl packet is handled in the following steps:
> - check for FILE_SUPPORTS_REMOTE_STORAGE, if without, return error
> - return error if attempting to recall a directory.
> - if SMB_VFS_IS_OFFLINE() is false return success immediately
> - otherwise, call SMB_VFS_RECALL_OFFLINE() to recall the file
>
>
>
--
/ Alexander Bokovoy
More information about the samba-technical
mailing list