Ticket #1879 (new bug)

Opened 9 months ago

Last modified 2 months ago

Cannot create hard link

Reported by: kaliber Owned by: axeld
Priority: low Milestone: Unscheduled
Component: File Systems/BFS Version: R1 development
Cc: Blocked By:
Platform: All Blocking:

Description (last modified by axeld) (diff)

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

Change History

  Changed 9 months ago by axeld

  • priority changed from normal to low
  • component changed from System/Kernel to File Systems/BFS
  • milestone changed from R1 to Unscheduled

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

  Changed 2 months ago by emitrax

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

follow-up: ↓ 4   Changed 2 months ago by axeld

  • 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 r27501.

in reply to: ↑ 3   Changed 2 months ago by emitrax

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

Thanks, that's what I meant when I said (wrongly) to modify ln.

Note: See TracTickets for help on using tickets.