[PATCH] rnull: configfs: add power to configfs features

Malte Wechter posted 1 patch 1 week ago
There is a newer version of this series
drivers/block/rnull/configfs.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] rnull: configfs: add power to configfs features
Posted by Malte Wechter 1 week ago
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.

Signed-off-by: Malte Wechter <maltewechter@gmail.com>
---
 drivers/block/rnull/configfs.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/block/rnull/configfs.rs b/drivers/block/rnull/configfs.rs
index 32c10c3f4d0fd..5f1cdd54cf48a 100644
--- a/drivers/block/rnull/configfs.rs
+++ b/drivers/block/rnull/configfs.rs
@@ -35,7 +35,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())
     }
 }

---
base-commit: fd73f4a6659897191fa0d40695fe370925dd3780
change-id: 20260917-upstream-v7-3-rc3-0db5699dab30

Best regards,
--  
Malte Wechter <maltewechter@gmail.com>
Re: [PATCH] rnull: configfs: add power to configfs features
Posted by Andreas Hindborg 1 week ago
"Malte Wechter" <maltewechter@gmail.com> writes:

> 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.
>
> Signed-off-by: Malte Wechter <maltewechter@gmail.com>

Looks good, please add the Fixes: tag.


Best regards,
Andreas Hindborg