audk/ShellPkg
Songpeng Li b85c8fb4d4 ShellPkg/TftpDynamicCommand: Change file writing method in tftp
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1433

v2: Remove an unused variable.

Current logic of shell tftp download was writing file after tftp
download finished, when the file is large, it looks like the shell
tftp command hanged after download was finished. To improve
end-user experience, the solution is using split file writing
instead.

This patch update the code to open and close file inside
DownloadFile(), and save each packet to file within callback
function CheckPacket().

Since AllocatePage() is no-longer needed, This patch can also
remove the memory limitation. The download file can be larger
than system free memory now.

Cc: Jaben Carsey <jaben.carsey@intel.com>
Cc: Ruiyu Ni <ruiyu.ni@intel.com>
Cc: Wu Jiaxin <jiaxin.wu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Songpeng Li <songpeng.li@intel.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
Reviewed-by: Wu Jiaxin <jiaxin.wu@intel.com>
2019-01-11 09:33:24 +08:00
..
Application ShellPkg-ShellApp: Provide fully-qualified path to shell scripts 2018-11-05 10:52:51 +08:00
DynamicCommand ShellPkg/TftpDynamicCommand: Change file writing method in tftp 2019-01-11 09:33:24 +08:00
Include ShellPkg: Remove ShellPkg wrapper header files 2018-11-22 14:24:23 +08:00
Library ShellPkg/UefiShellDebug1CommandsLib: Remove the unused function CharToUpper 2018-12-18 11:38:51 +08:00
ShellPkg.dec ShellPkg: Clean up source files 2018-06-28 11:19:51 +08:00
ShellPkg.dsc ShellPkg: Remove DxeSmmPerformanceLib 2018-08-06 13:58:54 +08:00