Browse files

Return correct VA_NAME in vnop_getattr for dataset mountpoints

* Finder does not like VA_NAME to contain slashes, and getattr
returned full dataset name, rather than the final section.
  • Loading branch information...
lundman committed Dec 22, 2014
1 parent 73ead71 commit 96c4b5c8296e7482abfb6b2f018ef932b68248cf
Showing with 3 additions and 3 deletions.
  1. +3 −3 module/zfs/zfs_vnops_osx_lib.c
@@ -330,11 +330,11 @@ zfs_getattr_znode_unlocked(struct vnode *vp, vattr_t *vap)
* we simply return the fullname, from the statfs mountedfrom
char osname[MAXNAMELEN];
char *r;
dmu_objset_name(zfsvfs->z_os, osname);
r = strrchr(osname, '/');
r ? &r[1] : osname,
VATTR_SET_SUPPORTED(vap, va_name);
dprintf("getattr root returning '%s'\n", vap->va_name);

0 comments on commit 96c4b5c

Please sign in to comment.