Date: Tue, 16 Mar 2004 09:07:06 -0800 (PST) From: John Baldwin <jhb@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: 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 Message-ID: <200403161707.i2GH76qZ087362@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200403161707.i2GH76qZ087362>