mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-07-27 12:28:27 +00:00
Merge pull request #2656 from brauner/2018-09-28/fix_btrfs_regression
btrfs: fix btrfs containers
This commit is contained in:
commit
46706d0b67
@ -366,6 +366,7 @@ int btrfs_snapshot(const char *orig, const char *new)
|
|||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
memset(&args, 0, sizeof(args));
|
memset(&args, 0, sizeof(args));
|
||||||
|
args.fd = fd;
|
||||||
retlen = strlcpy(args.name, newname, BTRFS_SUBVOL_NAME_MAX);
|
retlen = strlcpy(args.name, newname, BTRFS_SUBVOL_NAME_MAX);
|
||||||
if (retlen >= BTRFS_SUBVOL_NAME_MAX)
|
if (retlen >= BTRFS_SUBVOL_NAME_MAX)
|
||||||
goto out;
|
goto out;
|
||||||
|
Loading…
Reference in New Issue
Block a user