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
This commit is contained in:
parent
76e03cc940
commit
cb28dfb27d
@ -646,6 +646,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);
|
||||
}
|
||||
@ -1026,6 +1028,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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user