TianoCore EDK2 master
Loading...
Searching...
No Matches
Vol.c File Reference

Go to the source code of this file.

Functions

SHELL_STATUS HandleVol (IN CONST CHAR16 *Path, IN CONST BOOLEAN Delete, IN CONST CHAR16 *Name OPTIONAL)
 
SHELL_STATUS EFIAPI ShellCommandRunVol (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
 

Variables

STATIC CONST SHELL_PARAM_ITEM ParamList []
 

Detailed Description

Main file for vol shell level 2 function.

(C) Copyright 2015 Hewlett-Packard Development Company, L.P.
Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file Vol.c.

Function Documentation

◆ HandleVol()

SHELL_STATUS HandleVol ( IN CONST CHAR16 *  Path,
IN CONST BOOLEAN  Delete,
IN CONST CHAR16 *Name  OPTIONAL 
)

Print the info or change the volume info.

Parameters
[in]PathString with starting path.
[in]DeleteTRUE to delete the volume label. FALSE otherwise.
[in]NameNew name to set to the volume label.
Return values
SHELL_SUCCESSThe operation was successful.

Definition at line 24 of file Vol.c.

◆ ShellCommandRunVol()

SHELL_STATUS EFIAPI ShellCommandRunVol ( IN EFI_HANDLE  ImageHandle,
IN EFI_SYSTEM_TABLE SystemTable 
)

Function for 'Vol' command.

Parameters
[in]ImageHandleHandle to the Image (NULL if Internal).
[in]SystemTablePointer to the System Table (NULL if Internal).

Definition at line 215 of file Vol.c.

Variable Documentation

◆ ParamList

Initial value:
= {
{ L"-d", TypeFlag },
{ L"-n", TypeValue },
{ NULL, TypeMax }
}
#define NULL
Definition: Base.h:319
@ TypeValue
A flag that has some data following it with a space (IE "-a 1").
Definition: ShellLib.h:700
@ TypeFlag
A flag that is present or not present only (IE "-a").
Definition: ShellLib.h:699

Definition at line 201 of file Vol.c.