1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE-BSD-3-Clause file.

use super::PassthroughFs;
use crate::abi::fuse_abi;
use crate::api::filesystem::Layer;

// Implment Layer trait for PassthroughFs.
impl Layer for PassthroughFs {
    // Return root inode of this layer.
    fn root_inode(&self) -> Self::Inode {
        fuse_abi::ROOT_ID
    }
}