diff options
author | yu, larry liu - Sun Microsystems - Beijing China <Larry.Liu@Sun.COM> | 2009-06-17 19:20:05 +0800 |
---|---|---|
committer | yu, larry liu - Sun Microsystems - Beijing China <Larry.Liu@Sun.COM> | 2009-06-17 19:20:05 +0800 |
commit | 65908c77dfc02644236ba18bffe67b5ed6f23135 (patch) | |
tree | 90d89cc047a404c32e2537573bee1d8566a562e3 /usr/src/cmd/format/disk_generic.c | |
parent | 6ccacea7930c58faadb6224d30e24c5658b67c81 (diff) | |
download | illumos-gate-65908c77dfc02644236ba18bffe67b5ed6f23135.tar.gz |
PSARC 2008/769 Multiple disk sector size support.
6710930 Solaris needs to support large sector size hard drive disk
Diffstat (limited to 'usr/src/cmd/format/disk_generic.c')
-rw-r--r-- | usr/src/cmd/format/disk_generic.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/src/cmd/format/disk_generic.c b/usr/src/cmd/format/disk_generic.c index 3aa205b3c0..d053660a04 100644 --- a/usr/src/cmd/format/disk_generic.c +++ b/usr/src/cmd/format/disk_generic.c @@ -19,7 +19,7 @@ * CDDL HEADER END */ /* - * Copyright 2008 Sun Microsystems, Inc. All rights reserved. + * Copyright 2009 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ @@ -121,8 +121,8 @@ generic_rdwr(dir, fd, blkno, secnt, bufaddr, flags, xfercntp) offset_t tmpsec, status, tmpblk; int ret; - tmpsec = (offset_t)secnt * UBSIZE; - tmpblk = (offset_t)blkno * UBSIZE; + tmpsec = (offset_t)secnt * cur_blksz; + tmpblk = (offset_t)blkno * cur_blksz; #if defined(_FIRMWARE_NEEDS_FDISK) /* Use "p0" file to seek/read the data */ |