include 'gsos.equ' include 'minix.equ' include 'records.equ' include 'fst.equ' include 'fst.macros' include 'M16.Debug' ; ; VolumeGS / Volume call. ; ; check if the disk is ours. create a VCR or mark it active. ; import id_disk my_dp record dp.__end src ds.l 1 dest ds.l 1 length ds.w 1 IF *>=$d4 THEN AERROR 'dp -- too large.' ENDIF endr import do_file_sys_id import do_ignore entry do_block_size entry do_free_blocks entry do_total_blocks entry do_vol_name_0 entry do_vol_name_1 volume procname export with dp with dev_parms with fst_parms stz tool_error lda fst_parms.dev1_num ; if no device, find a volume by name... beq no_dev jsr id_disk bcc got_it cmp #dup_volume beq dup sec rtl dup ; this is a duplicate volume. ; return the name (and only the name), but also return the error. lda