We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ed5155 commit dd2974fCopy full SHA for dd2974f
kernel-1100/src/mount.rs
@@ -59,7 +59,13 @@ impl okf::mount::Filesystem for Filesystem {
59
/// Implementation of [`okf::mount::FsStats`] for 11.00.
60
#[repr(C)]
61
pub struct FsStats {
62
- pad: [u8; 0x1d8],
+ pad1: [u8; 0x128],
63
+ mounted_from: [c_char; 88],
64
+ pad2: [u8; 0x58],
65
}
66
-impl okf::mount::FsStats for FsStats {}
67
+impl okf::mount::FsStats for FsStats {
68
+ fn mounted_from(&self) -> *const c_char {
69
+ self.mounted_from.as_ptr()
70
+ }
71
+}
src/mount/stats.rs
@@ -1,2 +1,7 @@
1
+use core::ffi::c_char;
2
+
3
/// Represents `statfs` structure.
-pub trait FsStats: Sized {}
4
+pub trait FsStats: Sized {
5
+ /// Returns `f_mntfromname`.
6
+ fn mounted_from(&self) -> *const c_char;
7
0 commit comments