搜尋此網誌

2012年9月6日 星期四

EFI Shell2.0 commands -- setsize(調整檔案的大小)

Adjusts the size of a file.

setsize size file [file...]

Options: 
file    The file or files which will have its size adjusted.
size    The desired size of the file once it is adjusted.  Setting the size smaller than the actual data contained in this file will truncate this data.
Description:
This command adjusts the size of a particular target file.  When adjusting the size of a file, it should be noted that it will automatically truncate or extend the size of a file based on the passed in parameters. If the file does not exist, it will be created.
Return Value:
  • SHELL_SUCCESS          The action was completed as requested.
  • SHELL_VOLUME_FULL      The media has insufficient space to complete the request.
  • SHELL_INVALID_PARAMETER One of the passed in parameters was incorrectly formatted or its value was out of bounds.

沒有留言:

張貼留言