The list of siblings of a TMPFS node should be a per-link property rather than per-node property
|Reported by:||Jakub Jermář||Owned by:||Jakub Jermář|
|Blocker for:||Depends on:|
TMPFS seems to be broken with respect to linking directories.
A command like:
mv /app /foo
will create a new link for /app directory called /foo, and fail to unlink /app because it's not empty (this should actually be made possible as the number of links is 2 now). As a result, there will be two links under / pointing to the same node. However, since the sibling list is a per-node property, it will contain a cycle.
As each link can have a different set of siblings, it looks like the sibling list should be moved out of tmpfs_dentry_t, and put probably to tmpfs_name_t.
Change History (3)
comment:1 by , 15 years ago
|Summary:||The list of siblings of a TMPFS should be a per-link property rather than per-node property → The list of siblings of a TMPFS node should be a per-link property rather than per-node property|