diff options
| author | Alejandro Soto <alejandro@34project.org> | 2022-01-07 06:21:25 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2022-01-07 06:21:25 -0600 |
| commit | 0a2e549bb30b93158af2e301ad46b134fd595e31 (patch) | |
| tree | 6cbc5b840b6675eafa2fb24e7dfea75b309cce49 /src/ops/traits.rs | |
| parent | 0f45ef90df6d036aec2077b702fdf465f61c16d6 (diff) | |
Implement Mknod
Diffstat (limited to 'src/ops/traits.rs')
| -rw-r--r-- | src/ops/traits.rs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/ops/traits.rs b/src/ops/traits.rs index e8b8008..d710264 100644 --- a/src/ops/traits.rs +++ b/src/ops/traits.rs @@ -5,7 +5,7 @@ use crate::{ pub use super::{ dir::{ReplyEntries, ReplyFound}, - entry::{RequestLink, RequestTarget}, + entry::{RequestDevice, RequestLink, RequestTarget}, global::ReplyFsInfo, inode::{ReplyBlock, ReplyStat, RequestBlock, RequestForget}, open::{ReplyOpen, ReplyPermissionDenied}, @@ -155,6 +155,13 @@ impl<'o, O: Operation<'o>> Request<'o, O> { O::forget_list(self) } + pub fn device(&self) -> u32 + where + O: RequestDevice<'o>, + { + O::device(self) + } + pub fn target(&self) -> &OsStr where O: RequestTarget<'o>, |
