diff options
author | pjd <pjd@FreeBSD.org> | 2010-08-27 21:31:15 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2010-08-27 21:31:15 +0000 |
commit | 1d0bc060d705ba45fc9b29af20aca11e6f3b09af (patch) | |
tree | bd9edbffec93362aa037d60a1bc1faeec1df8015 /sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ctldir.c | |
parent | 98dd369bddf1a21aa7d27bfe4ae71a30f6024c5d (diff) | |
download | FreeBSD-src-1d0bc060d705ba45fc9b29af20aca11e6f3b09af.zip FreeBSD-src-1d0bc060d705ba45fc9b29af20aca11e6f3b09af.tar.gz |
Use ZFS_CTLDIR_NAME instead of hardcoding ".zfs".
Diffstat (limited to 'sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ctldir.c')
-rw-r--r-- | sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ctldir.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ctldir.c b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ctldir.c index 361b17d..ab1ba02 100644 --- a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ctldir.c +++ b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ctldir.c @@ -965,9 +965,10 @@ zfsctl_snapdir_lookup(ap) dmu_objset_close(snap); domount: mountpoint_len = strlen(dvp->v_vfsp->mnt_stat.f_mntonname) + - strlen("/.zfs/snapshot/") + strlen(nm) + 1; + strlen("/" ZFS_CTLDIR_NAME "/snapshot/") + strlen(nm) + 1; mountpoint = kmem_alloc(mountpoint_len, KM_SLEEP); - (void) snprintf(mountpoint, mountpoint_len, "%s/.zfs/snapshot/%s", + (void) snprintf(mountpoint, mountpoint_len, + "%s/" ZFS_CTLDIR_NAME "/snapshot/%s", dvp->v_vfsp->mnt_stat.f_mntonname, nm); err = mount_snapshot(curthread, vpp, "zfs", mountpoint, snapname, 0); kmem_free(mountpoint, mountpoint_len); |