mirror of
https://github.com/kdave/btrfs-progs
synced 2025-01-25 15:03:18 +00:00
btrfs-progs: fix minor grammar issues
Remove the extraneous `to' from `Can't access to X'. Signed-off-by: Mitchel Humpherys <mitch.special@gmail.com> Signed-off-by: David Sterba <dsterba@suse.cz> Signed-off-by: Chris Mason <clm@fb.com>
This commit is contained in:
parent
f920dbce8d
commit
ef3f6124f0
@ -298,7 +298,7 @@ static int do_balance(const char *path, struct btrfs_ioctl_balance_args *args,
|
|||||||
|
|
||||||
fd = open_file_or_dir(path, &dirstream);
|
fd = open_file_or_dir(path, &dirstream);
|
||||||
if (fd < 0) {
|
if (fd < 0) {
|
||||||
fprintf(stderr, "ERROR: can't access to '%s'\n", path);
|
fprintf(stderr, "ERROR: can't access '%s'\n", path);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -497,7 +497,7 @@ static int cmd_balance_pause(int argc, char **argv)
|
|||||||
|
|
||||||
fd = open_file_or_dir(path, &dirstream);
|
fd = open_file_or_dir(path, &dirstream);
|
||||||
if (fd < 0) {
|
if (fd < 0) {
|
||||||
fprintf(stderr, "ERROR: can't access to '%s'\n", path);
|
fprintf(stderr, "ERROR: can't access '%s'\n", path);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -538,7 +538,7 @@ static int cmd_balance_cancel(int argc, char **argv)
|
|||||||
|
|
||||||
fd = open_file_or_dir(path, &dirstream);
|
fd = open_file_or_dir(path, &dirstream);
|
||||||
if (fd < 0) {
|
if (fd < 0) {
|
||||||
fprintf(stderr, "ERROR: can't access to '%s'\n", path);
|
fprintf(stderr, "ERROR: can't access '%s'\n", path);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -580,7 +580,7 @@ static int cmd_balance_resume(int argc, char **argv)
|
|||||||
|
|
||||||
fd = open_file_or_dir(path, &dirstream);
|
fd = open_file_or_dir(path, &dirstream);
|
||||||
if (fd < 0) {
|
if (fd < 0) {
|
||||||
fprintf(stderr, "ERROR: can't access to '%s'\n", path);
|
fprintf(stderr, "ERROR: can't access '%s'\n", path);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -673,7 +673,7 @@ static int cmd_balance_status(int argc, char **argv)
|
|||||||
|
|
||||||
fd = open_file_or_dir(path, &dirstream);
|
fd = open_file_or_dir(path, &dirstream);
|
||||||
if (fd < 0) {
|
if (fd < 0) {
|
||||||
fprintf(stderr, "ERROR: can't access to '%s'\n", path);
|
fprintf(stderr, "ERROR: can't access '%s'\n", path);
|
||||||
return 2;
|
return 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -85,7 +85,7 @@ static int cmd_add_dev(int argc, char **argv)
|
|||||||
|
|
||||||
fdmnt = open_file_or_dir(mntpnt, &dirstream);
|
fdmnt = open_file_or_dir(mntpnt, &dirstream);
|
||||||
if (fdmnt < 0) {
|
if (fdmnt < 0) {
|
||||||
fprintf(stderr, "ERROR: can't access to '%s'\n", mntpnt);
|
fprintf(stderr, "ERROR: can't access '%s'\n", mntpnt);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -152,7 +152,7 @@ static int cmd_rm_dev(int argc, char **argv)
|
|||||||
|
|
||||||
fdmnt = open_file_or_dir(mntpnt, &dirstream);
|
fdmnt = open_file_or_dir(mntpnt, &dirstream);
|
||||||
if (fdmnt < 0) {
|
if (fdmnt < 0) {
|
||||||
fprintf(stderr, "ERROR: can't access to '%s'\n", mntpnt);
|
fprintf(stderr, "ERROR: can't access '%s'\n", mntpnt);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -232,7 +232,7 @@ static int cmd_df(int argc, char **argv)
|
|||||||
|
|
||||||
fd = open_file_or_dir(path, &dirstream);
|
fd = open_file_or_dir(path, &dirstream);
|
||||||
if (fd < 0) {
|
if (fd < 0) {
|
||||||
fprintf(stderr, "ERROR: can't access to '%s'\n", path);
|
fprintf(stderr, "ERROR: can't access '%s'\n", path);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
ret = get_df(fd, &sargs);
|
ret = get_df(fd, &sargs);
|
||||||
@ -610,7 +610,7 @@ static int cmd_sync(int argc, char **argv)
|
|||||||
|
|
||||||
fd = open_file_or_dir(path, &dirstream);
|
fd = open_file_or_dir(path, &dirstream);
|
||||||
if (fd < 0) {
|
if (fd < 0) {
|
||||||
fprintf(stderr, "ERROR: can't access to '%s'\n", path);
|
fprintf(stderr, "ERROR: can't access '%s'\n", path);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -879,7 +879,7 @@ static int cmd_resize(int argc, char **argv)
|
|||||||
|
|
||||||
fd = open_file_or_dir(path, &dirstream);
|
fd = open_file_or_dir(path, &dirstream);
|
||||||
if (fd < 0) {
|
if (fd < 0) {
|
||||||
fprintf(stderr, "ERROR: can't access to '%s'\n", path);
|
fprintf(stderr, "ERROR: can't access '%s'\n", path);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1653,7 +1653,7 @@ static int cmd_scrub_status(int argc, char **argv)
|
|||||||
fdmnt = open_path_or_dev_mnt(path, &dirstream);
|
fdmnt = open_path_or_dev_mnt(path, &dirstream);
|
||||||
|
|
||||||
if (fdmnt < 0) {
|
if (fdmnt < 0) {
|
||||||
fprintf(stderr, "ERROR: can't access to '%s'\n", path);
|
fprintf(stderr, "ERROR: can't access '%s'\n", path);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -142,7 +142,7 @@ static int cmd_subvol_create(int argc, char **argv)
|
|||||||
|
|
||||||
fddst = open_file_or_dir(dstdir, &dirstream);
|
fddst = open_file_or_dir(dstdir, &dirstream);
|
||||||
if (fddst < 0) {
|
if (fddst < 0) {
|
||||||
fprintf(stderr, "ERROR: can't access to '%s'\n", dstdir);
|
fprintf(stderr, "ERROR: can't access '%s'\n", dstdir);
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -319,7 +319,7 @@ again:
|
|||||||
|
|
||||||
fd = open_file_or_dir(dname, &dirstream);
|
fd = open_file_or_dir(dname, &dirstream);
|
||||||
if (fd < 0) {
|
if (fd < 0) {
|
||||||
fprintf(stderr, "ERROR: can't access to '%s'\n", dname);
|
fprintf(stderr, "ERROR: can't access '%s'\n", dname);
|
||||||
ret = 1;
|
ret = 1;
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
@ -685,13 +685,13 @@ static int cmd_snapshot(int argc, char **argv)
|
|||||||
|
|
||||||
fddst = open_file_or_dir(dstdir, &dirstream1);
|
fddst = open_file_or_dir(dstdir, &dirstream1);
|
||||||
if (fddst < 0) {
|
if (fddst < 0) {
|
||||||
fprintf(stderr, "ERROR: can't access to '%s'\n", dstdir);
|
fprintf(stderr, "ERROR: can't access '%s'\n", dstdir);
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
fd = open_file_or_dir(subvol, &dirstream2);
|
fd = open_file_or_dir(subvol, &dirstream2);
|
||||||
if (fd < 0) {
|
if (fd < 0) {
|
||||||
fprintf(stderr, "ERROR: can't access to '%s'\n", dstdir);
|
fprintf(stderr, "ERROR: can't access '%s'\n", dstdir);
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -825,7 +825,7 @@ static int cmd_subvol_set_default(int argc, char **argv)
|
|||||||
|
|
||||||
fd = open_file_or_dir(path, &dirstream);
|
fd = open_file_or_dir(path, &dirstream);
|
||||||
if (fd < 0) {
|
if (fd < 0) {
|
||||||
fprintf(stderr, "ERROR: can't access to '%s'\n", path);
|
fprintf(stderr, "ERROR: can't access '%s'\n", path);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user