Page MenuHomeFreeBSD

bhyve/snapshot: rename and bump size of MAX_SNAPSHOT_VMNAME
Needs ReviewPublic

Authored by rew on Tue, Feb 23, 1:50 AM.

Details

Reviewers
None
Group Reviewers
bhyve
Summary

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. I suggest
renaming this macro to MAX_SNAPSHOT_FILENAME instead.

Since MAX_SNAPSHOT_FILENAME is used to store a filename, NAME_MAX is
probably a better value. I thought about PATH_MAX, as it may be more
appropriate, but I chose the more conservative value of the two, so
NAME_MAX.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint OK
Unit
No Unit Test Coverage
Build Status
Buildable 37290
Build 34179: arc lint + arc unit