|
From: | Seth Goldberg |
Subject: | Re: [PATCH] Support for unknown size and not seekable files |
Date: | Fri, 14 Jan 2011 16:37:13 -0800 (PST) |
User-agent: | Alpine 2.00 (GSO 1167 2008-08-23) |
Hi,Thanks for this. What's the goal of this patch? It seems that it marks the size and unknown until it gets to the metadata that indicates the file's size, then updates the size to the correct size, right? Where do you see this being useful? It would seems that even with this patch, one would still need to read a gzipped file twice to be able to get its size, then allocate a contiguous buffer large enough to hold the entire thing (if that is desired (which, in some cases, it is :))).
Thanks, --S Quoting Szymon Janc, who wrote the following on Sat, 15 Jan 2011:
Hello, First patch adds support for GRUB_FILE_SIZE_UNKNOW file size in grub_file_read and grub_file_seek functions. Second and third add GRUB_FILE_SIZE_UNKNOW support for gzio and xzio when dealing with not easily seekable files. Should be usefull for reading compressed files over pxe. Testing and comments are welcome :) -- Szymon K. Janc address@hidden // GG: 1383435
[Prev in Thread] | Current Thread | [Next in Thread] |