mirror of
https://github.com/versity/scoutfs.git
synced 2026-09-12 02:56:12 +00:00
Now that we have the link backrefs let's add support for hard links so we can verify that an inode can have multiple backrefs. (It can.) It's a straight forward refactoring of mknod to let callers either allocate or use existing inodes. We push all the btree item specific work into a function called by mknod and link. The only surprising bit is the small max link count. It's limiting the worst case buffer size for the inode_paths ioctl. Signed-off-by: Zach Brown <zab@versity.com>