mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-01-23 00:07:07 +03:00
handle REQ_OP_FLUSH
This commit is contained in:
parent
8aaf7d913a
commit
c7950838b2
@ -79,6 +79,12 @@ void generic_make_request(struct bio *bio)
|
||||
if (ret != 1)
|
||||
die("io_submit err: %s", strerror(-ret));
|
||||
break;
|
||||
case REQ_OP_FLUSH:
|
||||
ret = fsync(bio->bi_bdev->bd_fd);
|
||||
if (ret)
|
||||
die("fsync error: %m");
|
||||
bio_endio(bio);
|
||||
break;
|
||||
default:
|
||||
BUG();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user