diff options
author | mckusick <mckusick@FreeBSD.org> | 2002-03-15 18:49:47 +0000 |
---|---|---|
committer | mckusick <mckusick@FreeBSD.org> | 2002-03-15 18:49:47 +0000 |
commit | e929f2e4f07e568333e15d0f9fd992f632858bb0 (patch) | |
tree | 51f556e616d556c2c643350a9ffc80fda73ab27c /sys/coda | |
parent | fdd4d414b43758fe722809b27f610baa0b0607e1 (diff) | |
download | FreeBSD-src-e929f2e4f07e568333e15d0f9fd992f632858bb0.zip FreeBSD-src-e929f2e4f07e568333e15d0f9fd992f632858bb0.tar.gz |
Introduce the new 64-bit size disk block, daddr64_t. Change
the bio and buffer structures to have daddr64_t bio_pblkno,
b_blkno, and b_lblkno fields which allows access to disks
larger than a Terabyte in size. This change also requires
that the VOP_BMAP vnode operation accept and return daddr64_t
blocks. This delta should not affect system operation in
any way. It merely sets up the necessary interfaces to allow
the development of disk drivers that work with these larger
disk block addresses. It also allows for the development of
UFS2 which will use 64-bit block addresses.
Diffstat (limited to 'sys/coda')
-rw-r--r-- | sys/coda/coda_vnops.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/coda/coda_vnops.c b/sys/coda/coda_vnops.c index 3c3eee9..646ee34 100644 --- a/sys/coda/coda_vnops.c +++ b/sys/coda/coda_vnops.c @@ -1693,7 +1693,7 @@ coda_bmap(v) struct vnode *vp __attribute__((unused)) = ap->a_vp; /* file's vnode */ daddr_t bn __attribute__((unused)) = ap->a_bn; /* fs block number */ struct vnode **vpp = ap->a_vpp; /* RETURN vp of device */ - daddr_t *bnp __attribute__((unused)) = ap->a_bnp; /* RETURN device block number */ + daddr64_t *bnp __attribute__((unused)) = ap->a_bnp; /* RETURN device block number */ struct thread *td __attribute__((unused)) = curthread; /* upcall decl */ /* locals */ @@ -1706,7 +1706,7 @@ coda_bmap(v) return EINVAL; ret = VOP_BMAP(cp->c_ovp, bn, vpp, bnp, ap->a_runp, ap->a_runb); #if 0 - printf("VOP_BMAP(cp->c_ovp %p, bn %p, vpp %p, bnp %p, ap->a_runp %p, ap->a_runb %p) = %d\n", + printf("VOP_BMAP(cp->c_ovp %p, bn %p, vpp %p, bnp %lld, ap->a_runp %p, ap->a_runb %p) = %d\n", cp->c_ovp, bn, vpp, bnp, ap->a_runp, ap->a_runb, ret); #endif return ret; |