pfs softlinks

Daniel Lorch dlorch at gmail.com
Mon Apr 5 02:10:48 PDT 2010


Hey,

> Regular softlinks (e.g. from snapshots) resolve correctly, but for PFS
> softlinks, the b-tree search won't return anything. What are the
> parameters I need to set?

Ok I got it! The question is not "pfs or regular softlink", but whether
the softlink target name exceeds a certain length. For short names (<=
24 chars), the target name can be found in the `struct
hammer_inode_data', for longer names a data block has to be retrieved.

PFS links still won't resolve correctly, though. I'm getting this:

   lrwxr-xr-x  0 root  wheel  10 Jun  7  2009 master -> @@PFS00001

instead of:

   lrwxr-xr-x  0 root  wheel  10 Jun  7  2009 master ->
@@0xffffffffffffffff:00001

`hammer_vop_readlink' seems to do some dort of pfs-lookup. I'm working
on it :)

Daniel





More information about the Hammer mailing list