diff options
-rw-r--r-- | bch_bindgen/src/bcachefs.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bch_bindgen/src/bcachefs.rs b/bch_bindgen/src/bcachefs.rs index 7b8a03df..366c7332 100644 --- a/bch_bindgen/src/bcachefs.rs +++ b/bch_bindgen/src/bcachefs.rs @@ -3,6 +3,8 @@ #![allow(non_snake_case)] #![allow(unused)] +use crate::c; + include!(concat!(env!("OUT_DIR"), "/bcachefs.rs")); use bitfield::bitfield; @@ -59,8 +61,8 @@ impl bch_sb { uuid::Uuid::from_bytes(self.user_uuid.b) } - pub fn number_of_devices(&self) -> u8 { - self.nr_devices + pub fn number_of_devices(&self) -> u32 { + unsafe { c::bch2_sb_nr_devices(self) } } /// Get the nonce used to encrypt the superblock |