[Info-vax] Enable Dir/date=accessed

Jon Pinkley jon.pinkley at gmail.com
Fri Jun 28 23:21:26 EDT 2019


On Friday, June 28, 2019 at 11:27:19 AM UTC-4, Dr X wrote:
> Hi all
> when I try to know the date of the last access of a file
> without using the audit
> $ dir / date = accessed only shows <none specified>
> 
> 
> do you know where I can enable in order to see the access date similar to 
> dir/date = mod?
> 
> cheers

The closest you can do on ODS-2 is by using expiration dates.  And you must enable it on the volume level.

$ set vol/ret=(0,0:0:0.01) disk$foo: ! enable last access time recording

This will set the expiration time to 1/100 th of a second after the access time.  Which is close enough for most things. If you have a cluster, the per node clocks can easily be off by more that.

For more info 

$ help set volume/retention

Note that applications can request a read without updating the expiration date (for example backup does not touch the expiration date).
Then to see last access (read or write), do a 

$ directory /date=expiration

or 

$ directory /date=(cre,mod,exp)

This does add to I/O load, but may be worth it for you.



More information about the Info-vax mailing list