search for: out_umount

Displaying 1 result from an estimated 1 matches for "out_umount".

Did you mean: out_unmount
2013 Dec 17
9
[PATCH] Btrfs-progs: receive: fix the case that we can not find subvolume
.../ + ret = mount(dev, tmp_dir, "btrfs", 0, "-o subvolid=5"); + if (ret) { + fprintf(stderr, "ERROR: fail to mount dev: %s", dev); + goto out; + } + + full_path = calloc(1, strlen(parent_subvol->path) + strlen(tmp_dir)); + if (!full_path) { + ret = -ENOMEM; + goto out_umount; + } + strncat(full_path, tmp_dir, strlen(tmp_dir)); + strncat(full_path, "/", 1); + strncat(full_path, parent_subvol->path, strlen(parent_subvol->path)); + + args_v2.fd = open(full_path, O_RDONLY | O_NOATIME); if (args_v2.fd < 0) { ret = -errno; fprintf(stderr, "ERR...