Quick diff -u for Samba_2_2 to implement forced 'offline' att ribu te per share

MCCALL,DON (HP-USA,ex1) don_mccall at hp.com
Thu Mar 21 18:54:03 GMT 2002

Hi Andrew,
Spot on - I was just lazy, and since I was using the same (sorta) mechanism,
I just did some quick cut and paste...
'mark_offline' is much more accurate.

-----Original Message-----
From: abartlet at samba.org [mailto:abartlet at samba.org]
Sent: Thursday, March 21, 2002 19:13
Cc: 'samba-technical at lists.samba.org'
Subject: Re: Quick diff -u for Samba_2_2 to implement forced 'offline'
attribu te per share

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
> 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
> 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
> 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