1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-19 10:53:58 +00:00
freebsd/lib/libdisk
John Baldwin 707e509a1e 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
2004-03-16 17:07:06 +00:00
..
blocks.c Style(9) improvements. 2002-10-31 07:56:40 +00:00
change.c Fixed pc98 partition type. 2004-01-27 15:25:33 +00:00
chunk.c Change libdisk and sysinstall to use d_addr_t rather than u_long for disk 2004-03-16 17:07:06 +00:00
create_chunk.c Change libdisk and sysinstall to use d_addr_t rather than u_long for disk 2004-03-16 17:07:06 +00:00
disk.c o Move Int_Open_Disk() from disk.c to open_disk.c for use by all 2003-11-02 08:39:08 +00:00
libdisk.3 Change libdisk and sysinstall to use d_addr_t rather than u_long for disk 2004-03-16 17:07:06 +00:00
libdisk.h Change libdisk and sysinstall to use d_addr_t rather than u_long for disk 2004-03-16 17:07:06 +00:00
Makefile style.Makefile: 2004-02-23 20:07:47 +00:00
open_disk.c Change libdisk and sysinstall to use d_addr_t rather than u_long for disk 2004-03-16 17:07:06 +00:00
open_ia64_disk.c Fix two bugs in the calculation of the last LBA of the GPT covered 2003-11-03 06:24:48 +00:00
rules.c Change libdisk and sysinstall to use d_addr_t rather than u_long for disk 2004-03-16 17:07:06 +00:00
tst01.c Compile-out support for allfreebsd, dedicate, sanitize and bios on 2003-11-02 08:01:18 +00:00
write_alpha_disk.c Use sized cast matching the sized pointer. 2003-04-04 16:59:39 +00:00
write_amd64_disk.c Libdisk does not need to include <sys/diskslice.h> any more. 2003-04-04 16:35:16 +00:00
write_disk.c Do not fill in d_ncylinders, d_ntracks and d_nsectors in the disklabel 2003-11-02 08:07:25 +00:00
write_i386_disk.c Libdisk does not need to include <sys/diskslice.h> any more. 2003-04-04 16:35:16 +00:00
write_ia64_disk.c In Write_Disk(), fix the non-error case where we returned to the 2004-01-30 20:52:54 +00:00
write_pc98_disk.c Libdisk does not need to include <sys/diskslice.h> any more. 2003-04-04 16:35:16 +00:00
write_sparc64_disk.c Fix compilation errors. 2003-04-22 05:34:35 +00:00