Opened 17 years ago
Closed 8 years ago
#1879 closed bug (fixed)
Cannot create hard link
Reported by: | kaliber | Owned by: | axeld |
---|---|---|---|
Priority: | low | Milestone: | Unscheduled |
Component: | File Systems/BFS | Version: | R1/pre-alpha1 |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Platform: | All |
Description (last modified by )
~>touch t1 ~>ln t1 t2 /bin/ls: creating hard link `t2' => `t1': General system error
Change History (6)
comment:1 by , 17 years ago
Component: | System/Kernel → File Systems/BFS |
---|---|
Milestone: | R1 → Unscheduled |
Priority: | normal → low |
comment:2 by , 16 years ago
Can this be fixed in BeOS? If not, we should at least modify our ln to report the "unsupported operation".
follow-up: 4 comment:3 by , 16 years ago
Description: | modified (diff) |
---|
Huh? As I wrote, BFS cannot support hard links with its current on-disk representation. The only way to fix it is to make it incompatible, but even that would be a bit problematic with queries (the correct thing would probably be to show all hard links then, not just one, ie. the node must know all of its parents).
In any case, I changed the return code in hrev27501.
comment:4 by , 16 years ago
Replying to axeld:
Huh? As I wrote, BFS cannot support hard links with its current on-disk representation. The only way to fix it is to make it incompatible, but even that would be a bit problematic with queries (the correct thing would probably be to show all hard links then, not just one, ie. the node must know all of its parents).
I agree that it should show all hard links as the user for example, could look for a certain file in order to delete it, and only later he would find out that he actually didn't do what it wanted to. At least that's a possible scenario.
In any case, I changed the return code in hrev27501.
Thanks, that's what I meant when I said (wrongly) to modify ln.
comment:6 by , 8 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
#1036 is not a duplicate; BFS is just one file system, others may implement hard link support -- the rest of the system should support it. In any case, this ticket can be closed.
That's no surprise as BFS cannot support hard links due to its on disk representation.