-/* $OpenBSD: adutil.c,v 1.4 1996/04/21 22:14:38 deraadt Exp $ */
-/* $NetBSD: adutil.c,v 1.9 1996/04/05 05:06:10 mhitch Exp $ */
+/* $OpenBSD: adutil.c,v 1.5 1996/05/02 13:05:14 deraadt Exp $ */
+/* $NetBSD: adutil.c,v 1.10 1996/04/23 05:18:29 veego Exp $ */
/*
* Copyright (c) 1994 Christian E. Hopps
{
if (adoscksum(bp, amp->nwords)) {
#ifdef DIAGNOSTIC
- printf("adosfs: aget: cksum of blk %d failed\n",
+ printf("adosfs: aget: cksum of blk %ld failed\n",
bp->b_blkno / amp->secsperblk);
#endif
return (-1);
*/
if (adoswordn(bp, 0) != BPT_SHORT) {
#ifdef DIAGNOSTIC
- printf("adosfs: aget: bad primary type blk %d\n",
+ printf("adosfs: aget: bad primary type blk %ld\n",
bp->b_blkno / amp->secsperblk);
#endif
return (-1);
-/* $OpenBSD: advfsops.c,v 1.5 1996/04/21 22:14:39 deraadt Exp $ */
-/* $NetBSD: advfsops.c,v 1.14.2.1 1995/11/10 16:05:16 chopps Exp $ */
+/* $OpenBSD: advfsops.c,v 1.6 1996/05/02 13:05:16 deraadt Exp $ */
+/* $NetBSD: advfsops.c,v 1.19 1996/04/28 06:18:12 mhitch Exp $ */
/*
* Copyright (c) 1994 Christian E. Hopps
namlen++;
}
ap->slinkto[namlen] = 0;
+ ap->fsize = namlen;
break;
default:
brelse(bp);
break;
if (adoscksum(mapbp, amp->nwords)) {
#ifdef DIAGNOSTIC
- printf("adosfs: loadbitmap - cksum of blk %d failed\n",
+ printf("adosfs: loadbitmap - cksum of blk %ld failed\n",
adoswordn(bp, blkix));
#endif
/* XXX Force read-only? Set free space 0? */
-/* $OpenBSD: advnops.c,v 1.4 1996/04/21 22:14:40 deraadt Exp $ */
-/* $NetBSD: advnops.c,v 1.22 1995/08/18 15:14:38 chopps Exp $ */
+/* $OpenBSD: advnops.c,v 1.5 1996/05/02 13:05:18 deraadt Exp $ */
+/* $NetBSD: advnops.c,v 1.28 1996/04/23 05:18:32 veego Exp $ */
/*
* Copyright (c) 1994 Christian E. Hopps
error = EIO; /* OFS needs the complete block */
else if (adoswordn(bp, 0) != BPT_DATA) {
#ifdef DIAGNOSTIC
- printf("adosfs: bad primary type blk %d\n",
+ printf("adosfs: bad primary type blk %ld\n",
bp->b_blkno / amp->secsperblk);
#endif
error=EINVAL;
}
else if ( adoscksum(bp, ap->nwords)) {
#ifdef DIAGNOSTIC
- printf("adosfs: blk %d failed cksum.\n",
+ printf("adosfs: blk %ld failed cksum.\n",
bp->b_blkno / amp->secsperblk);
#endif
error=EINVAL;
goto reterr;
if (adoscksum(flbp, ap->nwords)) {
#ifdef DIAGNOSTIC
- printf("adosfs: blk %d failed cksum.\n", nb);
+ printf("adosfs: blk %ld failed cksum.\n", nb);
#endif
brelse(flbp);
error = EINVAL;
*bnp = adoswordn(flbp, flblkoff) * ap->amp->secsperblk;
} else {
#ifdef DIAGNOSTIC
- printf("flblk offset %d too large in lblk %d blk %d\n",
+ printf("flblk offset %ld too large in lblk %ld blk %d\n",
flblkoff, bn / ap->amp->secsperblk , flbp->b_blkno);
#endif
error = EINVAL;