Home
last modified time | relevance | path

Searched refs:fswritefd (Results 1 – 9 of 9) sorted by relevance

/freebsd/sbin/fsck_ffs/
H A Dmain.c290 (nflag || (fswritefd = open(filesys, O_WRONLY)) < 0)) { in checkfilesys()
291 fswritefd = -1; in checkfilesys()
313 close(fswritefd); in checkfilesys()
314 fswritefd = -1; in checkfilesys()
360 if (fswritefd != -1) { in checkfilesys()
370 flush(fswritefd, &sblk); in checkfilesys()
389 fswritefd != -1 && getosreldate() >= P_OSREL_CK_CYLGRP) { in checkfilesys()
542 if (sbput(fswritefd, &sblock, sblock.fs_ncg) == 0) in checkfilesys()
H A Dfsutil.c127 if (!persevere && (nflag || (fswritefd < 0 && bkgrdflag == 0))) { in reply()
250 flush(fswritefd, &cgblk); in cglookup()
292 flush(fswritefd, cgbp); in flushentry()
376 flush(fswritefd, bp); in getdatablk()
446 if (fswritefd < 0) { in flush()
477 if (cgput(fswritefd, &sblock, bp->b_un.b_cg) == 0) in flush()
634 if (fswritefd < 0) { in ckfini()
656 flush(fswritefd, &cgbufs[cnt]); in ckfini()
662 flush(fswritefd, &cgblk); in ckfini()
700 flush(fswritefd, bp); in ckfini()
[all …]
H A Dsetup.c93 (nflag || (fswritefd = open(dev, O_WRONLY)) < 0)) { in setup()
94 fswritefd = -1; in setup()
103 if (fswritefd == -1) in setup()
144 fswritefd != -1 && chkrecovery(fsreadfd) == 0 && in setup()
146 saverecovery(fsreadfd, fswritefd); in setup()
493 fswritefd = -1; in sblock_init()
H A Dglobs.c89 int fswritefd; /* file descriptor for writing file system */ variable
146 fswritefd = -1; in fsckinit()
H A Dinode.c207 flush(fswritefd, bp); in iblock()
556 flush(fswritefd, &inobuf); in getnextinode()
660 flush(fswritefd, &inobuf); in setinodebuf()
939 blwrite(fswritefd, copybuf, fsbtodb(fs, blkno), fs->fs_bsize); in snapblkfree()
1037 blwrite(fswritefd, copybuf, fsbtodb(fs, blkno), fs->fs_bsize); in chkcopyonwrite()
1120 flush(fswritefd, &inobuf); in freeinodebuf()
H A Dfsck.h223 if (fswritefd < 0) \
355 extern int fswritefd; /* file descriptor for writing file system */
H A Ddir.c141 (fswritefd < 0 && bkgrdflag == 0)) in check_dirdepth()
328 if (!zflag || fswritefd < 0) in dircheck()
382 if (zflag && fswritefd >= 0) { in dircheck()
H A Dpass5.c636 blzero(fswritefd, fsbtodb(&sblock, start), in clear_blocks()
639 blerase(fswritefd, fsbtodb(&sblock, start), in clear_blocks()
/freebsd/sbin/fsdb/
H A Dfsdb.c128 if (fswritefd < 0) in main()