[PATCH 0/2] Deprecate zfile
OK let's restart this whole architecture thing. Firstly two patches which pass the '-z' parameter to 'file' so it looks inside compressed files. (Thanks to Matt for finding this not-so-obscure option). This means the 'zfile' command is now obsolete. Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-p2v converts physical machines to virtual machines. Boot with a live CD or over the network (PXE) and turn machines into Xen guests. http://et.redhat.com/~rjones/virt-p2v
Patch to add a DeprecatedBy patch to functions to point people to the replacement. *NB* We don't ever remove deprecated functions from the API ... Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-df lists disk usage of guests without needing to install any software inside the virtual machine. Supports Linux and Windows. http://et.redhat.com/~rjones/virt-df/
Richard W.M. Jones wrote:
Patch to add a DeprecatedBy patch to functions to point people to the replacement.
*NB* We don't ever remove deprecated functions from the API ...
Looks ok, but I'm not yet qualified to review ocaml ;-)
Pass the extra -z parameter to file. Deprecate zfile. Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones New in Fedora 11: Fedora Windows cross-compiler. Compile Windows programs, test, and build Windows installers. Over 70 libraries supprt'd http://fedoraproject.org/wiki/MinGW http://www.annexia.org/fedora_mingw
There's one user of zfile (in Lib.pm). This patch removes that use. Note that the new 'file' command which looks inside compressed files will report something like this for an initrd: "ASCII cpio archive (SVR4 with no CRC) (gzip compressed data, from Unix, last modified: Sun May 24 08:26:07 2009)" so checking for /cpio/ seems sufficient. Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones New in Fedora 11: Fedora Windows cross-compiler. Compile Windows programs, test, and build Windows installers. Over 70 libraries supprt'd http://fedoraproject.org/wiki/MinGW http://www.annexia.org/fedora_mingw
Richard W.M. Jones wrote:
There's one user of zfile (in Lib.pm). This patch removes that use.
Note that the new 'file' command which looks inside compressed files will report something like this for an initrd:
"ASCII cpio archive (SVR4 with no CRC) (gzip compressed data, from Unix, last modified: Sun May 24 08:26:07 2009)"
so checking for /cpio/ seems sufficient.
The patch looks fine. ACK
participants (2)
-
Jim Meyering -
Richard W.M. Jones