about summary refs log tree commit diff
path: root/tvix/store/src/fs/inodes.rs
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2023-11-07T10·39+0200
committerflokli <flokli@flokli.de>2023-11-07T14·52+0000
commita778b855d21f5b33396a8a3e4fef724bd84fb956 (patch)
treea5c4c5b88edd8e56ae82e761b860b5bd34d4a307 /tvix/store/src/fs/inodes.rs
parent3ae48465faf3acd52dd15908e8d3321e75fb9d8a (diff)
refactor(tvix/store/fs): simplify name_in_root_to_ino_and_data r/6977
Have it return libc::ENOENT errors rather than an Option<…>.

Also avoid having to traverse inode_data multiple times, by synthesizing
the Arc<…> on our own in the insert case. In that case, the data is
quite small, so cloning it is faster than traversing a second time.

Change-Id: I7ab14bac8bb23859ed8d166a12070d4f4749b6d4
Reviewed-on: https://cl.tvl.fyi/c/depot/+/9981
Tested-by: BuildkiteCI
Reviewed-by: Connor Brewster <cbrewster@hey.com>
Diffstat (limited to 'tvix/store/src/fs/inodes.rs')
0 files changed, 0 insertions, 0 deletions