struct btrfs_receive *r = user;
char *full_path = path_cat(r->full_subvol_path, path);
- if (g_verbose >= 1)
+ if (g_verbose >= 2)
fprintf(stderr, "mkfile %s\n", path);
ret = creat(full_path, 0600);
struct btrfs_receive *r = user;
char *full_path = path_cat(r->full_subvol_path, path);
- if (g_verbose >= 1)
+ if (g_verbose >= 2)
fprintf(stderr, "mkdir %s\n", path);
ret = mkdir(full_path, 0700);
struct btrfs_receive *r = user;
char *full_path = path_cat(r->full_subvol_path, path);
- if (g_verbose >= 1)
+ if (g_verbose >= 2)
fprintf(stderr, "mknod %s mode=%llu, dev=%llu\n",
path, mode, dev);
struct btrfs_receive *r = user;
char *full_path = path_cat(r->full_subvol_path, path);
- if (g_verbose >= 1)
+ if (g_verbose >= 2)
fprintf(stderr, "mkfifo %s\n", path);
ret = mkfifo(full_path, 0600);
struct btrfs_receive *r = user;
char *full_path = path_cat(r->full_subvol_path, path);
- if (g_verbose >= 1)
+ if (g_verbose >= 2)
fprintf(stderr, "mksock %s\n", path);
ret = mknod(full_path, 0600 | S_IFSOCK, 0);
struct btrfs_receive *r = user;
char *full_path = path_cat(r->full_subvol_path, path);
- if (g_verbose >= 1)
+ if (g_verbose >= 2)
fprintf(stderr, "symlink %s -> %s\n", path, lnk);
ret = symlink(lnk, full_path);
char *full_from = path_cat(r->full_subvol_path, from);
char *full_to = path_cat(r->full_subvol_path, to);
- if (g_verbose >= 1)
+ if (g_verbose >= 2)
fprintf(stderr, "rename %s -> %s\n", from, to);
ret = rename(full_from, full_to);
char *full_path = path_cat(r->full_subvol_path, path);
char *full_link_path = path_cat(r->full_subvol_path, lnk);
- if (g_verbose >= 1)
+ if (g_verbose >= 2)
fprintf(stderr, "link %s -> %s\n", path, lnk);
ret = link(full_link_path, full_path);
struct btrfs_receive *r = user;
char *full_path = path_cat(r->full_subvol_path, path);
- if (g_verbose >= 1)
+ if (g_verbose >= 2)
fprintf(stderr, "unlink %s\n", path);
ret = unlink(full_path);
struct btrfs_receive *r = user;
char *full_path = path_cat(r->full_subvol_path, path);
- if (g_verbose >= 1)
+ if (g_verbose >= 2)
fprintf(stderr, "rmdir %s\n", path);
ret = rmdir(full_path);
struct btrfs_receive *r = user;
char *full_path = path_cat(r->full_subvol_path, path);
- if (g_verbose >= 1) {
+ if (g_verbose >= 2) {
fprintf(stderr, "set_xattr %s - name=%s data_len=%d "
"data=%.*s\n", path, name, len,
len, (char*)data);
struct btrfs_receive *r = user;
char *full_path = path_cat(r->full_subvol_path, path);
- if (g_verbose >= 1) {
+ if (g_verbose >= 2) {
fprintf(stderr, "remove_xattr %s - name=%s\n",
path, name);
}
struct btrfs_receive *r = user;
char *full_path = path_cat(r->full_subvol_path, path);
- if (g_verbose >= 1)
+ if (g_verbose >= 2)
fprintf(stderr, "truncate %s size=%llu\n", path, size);
ret = truncate(full_path, size);
struct btrfs_receive *r = user;
char *full_path = path_cat(r->full_subvol_path, path);
- if (g_verbose >= 1)
+ if (g_verbose >= 2)
fprintf(stderr, "chmod %s - mode=0%o\n", path, (int)mode);
ret = chmod(full_path, mode);
struct btrfs_receive *r = user;
char *full_path = path_cat(r->full_subvol_path, path);
- if (g_verbose >= 1)
+ if (g_verbose >= 2)
fprintf(stderr, "chown %s - uid=%llu, gid=%llu\n", path,
uid, gid);
char *full_path = path_cat(r->full_subvol_path, path);
struct timespec tv[2];
- if (g_verbose >= 1)
+ if (g_verbose >= 2)
fprintf(stderr, "utimes %s\n", path);
tv[0] = *at;