diff options
| author | Aleksandr Fedorov <afedorov@FreeBSD.org> | 2022-02-17 19:21:56 +0000 |
|---|---|---|
| committer | Aleksandr Fedorov <afedorov@FreeBSD.org> | 2022-02-23 10:57:44 +0000 |
| commit | f40063d329775a7c7bdac90afd261b683ad2fec3 (patch) | |
| tree | fdd4d7aca7daa916de1e5a1fb3dfc43c63bec7e9 | |
| parent | c02608826f3c84f766749ae05b8e09214030cf1a (diff) | |
| download | src-f40063d329775a7c7bdac90afd261b683ad2fec3.tar.gz src-f40063d329775a7c7bdac90afd261b683ad2fec3.zip | |
md(4): Add dummy support of the BIO_FLUSH command for malloc and swap
backend.
PR: 260200
Reported by: editor@callfortesting.org
Reviewed by: vmaffione (mentor), markj
Approved by: vmaffione (mentor), markj
Differential Revision: https://reviews.freebsd.org/D34260
(cherry picked from commit cb28dfb27d12f1cbd7831f370c01493c01d74b10)
| -rw-r--r-- | sys/dev/md/md.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/md/md.c b/sys/dev/md/md.c index de0cc9626954..f44a2e940faa 100644 --- a/sys/dev/md/md.c +++ b/sys/dev/md/md.c @@ -644,6 +644,8 @@ mdstart_malloc(struct md_s *sc, struct bio *bp) case BIO_WRITE: case BIO_DELETE: break; + case BIO_FLUSH: + return (0); default: return (EOPNOTSUPP); } @@ -1033,6 +1035,8 @@ mdstart_swap(struct md_s *sc, struct bio *bp) case BIO_WRITE: case BIO_DELETE: break; + case BIO_FLUSH: + return (0); default: return (EOPNOTSUPP); } |
