Hi Steffen,
Steffen Grunewald wrote on 05/13/2015 02:49 PM:
> On Wed, May 13, 2015 at 12:53:20PM +0200, Christian Mohrbacher wrote:
>> currently, BeeGFS/FhGFS only supports hard links within the same
>> directory. But for most use cases it's sufficient to actually create
>> a symlink instead of a hard link, so maybe the client option
>> "sysCreateHardlinksAsSymlinks" might be useful for you?
>
> While they in a few cases may be a workaround, symlinks have completely
> different semantics.
sure, that's why this is not done by default, but only when you enable
it explicitly in the config.
> The absence of cross-directory hardlinks results
> in, for example, rsnapshot not working
...or in creating actual copies instead of hardlinks. But the solution
here could of course be to simply put the snapshots on some cheap, slow,
big other filer that supports cross-dir hardlinks instead of putting
them on your performance-optimized BeeGFS.
> I don't know anything about BeeGFS's internals, but I'm wondering
> what's the difference between same-directory and cross-directory
> hardlinking, in terms of the FS.
For performance reasons, BeeGFS avoids creation of separate inodes for
files and instead inlines the file inode information into the dentry.
Modifying the code to be compatible with cross-dir hardlinks is of
course generally possible, but not trivial due to this optimization.
> What would happen if I create a
> hardlink in the same directory, and afterwards move the result to
> another place?
That move operation will be refused with an error code. So it's not like
BeeGFS would silently turn hardlinks into symlinks in this case, if
that's what you meant.
> Posix breakage
Your favorite web search engine will confirm that the whole operating
system is not "fully posix compliant", but "mostly posix compliant".
> Is there still hope?
Sure. See this simply as a feature that we haven't added yet, because
(even though it's requested every now and then) there are other things
that were/are more important to our customers.
Best regards,
Sven Breuner
Fraunhofer