[pseudo-fs] move validate_flags for files to common module
Flag validation should be deduplicated as much as possible between different implementations of pseudo files. This moves the flag validation function to the common module within file so it can be used by other file implementations. Test: CQ Change-Id: I8b244db3595e2106096581d6d0d31473f4cbcf2b
Showing
- garnet/public/rust/fuchsia-vfs/fuchsia-vfs-pseudo-fs/src/file/common.rs 72 additions, 0 deletions...rust/fuchsia-vfs/fuchsia-vfs-pseudo-fs/src/file/common.rs
- garnet/public/rust/fuchsia-vfs/fuchsia-vfs-pseudo-fs/src/file/mod.rs 1 addition, 0 deletions...ic/rust/fuchsia-vfs/fuchsia-vfs-pseudo-fs/src/file/mod.rs
- garnet/public/rust/fuchsia-vfs/fuchsia-vfs-pseudo-fs/src/file/simple.rs 16 additions, 50 deletions...rust/fuchsia-vfs/fuchsia-vfs-pseudo-fs/src/file/simple.rs
Loading
Please register or sign in to comment