[patch] 3.2 test - add fsctl_recall_offline support
David Disseldorp
ddiss at sgi.com
Thu May 8 23:12:30 GMT 2008
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: add_fsctl_recall_file_support.patch
Type: application/octet-stream
Size: 2677 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20080509/bcfcd10a/add_fsctl_recall_file_support.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: add_recall_offline_vfs_func.patch
Type: application/octet-stream
Size: 5549 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20080509/bcfcd10a/add_recall_offline_vfs_func.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: support_setupcount_nttrans.patch
Type: application/octet-stream
Size: 12443 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20080509/bcfcd10a/support_setupcount_nttrans.obj
More information about the samba-technical
mailing list