]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
bhyve/snapshot: rename and bump size of MAX_SNAPSHOT_VMNAME
authorRobert Wing <rew@FreeBSD.org>
Sat, 27 Feb 2021 21:07:35 +0000 (12:07 -0900)
committerJohn Baldwin <jhb@FreeBSD.org>
Thu, 26 Jan 2023 18:45:54 +0000 (10:45 -0800)
commitbcf297e86e16232b2ebb9a7a09d776c09bc3435d
treed336cbbd2f8b4c3df75ab85571db79ae04ab0483
parent2ba5f95607505eccfd8dd3271463fa769809480b
bhyve/snapshot: rename and bump size of MAX_SNAPSHOT_VMNAME

MAX_SNAPSHOT_VMNAME is a macro used to set the size of a character
buffer that stores a filename or the path to a file - this file is used
by the save/restore feature.

Since the file doesn't have anything to do with a vm name, rename
MAX_SNAPSHOT_VMNAME to MAX_SNAPSHOT_FILENAME. Bump the size to PATH_MAX
while here.

Reviewed by: jhb
Differential Revision: https://reviews.freebsd.org/D28879

(cherry picked from commit d656ce199d72f1aeeef1b2e28b4a284c968a8d03)
usr.sbin/bhyve/snapshot.h
usr.sbin/bhyvectl/bhyvectl.c