https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=260200

--- Comment #3 from Aleksandr Fedorov <afedo...@freebsd.org> ---
Second way:

diff --git a/sys/dev/md/md.c b/sys/dev/md/md.c
index 308374f49f14..affb0780fa4a 100644
--- a/sys/dev/md/md.c
+++ b/sys/dev/md/md.c
@@ -643,6 +643,9 @@ mdstart_malloc(struct md_s *sc, struct bio *bp)
        case BIO_WRITE:
        case BIO_DELETE:
                break;
+       case BIO_FLUSH:
+               bp->bio_resid = 0;
+               return (0);
        default:
                return (EOPNOTSUPP);
        }

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to