Skip to content

Commit

Permalink
libublk: set default cache type as 'write back'
Browse files Browse the repository at this point in the history
'write back' is easily to be implemented, and that is exactly what the
current code is doing.

Signed-off-by: Ming Lei <[email protected]>
  • Loading branch information
ming1 committed Nov 17, 2024
1 parent 5e9c436 commit ed74ba0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/io.rs
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,7 @@ impl UblkDev {
self.tgt.params = super::sys::ublk_params {
types: super::sys::UBLK_PARAM_TYPE_BASIC,
basic: super::sys::ublk_param_basic {
attrs: super::sys::UBLK_ATTR_VOLATILE_CACHE,
logical_bs_shift: 9,
physical_bs_shift: 12,
io_opt_shift: 12,
Expand Down

0 comments on commit ed74ba0

Please sign in to comment.