cvs commit: src/lib/libdisk chunk.c create_chunk.c libdisk.3 libdisk.h open_disk.c rules.c src/usr.sbin/sysinstall disks.c label.c

John Baldwin jhb at FreeBSD.org
Tue Mar 16 09:07:07 PST 2004


jhb         2004/03/16 09:07:06 PST

  FreeBSD src repository

  Modified files:
    lib/libdisk          chunk.c create_chunk.c libdisk.3 
                         libdisk.h open_disk.c rules.c 
    usr.sbin/sysinstall  disks.c label.c 
  Log:
  Change libdisk and sysinstall to use d_addr_t rather than u_long for disk
  addresses.  For arch's with 64-bit longs, this is a nop, but for i386 this
  allows sysinstall to properly handle disks and filesystems > 1 TB.
  
  Changes from the original patch include:
  - Use d_addr_t rather than inventing a blkcnt type based on int64_t.
  - Use strtoimax() rather than strtoull() to parse d_addr_t's from config
    files.
  - Use intmax_t casts and %jd rather than %llu to printf d_addr_t values.
  
  Tested on:      i386
  Tested by:      kuriyama
  Submitted by:   julian
  MFC after:      1 month
  
  Revision  Changes    Path
  1.50      +14 -12    src/lib/libdisk/chunk.c
  1.84      +5 -5      src/lib/libdisk/create_chunk.c
  1.31      +16 -16    src/lib/libdisk/libdisk.3
  1.60      +17 -17    src/lib/libdisk/libdisk.h
  1.2       +3 -3      src/lib/libdisk/open_disk.c
  1.33      +20 -19    src/lib/libdisk/rules.c
  1.150     +21 -16    src/usr.sbin/sysinstall/disks.c
  1.143     +37 -32    src/usr.sbin/sysinstall/label.c


More information about the cvs-src mailing list