Dump an image filesystem
dumpifs [-bmrvxz] [-d dir] [-f file] [-u file] [-V file] image [file...]
QNX Neutrino, Linux, Mac, Microsoft Windows
Suppose your IFS buildfile contains a symbolic link from /abc/def/foo to /xyz/bar. On the development host, /xyz/bar will likely not point to the expected object. If you specify -r, and the filesystem is extracted to $HOME/ifsroot, access to $HOME/ifsroot/abc/def/foo is redirected to $HOME/ifsroot/abc/def/../../xyz/bar, which collapses to the canonical form of $HOME/ifsroot/xyz/bar and keeps the symbolic link functional.
Effectively, for each directory component in the symbolic link's own path, a ../ is prepended to its target path.
The dumpifs utility dumps the contents of an image filesystem.
You can also use dumpifs with the -f or -x option to extract files from the image filesystem. The files are extracted into the current working directory, or into the directory you specify with the -d option. If you specify -b, the files are put directly into the directory; if you don't specify -b, the files are extracted to the pathname specified in the image.
This program uses the OpenSSL library for cryptography services.
$ dumpifs shell.ifs
   Offset     Size  Name
        0      288  *.boot
      288      100  Startup-header flags1=0x1 paddr_bias=0
      388     6008  startup.*
     6390       59  Image-header mountpoint=/
     63ec      1ac  Image-directory
     ----     ----  Root-dirent
     6598       8c  proc/boot/data1
     6624       5c  proc/boot/.script
     6680       14  proc/boot/data2
     7000    2c02c  proc/boot/procnto
    34000    12ad0  proc/boot/devc-con
    47000     b66c  proc/boot/esh
    53000     d7fc  proc/boot/ls
    61000     7394  proc/boot/cat
Checksums: image=0x6d5fb484 startup=0x274d7c89
This utility will not work on an image that has been built using a filter such as srec (for more information on image filters, see mkifs). If you wanted to run dumpifs on such an image, you would build the image omitting the filter stage in your mkifs buildfile (you would then need to run the filter by hand later in order to make a viable image for your target).