Quick diff -u for Samba_2_2 to implement forced 'offline' attribu te per share
abartlet at samba.org
abartlet at samba.org
Thu Mar 21 16:14:02 GMT 2002
On Thu, Mar 21, 2002 at 05:40:12PM -0500, MCCALL,DON (HP-USA,ex1) wrote:
> Hi Guys,
> In line with the 'offline' attribute and discussions, I put together a quick
> patch on Samba_2_2 CVS to implement a simple
> map offline = true or false...
> it can either be global or per share, so if you want to play around with it
> and compare speeds for directory listings between the same fs with an
> 'offline' share and an 'online' share, you can.
> I get the pretty icon that shows the file is 'offline', but interestingly
> enough, I ALSO get the embedded icon that the client would have no way of
> knowing without opening and reading the file for that information. So I'm
> not sure about it being any faster...
> For a test I copied a .exe file with a unique embedded icon, and renamed it
> on the share, and whether I looked at it via the 'map online=true' OR 'map
> online=false', I still got the unique icon; only difference was on the
> 'offline' share, it had the little offline 'gear' superimposed on it.
This should really be 'mark offline' not 'map offline' shouldn't it?
The 'map' implies it works like the u+x == archive stuff, but this is just a
per-share flag (as far as my 2 second patch reading tells me anyway...)
Andrew Bartlett
More information about the samba-technical
mailing list