Opened 12 years ago

Closed 3 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:
Has a Patch: no Platform: All

Description (last modified by axeld)

~>touch t1
~>ln t1 t2
/bin/ls: creating hard link `t2' => `t1': General system error

Change History (6)

comment:1 by axeld, 12 years ago

Component: System/KernelFile Systems/BFS
Milestone: R1Unscheduled
Priority: normallow

That's no surprise as BFS cannot support hard links due to its on disk representation.

comment:2 by emitrax, 11 years ago

Can this be fixed in BeOS? If not, we should at least modify our ln to report the "unsupported operation".

comment:3 by axeld, 11 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.

in reply to:  3 comment:4 by emitrax, 11 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:5 by richienyhus, 10 years ago

Isn't this a dup of #1036 ?

comment:6 by axeld, 3 years ago

Resolution: fixed
Status: newclosed

#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.

Note: See TracTickets for help on using tickets.