[Samba] Using SMB_VFS_IS_OFFLINE for directories.
jra at samba.org
Fri Jul 18 11:41:43 MDT 2014
On Thu, Jul 17, 2014 at 01:18:41PM -0500, Dean Roehrich wrote:
> I made a small change to source3/smbd/dosmode.c to let my plugin on
> my linux box return FILE_ATTRIBUTE_OFFLINE for directories, and so
> far Windows (2008) seems okay with it. It displays the folder icon
> with the "X" over it and it navigates the folder hierarchy without
> trouble (so far).
> I can see that the SMB_VFS_IS_OFFLINE code went in originally for
> DMAPI support (Bokovoy, Jan 2008, commit d86fc3ec) and that DMAPI
> doesn't have the concept of punching a directory like it does for
> files. So that would explain the limitation in the original code.
> But, has anyone used this for directories?
Not that I know of. Can you post your patch so
we can take a look ?
Do you have any test code that will allow us to
ensure this doesn't break anything (preferably
something that runs against Windows first :-) ?
More information about the samba