Change-Id: Idd9f9ac83e4191e00c883469e6d3a9242e0a6e38
if [ $? != 0 ]; then
fatal_and_exit "-E- remote full $zfs send $current_backup_marker command failed on $hostname" $mailto
fi
+ # Make sure the mount point of our backed up filesystem is mounted under the backups pool not the src filesystem
+ mountpoint=`$zfs get -H mountpoint ${backup_pool}/${remote_fs} | awk '{print $3}'`
+ backup_pool_mountpoint=`$zfs get -H mountpoint ${backup_pool} | awk '{print $3}'`
+ if [[ "$mountpoint" != "${backup_pool_mountpoint}/${remote_fs}" ]]; then
+ $zfs set mountpoint="${backup_pool_mountpoint}/${remote_fs}" "${backup_pool}/${remote_fs}"
+ fi
fi
fi