On 08/26/09 14:33, Dean Roehrich wrote:
> On Wed, Aug 26, 2009 at 09:55:20AM -0600, Tim Haley wrote:
>>      The offline attribute (XAT_OFFLINE) will be added to the read-
>>      write system attributes view defined in PSARC/2007/315 and will be
>>      generally available to file systems and applications to indicate
>>      the offline/online status of objects: boolean value of true
>>      indicates the object is offline.  In order to set or clear the
>>      offline attribute the consumer must have the ACE_WRITE_ATTRIBUTES
>>      permission or the PRIV_FILE_OWNER privilege.  In the kernel, it
>>      will be accessible via VOP_GETATTR() and VOP_SETATTR().  In user
>>      space, it will be accessible via chmod(1), ls(1) and fgetattr(3C).
>>      No changes are required to the VOP or fgetattr(3C) function
>>      prototypes.
> 
> An HSM does not want the file's owner to twiddle this status.  That status
> should be controlled by the HSM.

The file system can return EACCES or EPERM if it doesn't want
the attribute changed via fsetattr(3C).

I didn't want to preclude user space applications from being
able to manipulate this attribute on regular (non-HSM) file
systems.  As I mentioned, a virus scanner could be configured
to mark the file as offline while it is performing a scan-on-
open.

Alan

> I agree that anyone ought to be able to query the status.  Joe User's file
> browser should be able to see it and make smart decisions, such as not trying
> to read a known-offline file as part of its effort to determine what kind of
> icon to display.
> 
> 
> Dean


Reply via email to