Displaying 3 results from an estimated 3 matches for "parent_subvol".
2013 Dec 17
9
[PATCH] Btrfs-progs: receive: fix the case that we can not find subvolume
...gt;
+#include <sys/mount.h>
#include "ctree.h"
#include "ioctl.h"
@@ -199,6 +200,10 @@ static int process_snapshot(const char *path, const u8 *uuid, u64 ctransid,
char uuid_str[BTRFS_UUID_UNPARSED_SIZE];
struct btrfs_ioctl_vol_args_v2 args_v2;
struct subvol_info *parent_subvol = NULL;
+ char *dev = NULL;
+ char tmp_name[15] = "btrfs-XXXXXX";
+ char tmp_dir[30] = "/tmp";
+ char *full_path = NULL;
ret = finish_subvol(r);
if (ret < 0)
@@ -253,13 +258,47 @@ static int process_snapshot(const char *path, const u8 *uuid, u64 ctransid,
}
}*/
-...
2013 Apr 09
19
[PATCH 00/17] Btrfs-progs: some receive related patches
...trfs-progs: cleanup subvol_uuid_search memory in btrfs send/receive
Btrfs-progs: free memory and close file descriptor in btrfs receive
Btrfs-progs: Set the root-id for received subvols in btrfs receive
Btrfs-progs: btrfs-receive: different levels (amount) of debug output
Btrfs-progs: small parent_subvol cleanup for cmds-receive.c
Btrfs-progs: fix bug in find_root_gen
Btrfs-progs: btrfs-receive optionally honors the end-cmd
Btrfs-progs: don''t allocate one byte too much each time
Btrfs-progs: Fix that BTRFS_FSID_SIZE is used instead of
BTRFS_UUID_SIZE
Btrfs-progs: remove some...
2013 Dec 18
0
[PATCH v2] Btrfs-progs: receive: fix the case that we can not find the subvolume
...ed44107..cce37a7 100644
--- a/cmds-receive.c
+++ b/cmds-receive.c
@@ -257,8 +257,15 @@ static int process_snapshot(const char *path, const u8 *uuid, u64 ctransid,
O_RDONLY | O_NOATIME);
if (args_v2.fd < 0) {
ret = -errno;
- fprintf(stderr, "ERROR: open %s failed. %s\n",
- parent_subvol->path, strerror(-ret));
+ if (errno != ENOENT)
+ fprintf(stderr, "ERROR: open %s failed. %s\n",
+ parent_subvol->path, strerror(-ret));
+ else
+ fprintf(stderr,
+ "It seems that you have changed your default "
+ "subvolume or you specify other subvolum...