|
||
|
|
||
January 20, 2004 How to use DVDs with AIPSAIPS can take advantage of the inexpensive and convenient DVD+RW format by creating an AIPS disk on a DVD+RW mounted with the udf filesystem. Such a disk has 4.7 GB of removable storage space and is fully re-writable. Multiple disks (e.g., one for each project of interest) can be alternately mounted as desired, and/or transported to other machines. The access time is roughly 5 times slower than a standard internal IDE disk when writing, but otherwise the functionality is the same as any other AIPS disk. For performance reasons, the parameter BADDISK should be set to avoid creating scratch disks on the DVD+RW disk. Disks created on a DVD+RW drive can also be read on most read-only DVD drives. Again the disk functions like a normal AIPS disk. Tasks such as UVCOP, MOVE and SUBIM can be used to transfer data to another disk, but tasks that require writing to the DVD will fail. Tasks and verbs to inspect data such as PRTUV, LISTR, TVALL, and IMEAN should work. (Note that IMEAN's option to add a keyword to the header will not work on a read-only file system, but the task functions normally even if this error is encountered.) To enable this capability the following steps are required:
AIPS modifications for read-only file systemsSo far the capability described above has only been tested under Linux with the 31DEC04 version of AIPS@. Earlier versions of AIPS may be able to use a DVD+RW drive, but will not be able to use a disk that has been mounted read-only (such as a DVD-ROM drive). 31DEC04 AIPS was modified on 19 January, 2004 (midnight job of 20-Jan-2004 and later) to understand that read-only file systems may exist as AIPS data disks. The routine pair ZDRCHK and ZDRCH2 are called by AIPS and all tasks after they have established the users number. They check for the existence of AIPS catalog (CA) files for the given user number on each disk and determine if the files are read only. The file creation routines will not attempt to create files on a read-only disk and the automatic updating in the CA file of the last-access time and file status are skipped. This capability has in fact two uses. The first is the use of a pre-written DVD as an AIPS disk on a DVD-ROM drive. The other, however, uses normal disk drives with file read-write privileges set for one user but not another. For example, login "professor" could make his files available to login "student" as read-only by simply setting chmod og-w CA* in the AIPS data areas. Modified on $Date: 2007/10/29 21:05:46 $ Eric W. Greisen |