summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMalte Wechter <maltewechter@gmail.com>2026-09-29 11:34:06 +0200
committerJens Axboe <axboe@kernel.dk>2026-09-29 05:46:56 -0600
commit0cd698e89375d0dfc257f9ae978420aa7fe5359d (patch)
tree4f344879bbcd467192491582f63d5a08acf06b9a
parent7ac697d4a08f01e7aefdeb1f3e1d6f71b2cdac0d (diff)
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: d969d504bc13 ("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>
-rw-r--r--drivers/block/rnull/configfs.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/rnull/configfs.rs b/drivers/block/rnull/configfs.rs
index 24b02256b4cd..34ef96fa125f 100644
--- a/drivers/block/rnull/configfs.rs
+++ b/drivers/block/rnull/configfs.rs
@@ -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())
}
}