diff options
author | Pedro Martelletto <pedro@cvs.openbsd.org> | 2006-10-03 19:49:07 +0000 |
---|---|---|
committer | Pedro Martelletto <pedro@cvs.openbsd.org> | 2006-10-03 19:49:07 +0000 |
commit | d412cab808d2c2bb6a48febc7f472ecda52afd54 (patch) | |
tree | 2ddbe6cda31edaa0df65a54acb57a2d7375118cb /sys/isofs | |
parent | 872b83967c445e3e387687916d4cf7f7a83e2137 (diff) |
Introduce daddr64_t and use it for physical block numbers
Okay weingart@, "I'm game with putting my name on it" dlg@
Diffstat (limited to 'sys/isofs')
-rw-r--r-- | sys/isofs/cd9660/cd9660_vnops.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/sys/isofs/cd9660/cd9660_vnops.c b/sys/isofs/cd9660/cd9660_vnops.c index 670f7b41b41..4f35cea258e 100644 --- a/sys/isofs/cd9660/cd9660_vnops.c +++ b/sys/isofs/cd9660/cd9660_vnops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cd9660_vnops.c,v 1.34 2006/01/25 21:15:55 mickey Exp $ */ +/* $OpenBSD: cd9660_vnops.c,v 1.35 2006/10/03 19:49:06 pedro Exp $ */ /* $NetBSD: cd9660_vnops.c,v 1.42 1997/10/16 23:56:57 christos Exp $ */ /*- @@ -400,13 +400,16 @@ cd9660_ioctl(v) struct ucred *a_cred; struct proc *a_p; } */ *ap = v; - daddr_t *block; + daddr32_t *blkp; + daddr64_t blk; + int error; switch (ap->a_command) { case FIBMAP: - block = (daddr_t *)ap->a_data; - - return (VOP_BMAP(ap->a_vp, *block, NULL, block, 0)); + blkp = (daddr32_t *) ap->a_data; + error = VOP_BMAP(ap->a_vp, *blkp, NULL, &blk, 0); + *blkp = (daddr32_t) blk; + return (error); default: return (ENOTTY); } |