Changeset 3068


Ignore:
Timestamp:
Jul 18, 2012, 4:56:18 AM (21 months ago)
Author:
quozl
Message:

disklabel - support ISO 9660 images on non-optical drives such as USB flash and hard drives, by using a logical sector offset to the primary volume descriptor that is consistent with the 512 byte sector size on these devices. ISO 9660:1999 6.1.2 specifies minimum logical sector size, and an offset of 16 sectors to the primary volume descriptor, but does not specify arrangement of data on devices that are not a CD-ROM. Common use is to place the image on other devices in the same way it appears on CD-ROM. #12018

Location:
ofw
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ofw/disklabel/common.fth

    r2418 r3068  
    20200 instance value sector-offset 
    2121 
    22 \ For ISO-9660 CD-ROMs 
     22\ For ISO-9660 CD-ROMs, ISO-9660 flash or hard drives, and GPT 
    2323: read-hw-sector  ( sector# -- ) 
    2424   sector-offset +  /sector um*  " seek" $call-parent  abort" Seek failed" 
  • ofw/fs/cdfs/partition.fth

    r1738 r3068  
    55\ system volume, as determined by reading the primary volume descriptor. 
    66: iso-9660?  ( -- flag ) 
    7    d# 16  ['] read-hw-sector catch  if  drop false exit  then 
     7   d# 16  /sector h# 200 =  if  4*  then 
     8   ['] read-hw-sector catch  if  drop false exit  then 
    89   sector-buf c@ 1 =  sector-buf 1+ 5 " CD001"  $=  and  dup  if   ( flag ) 
    910      iso-type to partition-type 
Note: See TracChangeset for help on using the changeset viewer.