diff options
author | pjd <pjd@FreeBSD.org> | 2006-10-31 21:11:21 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2006-10-31 21:11:21 +0000 |
commit | d5cc90945161b6ca3448116aa23c9ae0b75a6e94 (patch) | |
tree | bc3a2953fbf55d1341923bd813f3f8dd4551b7bd /sys/kern | |
parent | 60bc6ceecb65e600a49d7751c905d60ad41a380b (diff) | |
download | FreeBSD-src-d5cc90945161b6ca3448116aa23c9ae0b75a6e94.zip FreeBSD-src-d5cc90945161b6ca3448116aa23c9ae0b75a6e94.tar.gz |
Add a new I/O request - BIO_FLUSH, which basically tells providers below to
flush their caches. For now will mostly be used by disks to flush their
write cache.
Sponsored by: home.pl
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/subr_disk.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/kern/subr_disk.c b/sys/kern/subr_disk.c index 56bab3e..c8ed9ce 100644 --- a/sys/kern/subr_disk.c +++ b/sys/kern/subr_disk.c @@ -43,6 +43,7 @@ disk_err(struct bio *bp, const char *what, int blkdone, int nl) case BIO_WRITE: printf("cmd=write "); break; case BIO_DELETE: printf("cmd=delete "); break; case BIO_GETATTR: printf("cmd=getattr "); break; + case BIO_FLUSH: printf("cmd=flush "); break; default: printf("cmd=%x ", bp->bio_cmd); break; } sn = bp->bio_pblkno; |