Home | History | Annotate | Download | only in fsck_ffs

Lines Matching refs:sblock

61 	if (readblk(dp, 0, &bp) != sblock->fs_bsize ||
66 quota2_create_blk0(sblock->fs_bsize, bp->b_un.b_buf,
70 sblock->fs_quotafile[type] = ino;
94 sblock->fs_bsize, needswap);
102 if (off < (uint64_t)sblock->fs_bsize) {
106 if (readblk(dp, off, &bp) != sblock->fs_bsize ||
113 (off % sblock->fs_bsize));
149 if (off < sblock->fs_bsize) {
153 if (readblk(dp, off, &bp) != sblock->fs_bsize ||
160 (off % sblock->fs_bsize));
196 uint64_t blk = off / sblock->fs_bsize;
197 uint64_t boff = off % sblock->fs_bsize;
252 if ((sblock->fs_quota_flags & FS_Q2_DO_TYPE(type)) == 0)
254 if (sblock->fs_quotafile[type] != 0) {
257 info = inoinfo(sblock->fs_quotafile[type]);
266 capstrtype, sblock->fs_quotafile[type]);
272 capstrtype, sblock->fs_quotafile[type]);
276 " type %d\n", sblock->fs_quotafile[type],
280 dp = ginode(sblock->fs_quotafile[type]);
287 mode, capstrtype, sblock->fs_quotafile[type]);
298 capstrtype, sblock->fs_quotafile[type]);
303 if (readblk(dp, 0, &hbp) != sblock->fs_bsize ||
305 freeino(sblock->fs_quotafile[type]);
306 sblock->fs_quotafile[type] = 0;
315 sblock->fs_quotafile[type]);
328 freeino(sblock->fs_quotafile[type]);
329 sblock->fs_quotafile[type] = 0;
333 if (sblock->fs_quotafile[type] == 0) {
343 quota2_create_inode(sblock, type);
346 dp = ginode(sblock->fs_quotafile[type]);
347 if (readblk(dp, 0, &hbp) != sblock->fs_bsize ||
354 nq2map = filesize / sblock->fs_bsize;
358 nq2e = (sblock->fs_bsize -
378 nq2e = (sblock->fs_bsize -
395 if (readblk(dp, i * sblock->fs_bsize, &bp)
396 != sblock->fs_bsize || bp->b_errs != 0) {
404 q2h->q2h_free = iswap64(off + i * sblock->fs_bsize);
473 if ((sblock->fs_quota_flags & FS_Q2_DO_TYPE(type)) == 0)
479 dp = ginode(sblock->fs_quotafile[type]);
480 if (readblk(dp, 0, &hbp) != sblock->fs_bsize ||
523 if ((sblock->fs_flags & FS_DOQUOTA2) == 0)
525 if (sblock->fs_quota_magic != Q2_HEAD_MAGIC) {
534 if ((sblock->fs_quota_flags & FS_Q2_DO_TYPE(USRQUOTA)) &&
535 sblock->fs_quotafile[USRQUOTA] == 0) {
539 if ((sblock->fs_quota_flags & FS_Q2_DO_TYPE(GRPQUOTA)) &&
540 sblock->fs_quotafile[GRPQUOTA] == 0) {