FreeBSD Bugzilla – Attachment 225842 Details for
Bug 254530
ZFS (base) receive fails to receive zvol dataset if dataset already exist
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch to libzfs_sendrecv.c
patch.patch (text/plain), 717 bytes, created by
titus m
on 2021-06-16 05:33:43 UTC
(
hide
)
Description:
patch to libzfs_sendrecv.c
Filename:
MIME Type:
Creator:
titus m
Created:
2021-06-16 05:33:43 UTC
Size:
717 bytes
patch
obsolete
>--- libzfs_sendrecv.c.orig 2021-06-15 22:30:12.935572000 +0300 >+++ libzfs_sendrecv.c 2021-06-15 22:29:17.128199000 +0300 >@@ -3403,6 +3403,7 @@ > zc.zc_name); > return (zfs_error(hdl, EZFS_EXISTS, errbuf)); > } >+ int zc_name_orig_len = strlen(zc.zc_name); > if (is_volume && > ioctl(hdl->libzfs_fd, ZFS_IOC_DATASET_LIST_NEXT, > &zc) == 0) { >@@ -3414,6 +3415,8 @@ > return (zfs_error(hdl, EZFS_WRONG_PARENT, > errbuf)); > } >+ if(is_volume) >+ zc.zc_name[zc_name_orig_len] = '\0'; > } > > if ((zhp = zfs_open(hdl, zc.zc_name,
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 254530
: 225842