OpenSolaris

Printable Version Enter a New Search
Bug ID 4765069
Synopsis RFE: lofiadm should be VTOC aware
State 3-Accepted (Yes, that is a problem)
Category:Subcategory kernel:driver-lofi
Keywords VTOC | devname | lofiadm | partitions | slices
Reported Against 5.9 , 5.10 , s10_59 , snv_37
Duplicate Of
Introduced In
Commit to Fix
Fixed In
Release Fixed
Related Bugs 4816560 , 5049501 , 6413127 , 6432692 , 6558532 , 6218220
Submit Date 18-October-2002
Last Update Date 10-July-2008
Description
lofiadm(1m) should be VTOC aware.

There should be a mechanism for using lofiadm(1m) with ISO images
which have multiple slices.  ie lofiadm should have a switch to
tell it to read the VTOC and create an approriate number of
/dev/lofi devices.

The current limitation can be seen when using Solaris 9 ISO images.  These
have the Tools/Boot directory located on s1 via a symlink:

  lrwxrwxrwx   1 root     other         11 Apr 15  2002 Boot -> ../../../s1

In the equivalent directory on Solaris 8:

  drwxr-xr-x  17 root     other       4096 Dec 18  2001 Boot

The workaround at present is to identify the location of s1 within
the image and dd(1) the bytes out.
Work Around
Use dd(1m) to extract partition of interest.

Method for identifying location vary:

  . First dd VTOC and interpret.
  . Mount each successive slice in turn and use size from df to work
    out offset for dd.
Comments
N/A