mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-03-10 00:00:04 +03:00
bch_sb::number_of_devices() now calls proper c helper
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
95e8cddd3b
commit
c616061a93
@ -3,6 +3,8 @@
|
|||||||
#![allow(non_snake_case)]
|
#![allow(non_snake_case)]
|
||||||
#![allow(unused)]
|
#![allow(unused)]
|
||||||
|
|
||||||
|
use crate::c;
|
||||||
|
|
||||||
include!(concat!(env!("OUT_DIR"), "/bcachefs.rs"));
|
include!(concat!(env!("OUT_DIR"), "/bcachefs.rs"));
|
||||||
|
|
||||||
use bitfield::bitfield;
|
use bitfield::bitfield;
|
||||||
@ -59,8 +61,8 @@ impl bch_sb {
|
|||||||
uuid::Uuid::from_bytes(self.user_uuid.b)
|
uuid::Uuid::from_bytes(self.user_uuid.b)
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn number_of_devices(&self) -> u8 {
|
pub fn number_of_devices(&self) -> u32 {
|
||||||
self.nr_devices
|
unsafe { c::bch2_sb_nr_devices(self) }
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Get the nonce used to encrypt the superblock
|
/// Get the nonce used to encrypt the superblock
|
||||||
|
Loading…
Reference in New Issue
Block a user