This is an automated email from the git hooks/post-receive script.
andyp pushed a commit to branch main
in repository gfs2-utils.
The following commit(s) were added to refs/heads/main by this push:
new f80711b6 mkfs.gfs2: Don't refer to the target as 'it'
f80711b6 is described below
commit f80711b67ea65f9366cfef8df04530977213e82b
Author: Andrew Price <anprice(a)redhat.com>
AuthorDate: Fri Oct 20 11:08:53 2023 +0100
mkfs.gfs2: Don't refer to the target as 'it'
Before:
$ mkfs.gfs2 -p lock_nolock ./testlink
It appears to contain an existing filesystem (xfs)
./testlink is a symbolic link to /home/andy/src/gfs2-utils/test
This will destroy any data on /home/andy/src/gfs2-utils/test
After:
$ mkfs.gfs2 -p lock_nolock ./testlink
./testlink appears to contain an existing filesystem (xfs)
./testlink is a symbolic link to /home/andy/src/gfs2-utils/test
This will destroy any data on /home/andy/src/gfs2-utils/test
Signed-off-by: Andrew Price <anprice(a)redhat.com>
---
gfs2/mkfs/main_mkfs.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/gfs2/mkfs/main_mkfs.c b/gfs2/mkfs/main_mkfs.c
index 5f142b01..fb7b9f05 100644
--- a/gfs2/mkfs/main_mkfs.c
+++ b/gfs2/mkfs/main_mkfs.c
@@ -1177,9 +1177,11 @@ static int probe_contents(struct mkfs_dev *dev)
return 0;
if (!blkid_probe_lookup_value(pr, "TYPE", &contents, NULL)) {
- printf(_("It appears to contain an existing filesystem (%s)\n"), contents);
+ printf(_("%s appears to contain an existing filesystem (%s)\n"),
+ dev->path, contents);
} else if (!blkid_probe_lookup_value(pr, "PTTYPE", &contents, NULL)) {
- printf(_("It appears to contain a partition table (%s).\n"), contents);
+ printf(_("%s appears to contain a partition table (%s).\n"),
+ dev->path, contents);
}
if (!S_ISREG(dev->stat.st_mode)) {
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
Show replies by date