<div class="socmaildefaultfont" dir="ltr" style="font-family:Arial, Helvetica, sans-serif;font-size:9pt" ><div dir="ltr" ><div>> In the interim would it be possible for the SMB server to detect the<br>> client OS and only allow recalls from say Windows. At least this would<br>> be in "our" control unlike getting Apple to change the finder.app<br>> behaviour. Then tell MacOS users to use Windows if they want to recall<br>> files and pin the blame squarely on Apple to your users.</div>
<div> </div>
<div>Detecting the client OS is the difficult part. There is code in Samba<br>to guess the client OS from a SMB1 negotiate request. This is not<br>reliable in the first place, as a client can directly negotiate SMB2/3<br>which would omit the client OS guessing.</div>
<div> </div>
<div>There is a protocol extensions MacOS clients try to negotiate, so<br>maybe that could be used as indicator for a MacOS client that should be<br>prevented from recalling files. This would still be a crude hack, but<br>at least the required pieces of information are available.</div>
<div>If that is an important piece, maybe this should be tracked as RFE<br>instead of an email thread.</div>
<div> </div>
<div>> I note that Linux is no better at honouring the offline bit in the SMB<br>> protocol than MacOS. Oh the irony of Windows being the only main stream<br>> IS handling HSM'ed files properly!</div>
<div> </div>
<div>Linux probably suffers from the distributed development here. The<br>Linux kernel SMB/CIFS client allows applications to query the offline<br>flag, but it would be up to the applications (e.g. file browsers) to<br>query that flag before reading data for generating previews.</div></div>
<div dir="ltr" ><div class="socmaildefaultfont" dir="ltr" style="font-family:Arial, Helvetica, sans-serif;font-size:10.5pt" ><div class="socmaildefaultfont" dir="ltr" style="font-family:Arial, Helvetica, sans-serif;font-size:10.5pt" ><div class="socmaildefaultfont" dir="ltr" style="font-family:Arial, Helvetica, sans-serif;font-size:10.5pt" ><div class="socmaildefaultfont" dir="ltr" style="font-family:Arial, Helvetica, sans-serif;font-size:10.5pt" ><div class="socmaildefaultfont" dir="ltr" style="font-family:Arial;font-size:10.5pt" ><div dir="ltr" > </div>
<div dir="ltr" >Regards,</div>
<div dir="ltr" ><font size="2" face="Verdana,Arial,Helvetica,sans-serif" ><font size="2" face="Verdana,Arial,Helvetica,sans-serif" ><span style="font-size:0.857em;" > </span></font></font></div>
<div dir="ltr" ><font size="2" face="Verdana,Arial,Helvetica,sans-serif" ><font size="2" face="Verdana,Arial,Helvetica,sans-serif" ><span style="font-size:0.857em;" ><span style="font-family: Verdana,Geneva,sans-serif;" >Christof Schmitt || IBM || Spectrum Scale Development || Tucson, AZ<br>christof.schmitt@us.ibm.com  ||  +1-520-799-2469    (T/L: 321-2469)</span></span></font></font></div></div></div></div></div></div></div>
<div dir="ltr" > </div>
<div dir="ltr" > </div>
<blockquote data-history-content-modified="1" dir="ltr" style="border-left:solid #aaaaaa 2px; margin-left:5px; padding-left:5px; direction:ltr; margin-right:0px" >----- Original message -----<br>From: Jonathan Buzzard <jonathan.buzzard@strath.ac.uk><br>Sent by: gpfsug-discuss-bounces@spectrumscale.org<br>To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org><br>Cc:<br>Subject: [EXTERNAL] Re: [gpfsug-discuss] Intro, and Spectrum Archive self-service recall interface question<br>Date: Tue, May 21, 2019 3:30 AM<br> 
<div><font size="2" face="Default Monospace,Courier New,Courier,monospace" >On Mon, 2019-05-20 at 20:33 +0000, Christof Schmitt wrote:<br>> SMB clients know the state of the files through a OFFLINE bit that is<br>> part of the metadata that is available through the SMB protocol. The<br>> Windows Explorer in particular honors this bit and avoids reading<br>> file data for previews, but the MacOS Finder seems to ignore it and<br>> read file data for previews anyway, triggering recalls.<br>>  <br>> The best way would be fixing this on the Mac clients to simply not<br>> read file data for previews for OFFLINE files. So far requests to<br>> Apple support to implement this behavior were unsuccessful, but it<br>> might still be worthwhile to keep pushing this request.<br>>  <br><br>In the interim would it be possible for the SMB server to detect the<br>client OS and only allow recalls from say Windows. At least this would<br>be in "our" control unlike getting Apple to change the finder.app<br>behaviour. Then tell MacOS users to use Windows if they want to recall<br>files and pin the blame squarely on Apple to your users.<br><br>I note that Linux is no better at honouring the offline bit in the SMB<br>protocol than MacOS. Oh the irony of Windows being the only main stream<br>IS handling HSM'ed files properly!<br><br>JAB.<br><br>--<br>Jonathan A. Buzzard                         Tel: +44141-5483420<br>HPC System Administrator, ARCHIE-WeSt.<br>University of Strathclyde, John Anderson Building, Glasgow. G4 0NG<br><br><br><br>_______________________________________________<br>gpfsug-discuss mailing list<br>gpfsug-discuss at spectrumscale.org<br><a href="http://gpfsug.org/mailman/listinfo/gpfsug-discuss" target="_blank">http://gpfsug.org/mailman/listinfo/gpfsug-discuss</a></font><br> </div></blockquote>
<div dir="ltr" > </div></div><BR>