Martin Bochnig wrote:
> On Wed, May 27, 2009 at 8:02 PM, Dave Miner <dminer at opensolaris.org> wrote:
>> Yes, it's still necessary as that issue wasn't dealt with previously, don't
>> know why since it's a one-liner. I have an image of 2009.06's
>> redistributable package set built with a patched lofi and it works nicely.
>> Yeah, you can split things, but then you run into the problem of updating
>> other parts, such as the SMF start methods, that are aware of the existing
>> structure. There's some architecture work to be done to make this a little
>> more adaptable.
>>
>
> Where is Juergen Keil's clofi patch? TIA.
>
>
diff -r 78fafb281255 usr/src/uts/common/io/lofi.c
--- a/usr/src/uts/common/io/lofi.c Thu May 21 22:03:24 2009 -0700
+++ b/usr/src/uts/common/io/lofi.c Wed May 27 14:35:03 2009 -0400
@@ -1665,7 +1665,8 @@
* actual uncompressed data size rather than the
* compressed file size.
*/
- lsp->ls_vp_size = (lsp->ls_comp_index_sz - 2) * lsp->ls_uncomp_seg_sz
+ lsp->ls_vp_size =
+ (u_offset_t)(lsp->ls_comp_index_sz - 2) * lsp->ls_uncomp_seg_sz
+ lsp->ls_uncomp_last_seg_sz;
/*
Dave