2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
8 #include <proto/exec.h>
10 #include "dos_intern.h"
12 /*****************************************************************************
16 #include <proto/dos.h>
17 #include <dos/filesystem.h>
22 AROS_LHA(BPTR
, lock
, D1
),
23 AROS_LHA(struct InfoData
*, parameterBlock
, D2
),
26 struct DosLibrary
*, DOSBase
, 19, Dos
)
30 Get information about a volume in the system.
34 lock -- a lock on any file on the volume for which information
36 parameterBlock -- pointer to an InfoData structure
40 Boolean indicating success or failure. If TRUE (success) the
41 'parameterBlock' is filled with information on the volume.
55 *****************************************************************************/
59 struct IOFileSys iofs
;
60 struct FileHandle
*fh
= (struct FileHandle
*)BADDR(lock
);
62 /* Prepare I/O request. */
63 InitIOFS(&iofs
, FSA_DISK_INFO
, DOSBase
);
65 iofs
.IOFS
.io_Device
= fh
->fh_Device
;
66 iofs
.IOFS
.io_Unit
= fh
->fh_Unit
;
68 iofs
.io_Union
.io_INFO
.io_Info
= parameterBlock
;
72 SetIoErr(iofs
.io_DosError
);
74 if (iofs
.io_DosError
!= 0)