[patch] 3.2 test - add fsctl_recall_offline support
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:
> comments / feedback welcome.
> Cheers, Dave
> Patches in apply order:
> Add new RECALL_OFFLINE vfs function
> To be used for recalling files migrated to offline storage by a Hierarchical
> Storage Management system.
> 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
> The SNIA CIFS documentation also describes NT_TRANSACT_IOCTL server response
> packets as having a SetupCount of 1.
> 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