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>
21 AROS_LHA(BPTR
, lock
, D1
),
22 AROS_LHA(struct InfoData
*, parameterBlock
, D2
),
25 struct DosLibrary
*, DOSBase
, 19, Dos
)
29 Get information about a volume in the system.
33 lock -- a lock on any file on the volume for which information
34 should be supplied, or 0
35 parameterBlock -- pointer to an InfoData structure
39 Boolean indicating success or failure. If TRUE (success) the
40 'parameterBlock' is filled with information on the volume.
43 Supplying a lock of 0 will return InfoData from the task
44 that is returned from GetFileSysTask().
45 (Usually the boot volumes' filesystem "SYS:")
57 *****************************************************************************/
61 struct FileLock
*fl
= (struct FileLock
*)BADDR(lock
);
64 status
= dopacket2(DOSBase
, NULL
, fl
? fl
->fl_Task
: GetFileSysTask(), ACTION_INFO
, lock
, MKBADDR(parameterBlock
));