fuse_backend_rs/passthrough/overlay.rs
1// Use of this source code is governed by a BSD-style license that can be
2// found in the LICENSE-BSD-3-Clause file.
3
4use super::PassthroughFs;
5use crate::abi::fuse_abi;
6use crate::api::filesystem::Layer;
7
8// Implment Layer trait for PassthroughFs.
9impl Layer for PassthroughFs {
10 // Return root inode of this layer.
11 fn root_inode(&self) -> Self::Inode {
12 fuse_abi::ROOT_ID
13 }
14}