Article View: aus.pyramid
Article #113Backups, cpio -a and NO_ATIME
From: Sean Batt
Date: Wed, 12 Feb 1992 09:25
Date: Wed, 12 Feb 1992 09:25
45 lines
2700 bytes
2700 bytes
G'Day Everyone, I've been asked to provide some statistics to management on disc usage profiles to help determine if we need to buy more disc or can get by simply by skimming unused files. Of course the real answer is buy some more discs, but Pyramid's prices are unfortunately prohibitive. For a while I thought I couldn't produce relevant stats because every file's access time is updated every evening when cpio writes the file to our will-it-crash-the-system-this-time Gigatape DAT drive. Then I read about the -a switch to cpio that apparently uses the O_NOATIME switch on open to leave files' access times alone. But now I'm back to thinking that I can't produce the relevant stats because the find command I use to pipe filenames to cpio actually changes the access time before cpio gets a chance to not change it. Is there something I'm missing here? An undocumented switch to find perhaps? Something thats fixed in a later version of OSx than I'm running (OSx64MNQ coombs 5.1a-901106 21Jan91 Pyramid-9825)? What should I do? Binary edit find to always do a NO_ATIME open? Wait a sec! Why would find do an open anyway? Surely it'd just stat(2) each file and according to the stat(2) man page the st_atime is only updated on a mknod, utimes, read or write call. Should I get a PD find and modify that? BSD 4.[34] find is too difficult to compile on my machine at the moment (but I'm slowly working on a 'bsd' universe for the 4.4 code :-). Perhaps GNU find? I think Pyramid's -a switch to cpio is going in the right direction: backups should not modify a file's access time. Or is my thinking wrong in this? Any help appreciated. Sean -- ------------- Sean Sebastian Batt - sean@coombs.anu.edu.au -------- -------- Coombs Computing Section - Telephone: +61 6 249 3296 ----- -- Australian National University - GPO Box 4 Canberra City 2601 -- -------------------------------------------------------------------
Technical Details
Message-ID:
<sean.697886737@coombs>Path:
arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!manuel!coombs!seanShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 100d59,a2fc62cf83f24806,start X-Google-Attributes: gid100d59,public X-Google-Thread: 102ad9,a2fc62cf83f24806,start X-Google-Attributes: gid102ad9,public X-Google-ArrivalTime: 1992-02-12 01:42:22 PST Newsgroups: aus.pyramid,comp.sys.pyramid Path: arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!manuel!coombs!sean From: sean@coombs.anu.edu.au (Sean Batt) Subject: Backups, cpio -a and NO_ATIME Message-ID: <sean.697886737@coombs> Summary: cpio -a is basically useless Keywords: cpio, NO_ATIME, find, backups, access time, etc, etc Lines: 46 Sender: news@newshost.anu.edu.au Organization: Computer Services Centre, Australian National University Date: 12 Feb 92 09:25:37 GMT