BSIZE 10 kernel/buf.h uchar data[BSIZE]; BSIZE 153 kernel/file.c int max = ((MAXOPBLOCKS - 1 - 1 - 2) / 2) * BSIZE; BSIZE 58 kernel/fs.c memset(bp->data, 0, BSIZE); BSIZE 521 kernel/fs.c uint addr = bmap(ip, off / BSIZE); BSIZE 525 kernel/fs.c m = min(n - tot, BSIZE - off % BSIZE); BSIZE 526 kernel/fs.c if (either_copyout(user_dst, dst, bp->data + (off % BSIZE), m) == -1) { BSIZE 551 kernel/fs.c if (off + n > MAXFILE * BSIZE) BSIZE 555 kernel/fs.c uint addr = bmap(ip, off / BSIZE); BSIZE 559 kernel/fs.c m = min(n - tot, BSIZE - off % BSIZE); BSIZE 560 kernel/fs.c if (either_copyin(bp->data + (off % BSIZE), user_src, src, m) == -1) { BSIZE 27 kernel/fs.h #define NINDIRECT (BSIZE / sizeof(uint)) BSIZE 42 kernel/fs.h #define IPB (BSIZE / sizeof(struct dinode)) BSIZE 48 kernel/fs.h #define BPB (BSIZE * 8) BSIZE 57 kernel/log.c if (sizeof(struct logheader) >= BSIZE) BSIZE 78 kernel/log.c memmove(dbuf->data, lbuf->data, BSIZE); // copy block to dst BSIZE 195 kernel/log.c memmove(to->data, from->data, BSIZE); BSIZE 218 kernel/virtio_disk.c uint64 sector = b->blockno * (BSIZE / 512); BSIZE 256 kernel/virtio_disk.c disk.desc[idx[1]].len = BSIZE; BSIZE 36 mkfs/mkfs.c char zeroes[BSIZE]; BSIZE 78 mkfs/mkfs.c char buf[BSIZE]; BSIZE 88 mkfs/mkfs.c assert((BSIZE % sizeof(struct dinode)) == 0); BSIZE 89 mkfs/mkfs.c assert((BSIZE % sizeof(struct dirent)) == 0); BSIZE 172 mkfs/mkfs.c off = ((off / BSIZE) + 1) * BSIZE; BSIZE 184 mkfs/mkfs.c if (lseek(fsfd, sec * BSIZE, 0) != sec * BSIZE) BSIZE 186 mkfs/mkfs.c if (write(fsfd, buf, BSIZE) != BSIZE) BSIZE 193 mkfs/mkfs.c char buf[BSIZE]; BSIZE 207 mkfs/mkfs.c char buf[BSIZE]; BSIZE 220 mkfs/mkfs.c if (lseek(fsfd, sec * BSIZE, 0) != sec * BSIZE) BSIZE 222 mkfs/mkfs.c if (read(fsfd, buf, BSIZE) != BSIZE) BSIZE 243 mkfs/mkfs.c uchar buf[BSIZE]; BSIZE 248 mkfs/mkfs.c bzero(buf, BSIZE); BSIZE 264 mkfs/mkfs.c char buf[BSIZE]; BSIZE 272 mkfs/mkfs.c fbn = off / BSIZE; BSIZE 290 mkfs/mkfs.c n1 = min(n, (fbn + 1) * BSIZE - off); BSIZE 292 mkfs/mkfs.c bcopy(p, buf + off - (fbn * BSIZE), n1); BSIZE 20 user/usertests.c #define BUFSZ ((MAXOPBLOCKS + 2) * BSIZE) BSIZE 595 user/usertests.c if (write(fd, buf, BSIZE) != BSIZE) { BSIZE 611 user/usertests.c i = read(fd, buf, BSIZE); BSIZE 618 user/usertests.c } else if (i != BSIZE) { BSIZE 1742 user/usertests.c for (sz = 499; sz < (MAXOPBLOCKS + 2) * BSIZE; sz += 471) { BSIZE 2399 user/usertests.c int cc = write(fd, buf, BSIZE); BSIZE 2400 user/usertests.c if (cc < BSIZE) BSIZE 3237 user/usertests.c char buf[BSIZE]; BSIZE 3238 user/usertests.c if (write(fd, buf, BSIZE) != BSIZE) {