mirror of
https://github.com/torvalds/linux.git
synced 2026-11-06 21:58:01 +01:00
rnull: configfs: add power to configfs features
features displayed by configfs for rnull was inconsistent with the
actual features available. This correctly exposes `power` as a feature,
which is also consistent with the C null_blk driver.
Fixes: d969d504bc ("rnull: enable configuration via `configfs`")
Signed-off-by: Malte Wechter <maltewechter@gmail.com>
Link: https://msgid.link/20260924-upstream-v7-3-rc3-v2-1-ca56ae7a73e9@gmail.com
Signed-off-by: Andreas Hindborg <a.hindborg@kernel.org>
Link: https://patch.msgid.link/20260929-rust-block-for-v7-4-rc1-b4-v1-8-642a4c1aebd7@kernel.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
7ac697d4a0
commit
0cd698e893
|
|
@ -47,7 +47,7 @@ impl AttributeOperations<0> for Config {
|
|||
|
||||
fn show(_this: &Config, page: &mut [u8; PAGE_SIZE]) -> Result<usize> {
|
||||
let mut writer = kernel::str::Formatter::new(page);
|
||||
writer.write_str("blocksize,size,rotational,irqmode\n")?;
|
||||
writer.write_str("blocksize,size,rotational,irqmode,power\n")?;
|
||||
Ok(writer.bytes_written())
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user