Skip to content

Commit

Permalink
examples: ramdisk: remove unprivileged
Browse files Browse the repository at this point in the history
Firstly unprivileged and recovery can't co-exist.

Secondly on 6.1 kernel, unprivileged isn't supported yet, so may
cause failure.

Signed-off-by: Ming Lei <tom.leiming@gmail.com>
  • Loading branch information
ming1 committed Oct 24, 2023
1 parent 7351418 commit 73d0745
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions examples/ramdisk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,7 @@ fn rd_add_dev(dev_id: i32, buf_addr: u64, size: u64, for_add: bool) {
.nr_queues(1_u16)
.depth(depth)
.dev_flags(dev_flags)
.ctrl_flags(
libublk::sys::UBLK_F_USER_RECOVERY as u64
| libublk::sys::UBLK_F_UNPRIVILEGED_DEV as u64,
)
.ctrl_flags(libublk::sys::UBLK_F_USER_RECOVERY as u64)
.build()
.unwrap();

Expand Down

0 comments on commit 73d0745

Please sign in to comment.