replacing file contents in a vfs module

Richard Sharpe realrichardsharpe at
Sun Apr 19 21:05:15 MDT 2015

On Sun, Apr 19, 2015 at 7:36 PM, Jakub Szarlat <jakubjs at> wrote:
> Hi
> I'm writing a vfs module to handle the blocking of file access ot our offline files (we use Quantum Stornext as our file system). Everything is working fine except that unlike windows the Mac has no appreciation of offlien files and does not display an icon overlay to visualize the files status. (Blocking does work)
> So the idea I had is to present a different ._ corresponding file which would contain a custom icon when a file is offline. I attempted this by changing the smb_fname->base_name in my vfs open_fn function. However this causes an inode does not match error. How can I redirect which file is open without modifying the original?

How about you an an FSP extension for those files that are offline and
keep the info you need to return the content of the special file in
the FSP extension?

Richard Sharpe

More information about the samba-technical mailing list