Samba and MS Shadow Copy

Ken Cross kcross at
Tue Aug 5 16:53:32 GMT 2003

No problem -- all sounds very reasonable.

I couldn't find any name from MS for this FSCTL function, so I just made one
up.  If anyone know a better one, please feel free to use it.


Ken Cross

Network Storage Solutions
Phone 865.675.4070 ext 31
kcross at 

> -----Original Message-----
> From: Stefan (metze) Metzmacher [mailto:metze at] 
> Sent: Tuesday, August 05, 2003 12:50 PM
> To: Ken Cross; 'Multiple recipients of list SAMBA-TECHNICAL'; 
> Jeremy Allison; Alexander Bokovoy
> Subject: Re: Samba and MS Shadow Copy
> At 13:22 04.08.2003 -0400, Ken Cross wrote:
> >Samba-folk:
> >
> >Microsoft's Shadow Copy is their version of snapshots for 
> NTFS.  It is 
> >standard in Windows Server 2003.  Windows Explorer can very 
> >conveniently view "Previous Versions" of files and/or 
> directories.  (To 
> >add this feature to Explorer on XP or Win2k SP3 or higher, see
> >
>Some file systems, including ours at Network Storage Solutions, have 
>snapshot capability.  Adding this support in Samba involves the 3 steps 
>described below.  (Much of this is extremely vendor-specific, so sample 
>code wouldn't mean much on another file system.)


would it be ok if I modify your patch a bit?

just make the names unique

inn your patch  is FSCTL_GET_SHADOW_DATA and the DEBUG()'s say

the macros are SMB_VFS_GET_SHADOW_DATA and the function pointers are

What name should we use here?
Does Microsoft have defined a FSCTL_* name for this call?(or does anyone 
knows this name?)

and the ioctl call should only return NT_STATUS_NOT_IMPLEMENTED when errno
== ENOSYS...

otherwise it should return NT_STATUS_UNSUCCESSFUL

Stefan "metze" Metzmacher <metze at> 

More information about the samba-technical mailing list