Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F131650366
D28879.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
883 B
Referenced Files
None
Subscribers
None
D28879.diff
View Options
diff --git a/usr.sbin/bhyve/snapshot.h b/usr.sbin/bhyve/snapshot.h
--- a/usr.sbin/bhyve/snapshot.h
+++ b/usr.sbin/bhyve/snapshot.h
@@ -43,7 +43,7 @@
#include <ucl.h>
#define BHYVE_RUN_DIR "/var/run/bhyve/"
-#define MAX_SNAPSHOT_VMNAME 100
+#define MAX_SNAPSHOT_FILENAME PATH_MAX
struct vmctx;
@@ -67,7 +67,7 @@
struct checkpoint_op {
unsigned int op;
- char snapshot_filename[MAX_SNAPSHOT_VMNAME];
+ char snapshot_filename[MAX_SNAPSHOT_FILENAME];
};
struct checkpoint_thread_info {
diff --git a/usr.sbin/bhyvectl/bhyvectl.c b/usr.sbin/bhyvectl/bhyvectl.c
--- a/usr.sbin/bhyvectl/bhyvectl.c
+++ b/usr.sbin/bhyvectl/bhyvectl.c
@@ -1739,7 +1739,7 @@
struct checkpoint_op op;
op.op = code;
- strlcpy(op.snapshot_filename, file, MAX_SNAPSHOT_VMNAME);
+ strlcpy(op.snapshot_filename, file, MAX_SNAPSHOT_FILENAME);
return (send_checkpoint_op_req(ctx, &op));
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Oct 11, 1:22 AM (16 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
23546395
Default Alt Text
D28879.diff (883 B)
Attached To
Mode
D28879: bhyve/snapshot: rename and bump size of MAX_SNAPSHOT_VMNAME
Attached
Detach File
Event Timeline
Log In to Comment