Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rutgers!sri-spam!nike!ucbcad!ucbvax!YALE.ARPA!LEICHTER-JERRY From: LEICHTER-JERRY@YALE.ARPA Newsgroups: mod.computers.vax Subject: Re: A QUESTION REGARDING THE ACP-QIO INTERFACE ROUTINES Message-ID: <8611010021.AA12910@ucbvax.berkeley.edu> Date: Fri, 31-Oct-86 19:21:41 EST Article-I.D.: ucbvax.8611010021.AA12910 Posted: Fri Oct 31 19:21:41 1986 Date-Received: Mon, 3-Nov-86 00:00:43 EST Sender: daemon@ucbvax.BERKELEY.EDU Reply-To: Organization: The ARPA Internet Lines: 33 Approved: info-vax@sri-kl.arpa Hi out there in INFO-VAX land. I have a question regarding the file system and doing $QIO's to the disk ACP. I am writing a utility to convert an arbitrary file into an ordinary sequential file of fixed length 512 byte records in such a way that it can be completely reconstructed (including things like the First Free byte and End of file block along with all the record information and file characteristics bits). I will be using this to do things like store indexed files on tape without having to use the backup utility. To do this, I am making use of the ACP-QIO interface stuff from the IO user's guide, and using FIBs and Attribute blocks (ATR$). Now the question: there are a number of Attributes defined but not explained very well. In particular, do any of you file system hackers know what the following Attributes are or do? (IO Users Guide, page 1-19) ATR$C_SEMASK, ATR$C_DIRSEQ, and ATR$C_USERLABEL. ATR$C_USERLABEL is indeed for tapes only. I don't know what the other two are. BTW, you are doing this the hard way. (Almost) all the information you need can be gotten and set with the callable FDL facility. MUCH easier. (The only thing that ISN'T gotten is the longest record size - not the maximum ALLOWED size, but the maximum size any record actually has (the XAB LRL field). You can get this from RMS. Setting it without going to the ACP QIO interface requires a bit of hackery - open the file and write a record of the appropriate size (contents unimportant), then over- write the file. If you are going to populate the file using record-mode access, don't bother and let RMS set the actual correct value - which may not, however, be the same as on the original file - it could be smaller, if longer records were once in the file but have since been deleted.) -- Jerry -------