pfs softlinks

Daniel Lorch daniel.lorch at epfl.ch
Sun Apr 4 17:59:47 PDT 2010


Hello,

I have implemented the `readlink' operation in FUSE. I am doing a b-tree
search using the following parameters:

  struct hammer_base_elm key;

  bzero(&key, sizeof(key));

  key.obj_id = ino;
  key.localization = HAMMER_LOCALIZE_MISC;
  key.rec_type = HAMMER_RECTYPE_FIX;
  key.key = HAMMER_FIXKEY_SYMLINK;

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?

The code is here in the function `hreadlink':

  http://github.com/dlorch/hammer-linux/blob/fuse-hammer/hammerread.c

Daniel





More information about the Hammer mailing list