2 Copyright © 1995-2013, The AROS Development Team. All rights reserved.
8 #include <proto/exec.h>
10 #include "dos_intern.h"
12 /*****************************************************************************
15 #include <proto/dos.h>
17 AROS_LH2(LONG
, Relabel
,
20 AROS_LHA(CONST_STRPTR
, drive
, D1
),
21 AROS_LHA(CONST_STRPTR
, newname
, D2
),
24 struct DosLibrary
*, DOSBase
, 120, Dos
)
27 Change names of a volume.
30 drive - The name of the device to rename (including the ':').
31 newname - The new name for the device (without the ':').
34 A boolean telling whether the name change was successful or not.
46 *****************************************************************************/
50 struct PacketHelperStruct phs
;
51 LONG status
= DOSFALSE
;
53 if (!getdevpacketinfo(DOSBase
, drive
, newname
, &phs
))
56 status
= dopacket1(DOSBase
, NULL
, phs
.port
, ACTION_RENAME_DISK
, phs
.name
);
58 freepacketinfo(DOSBase
, &phs
);