Routines dealing with setting/getting file/volume info\r
\r
Copyright (c) 2005 - 2015, Intel Corporation. All rights reserved.<BR>\r
-This program and the accompanying materials are licensed and made available\r
-under the terms and conditions of the BSD License which accompanies this\r
-distribution. The full text of the license may be found at\r
-http://opensource.org/licenses/bsd-license.php\r
-\r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+SPDX-License-Identifier: BSD-2-Clause-Patent\r
\r
\r
\r
\r
#include "Fat.h"\r
\r
+/**\r
+\r
+ Get the volume's info into Buffer.\r
+\r
+ @param Volume - FAT file system volume.\r
+ @param BufferSize - Size of Buffer.\r
+ @param Buffer - Buffer containing volume info.\r
+\r
+ @retval EFI_SUCCESS - Get the volume info successfully.\r
+ @retval EFI_BUFFER_TOO_SMALL - The buffer is too small.\r
+\r
+**/\r
EFI_STATUS\r
FatGetVolumeInfo (\r
IN FAT_VOLUME *Volume,\r
OUT VOID *Buffer\r
);\r
\r
+/**\r
+\r
+ Set the volume's info.\r
+\r
+ @param Volume - FAT file system volume.\r
+ @param BufferSize - Size of Buffer.\r
+ @param Buffer - Buffer containing the new volume info.\r
+\r
+ @retval EFI_SUCCESS - Set the volume info successfully.\r
+ @retval EFI_BAD_BUFFER_SIZE - The buffer size is error.\r
+ @retval EFI_WRITE_PROTECTED - The volume is read only.\r
+ @return other - An error occurred when operation the disk.\r
+\r
+**/\r
EFI_STATUS\r
FatSetVolumeInfo (\r
IN FAT_VOLUME *Volume,\r
IN VOID *Buffer\r
);\r
\r
+/**\r
+\r
+ Set or Get the some types info of the file into Buffer.\r
+\r
+ @param IsSet - TRUE:The access is set, else is get\r
+ @param FHand - The handle of file\r
+ @param Type - The type of the info\r
+ @param BufferSize - Size of Buffer\r
+ @param Buffer - Buffer containing volume info\r
+\r
+ @retval EFI_SUCCESS - Get the info successfully\r
+ @retval EFI_DEVICE_ERROR - Can not find the OFile for the file\r
+\r
+**/\r
EFI_STATUS\r
FatSetOrGetInfo (\r
IN BOOLEAN IsSet,\r