search for: mnt_fd

Displaying 2 results from an estimated 2 matches for "mnt_fd".

Did you mean: max_fd
2013 Apr 09
19
[PATCH 00/17] Btrfs-progs: some receive related patches
Most fixes are trivial. The one from Alex is fixing a real bug that several users have reported. Alex sent the patch half a year ago and it was not yet integrated. The patch "Use /proc/mounts instead of /etc/mtab" is a repost. The patch "btrfs-receive optionally honors the end-cmd" is a preparation step to allow backup tools to multiplex a single communication stream (e.g. a
2013 Dec 17
9
[PATCH] Btrfs-progs: receive: fix the case that we can not find subvolume
...; + 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, } }*/ - args_v2.fd = openat(r->mnt_fd, parent_subvol->path, - O_RDONLY | O_NOATIME); + ret = mnt_to_dev(r->root_path, &dev); + if (ret) + goto out; + if (!mktemp(tmp_name)) { + fprintf(stderr, "ERROR: fail to generate a tmp file\n"); + goto out; + } + strncat(tmp_dir, "/", 1); + strncat(tmp_dir, tmp_n...