home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.vms
- Path: sparky!uunet!munnari.oz.au!spool.mu.edu!agate!ames!nsisrv!author.gsfc.nasa.gov!rkoehler
- From: rkoehler@author.gsfc.nasa.gov (Bob Koehler)
- Subject: Re: VMS 5.5 MoveFile primitive
- Message-ID: <4JAN199308550653@author.gsfc.nasa.gov>
- News-Software: VAX/VMS VNEWS 1.4-b1
- Sender: usenet@nsisrv.gsfc.nasa.gov (Usenet)
- Nntp-Posting-Host: author.gsfc.nasa.gov
- Organization: CSC System Sciences Division
- References: <1993Jan4.100117.40@elmrd6.ineab.ikea.se>
- Date: Mon, 4 Jan 1993 13:55:00 GMT
- Lines: 46
-
- In article <1993Jan4.100117.40@elmrd6.ineab.ikea.se>, anos@elmrd6.ineab.ikea.se writes...
-
- >As far as I can see, the QIO completition is SS$_NORMAL for these files, even
- >if they are not moved. Are there any other [documented or undocumented]
- >fields in the FIB that holds additional status from the ACP ?
- >
- > bisw #fib$m_alcon,fib$w_exctl(r0)
- > bbss #fib$v_noplace,fib$w_exctl(r0),20$
- >20$: movl #1,fib$l_mov_svbn(r0)
- > movl #0,fib$l_mov_vbncnt(r0)
- >
- > $qiow_s chan = indexf,- ; Volume channel
- > func = movfunc,- ; MOVEFILE function
- > p1 = fibdsc2 ; Our FIB pointer
- > blbs r0,30$
- > $exit_s r0
- >30$:
- > ret
- >
- >The code fragment above never exits with errors as I said. If anybody out
- >there has any info on additional status fields, please send me a e-mail.
- >
-
- You need to capture and check the status returned in the IOSB. The return
- value from $QIOW indicates only whether you have successfully requested the I/O
- (queued it), like the asynchronous $QIO the actual completion status of the
- I/O is in the first word of the IOSB. For a file that is in use, you will get
- SS$_ACCONFLICT.
-
- There are several other errors which you will also note only if you check the
- IOSB, including SS$_DIRALLOC (file is a directory file), %X1338 (which maps to
- a FILNOTACC message, but is not the same message or value as SS$_FILNOTACC, I
- haven't figured out how that mapping works yet (both the severity and message
- fields are different, but the facility field and message name are the same),
- but it means the file is marked for no move), SS$_FILENUMCHK (file has a
- reserved file number, like INDEXF.SYS), SS$_DEVICEFULL (qed), and
- SS$_FILNOTCNTG (file is marked with the contigius bit, and contiguous space
- cannot be allocated to move it into).
-
- ------------------------------------------------------------------------------
- Bob Koehler | Any illusion to these opinions being other
- rkoehler@author.gsfc.nasa.gov | than just mine alone is just that.
-
- " Life is life, and fun is fun, but it's all so quiet when the goldfish die. "
- - Blixie
-
-