|
|
| version 1.4, 2003/08/07 21:17:41 | version 1.5, 2004/04/11 18:17:21 |
|---|---|
| Line 60 int hpfs_concatalsec (struct hpfsmount | Line 60 int hpfs_concatalsec (struct hpfsmount |
| * Map file offset to disk offset. hpfsnode have to be locked. | * Map file offset to disk offset. hpfsnode have to be locked. |
| */ | */ |
| int | int |
| hpfs_hpbmap(hp, bn, bnp, runp) | hpfs_hpbmap(struct hpfsnode *hp, daddr_t bn, daddr_t *bnp, int *runp) |
| struct hpfsnode *hp; | |
| daddr_t bn; | |
| daddr_t *bnp; | |
| int *runp; | |
| { | { |
| struct buf *bp; | struct buf *bp; |
| alblk_t * abp; | alblk_t * abp; |
| Line 159 dive: | Line 155 dive: |
| * AlBlk is initialized to contain AlLeafs. | * AlBlk is initialized to contain AlLeafs. |
| */ | */ |
| int | int |
| hpfs_allocalsec ( | hpfs_allocalsec(struct hpfsmount *hpmp, lsn_t parlsn, struct buf **bpp) |
| struct hpfsmount *hpmp, | |
| lsn_t parlsn, | |
| struct buf **bpp) | |
| { | { |
| alsec_t * asp; | alsec_t * asp; |
| struct buf * bp; | struct buf * bp; |
| Line 211 hpfs_allocalsec ( | Line 204 hpfs_allocalsec ( |
| * TOGETHER WITH FIXING ALL CHILDREN'S AlSecs (THEY HAVE GOT NEW PARENT). | * TOGETHER WITH FIXING ALL CHILDREN'S AlSecs (THEY HAVE GOT NEW PARENT). |
| */ | */ |
| int | int |
| hpfs_splitalsec ( | hpfs_splitalsec(struct hpfsmount *hpmp, alsec_t *asp, alsec_t **naspp, |
| struct hpfsmount *hpmp, | struct buf **nbpp) |
| alsec_t *asp, | |
| alsec_t **naspp, | |
| struct buf **nbpp) | |
| { | { |
| alsec_t *nasp; | alsec_t *nasp; |
| struct buf *nbp; | struct buf *nbp; |
| Line 263 hpfs_splitalsec ( | Line 253 hpfs_splitalsec ( |
| * aanp[0].an_nextoff = aanp[1].an_nextoff; | * aanp[0].an_nextoff = aanp[1].an_nextoff; |
| */ | */ |
| int | int |
| hpfs_concatalsec ( | hpfs_concatalsec(struct hpfsmount *hpmp, alsec_t *as0p, alsec_t *as1p, |
| struct hpfsmount *hpmp, | alnode_t *aanp) |
| alsec_t *as0p, | |
| alsec_t *as1p, | |
| alnode_t *aanp) | |
| { | { |
| alblk_t *ab0p; | alblk_t *ab0p; |
| alblk_t *ab1p; | alblk_t *ab1p; |
| Line 306 hpfs_concatalsec ( | Line 293 hpfs_concatalsec ( |
| * DOESN'T SET AlSec'S PARENT LSN. | * DOESN'T SET AlSec'S PARENT LSN. |
| */ | */ |
| int | int |
| hpfs_alblk2alsec ( | hpfs_alblk2alsec(struct hpfsmount *hpmp, alblk_t *abp, alsec_t **naspp, |
| struct hpfsmount *hpmp, | struct buf **nbpp) |
| alblk_t *abp, | |
| alsec_t **naspp, | |
| struct buf **nbpp) | |
| { | { |
| alsec_t *nasp; | alsec_t *nasp; |
| alblk_t *nabp; | alblk_t *nabp; |
| Line 343 hpfs_alblk2alsec ( | Line 327 hpfs_alblk2alsec ( |
| * | * |
| */ | */ |
| int | int |
| hpfs_addextent ( | hpfs_addextent(struct hpfsmount *hpmp, struct hpfsnode *hp, u_long len) |
| struct hpfsmount *hpmp, | |
| struct hpfsnode *hp, | |
| u_long len) | |
| { | { |
| alblk_t *rabp; | alblk_t *rabp; |
| alnode_t ranp[2]; | alnode_t ranp[2]; |
| Line 553 retry: | Line 534 retry: |
| * concatenate new block! If we can't find one, then... | * concatenate new block! If we can't find one, then... |
| */ | */ |
| int | int |
| hpfs_addextentr ( | hpfs_addextentr(struct hpfsmount *hpmp, /* Mix info */ |
| struct hpfsmount *hpmp, /* Mix info */ | lsn_t rlsn, /* LSN containing AlSec */ |
| lsn_t rlsn, /* LSN containing AlSec */ | alleaf_t *ralp, /* AlLeaf to insert */ |
| alleaf_t *ralp, /* AlLeaf to insert */ | alnode_t *ranp, /* New AlNodes' values */ |
| alnode_t *ranp, /* New AlNodes' values */ | u_long *resp) /* Mix returning info */ |
| u_long *resp) /* Mix returning info */ | |
| { | { |
| struct buf *rbp; | struct buf *rbp; |
| alsec_t *rasp; | alsec_t *rasp; |
| Line 754 fail: | Line 734 fail: |
| * THE TREE. | * THE TREE. |
| */ | */ |
| int | int |
| hpfs_truncatealblk ( | hpfs_truncatealblk(struct hpfsmount *hpmp, alblk_t *abp, lsn_t bn, int *resp) |
| struct hpfsmount *hpmp, | |
| alblk_t *abp, | |
| lsn_t bn, | |
| int *resp) | |
| { | { |
| int error; | int error; |
| alleaf_t *alp; | alleaf_t *alp; |