Hi Victor,
this seems quite easy to me.... but I don't know how to "move around"
to actually implement/propose the required changes.
To make grub aware of gzip (as it already is of lzjb) the steps should
be:
1. create a new
/onnv-gate/usr/src/grub/grub-0.95/stage2/zfs_gzip.c
starting from
/onnv-gate/usr/src/uts/common/fs/zfs/gzip.c
and removing the gzip_compress funcion
2. add gzip_decompress
at the end of
/onnv-gate/usr/src/grub/grub-0.95/stage2/fsys_zfs.h
3. update the decomp_table function to link "gzip" and all "gzip-
N" (with N=1...9) to the gzip_decompress function in
/onnv-gate/usr/src/grub/grub-0.95/stage2/fsys_zfs.c
What should I do to go on with this changes? Should I start a
"community project"?
Thanks & Rgrds,
Danilo.
Il giorno 16/mag/08, alle ore 12:53, Victor Latushkin ha scritto:
Hi,
using VirtualBox I just tried to move an OpenSolaris 2008.05 boot
environment (ZFS) on a gzip-9 compressed dataset, but I have the
following error from grub:
Error 16: Inconsistent filesystem structure
Googling around I found the same error with ZFS boot and Xen in
July 2007:
http://mail.opensolaris.org/pipermail/xen-discuss/2007-July/000961.html
http://bugs.opensolaris.org/bugdatabase/printableBug.do?
bug_id=6584697
That was fixed.. Is mine another bug?
This is because grub does not support booting from gzip-compressed
datasets now. At this moment only LZJB algorithm is supported,
please see decomp_table here:
http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/grub/grub-0.95/stage2/fsys_zfs.c#65
BTW, using gzip-9 compression I got the whole OpenSolaris image in
< 815MB... The only issue is that it is not booting anymore ;-)
Adding support for gzip may be a candidate for community project.
Hth,
Victor
Danilo Poccia
Senior Systems Engineer
Sun Microsystems Italia S.p.A.
Via G. Romagnosi, 4
Roma 00196 ITALY
Phone +39 06 36708 022
Mobile +39 335 6983999
Fax +39 06 3221969
Email [EMAIL PROTECTED]
Blog http://blogs.sun.com/danilop
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss