Open GoogleCodeExporter opened 9 years ago
I noticed this also happens on OS version 10.6.7 (Intel). Directory names
inside Finder appear ok, but the sidebar is where I see it. The problem also
effects the Dock, where the shortcut folders on the far right call it by the
vpool name instead of the filesystem name.
Original comment by druro...@gmail.com
on 25 Apr 2011 at 7:53
same on Lion with 74.1.0.
Original comment by jt...@imperial.ac.uk
on 7 Aug 2011 at 11:17
Diff that apparently fixes this:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff --git a/usr/src/uts/common/fs/zfs/zfs_vfsops.c
b/usr/src/uts/common/fs/zfs/zfs_vfsops.c
index 2d63527..3ff144b 100644
--- a/usr/src/uts/common/fs/zfs/zfs_vfsops.c
+++ b/usr/src/uts/common/fs/zfs/zfs_vfsops.c
@@ -1560,7 +1560,14 @@ zfs_statvfs(vfs_t *vfsp, struct statvfs64 *statp)
if (VFSATTR_IS_ACTIVE(fsap, f_vol_name)) {
spa_t *spa = dmu_objset_spa(zfsvfs->z_os);
spa_config_enter(spa, RW_READER, FTAG);
- strlcpy(fsap->f_vol_name, spa_name(spa), MAXPATHLEN);
+ //strlcpy(fsap->f_vol_name, spa_name(spa), MAXPATHLEN);
+ char *volname = strrchr(vfs_statfs(zfsvfs->z_vfs)->f_mntonname, '/');
+ if (volname && (*(&volname[1]) != '\0')) {
+ strlcpy(fsap->f_vol_name, &volname[1], MAXPATHLEN);
+ } else {
+ strlcpy(fsap->f_vol_name, vfs_statfs(zfsvfs->z_vfs)->f_mntfromname,
+ MAXPATHLEN);
+ }
spa_config_exit(spa, FTAG);
VFSATTR_SET_SUPPORTED(fsap, f_vol_name);
}
Original comment by alex.ble...@gmail.com
on 4 Nov 2013 at 1:48
Thanks Alex, I'll try to test this weekend and put it into the next 74.3.2.
It is good to have you back on board!
Original comment by googlelogin@bjoern-kahl.de
on 22 Nov 2013 at 9:41
Original issue reported on code.google.com by
sbyt...@gmail.com
on 29 Mar 2011 at 2:40Attachments: