]> git.proxmox.com Git - mirror_edk2.git/commit
ArmPkg/SemihostFs: Implement SetInfo() and handle seeking past the end of a file
authorRonald Cron <ronald.cron@arm.com>
Mon, 27 Oct 2014 10:42:51 +0000 (10:42 +0000)
committeroliviermartin <oliviermartin@Edk2>
Mon, 27 Oct 2014 10:42:51 +0000 (10:42 +0000)
commitdaefd574f9d6c62df9149197af48219dc7cabf59
tree8561e483a0de99d32ef12abd96e325d7349edcfe
parent11bbc25789c65514005c1ed7eaca38c095e0187a
ArmPkg/SemihostFs: Implement SetInfo() and handle seeking past the end of a file

Implement the resizing of the file with SetInfo().
Implement the renaming of a file with SetInfo().
Allow to seek past the end of a file.

The support of file resizing implies a rework of the read, write
and close functions. So does the support of seeking past the end
of a file. That why those two changes are done in the same patch.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ronald Cron <ronald.cron@arm.com>
Reviewed-By: Olivier Martin <olivier.martin@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16244 6f19259b-4bc3-4df7-8a09-765794883524
ArmPkg/Filesystem/SemihostFs/Arm/SemihostFs.c
ArmPkg/Filesystem/SemihostFs/Arm/SemihostFs.h