aboutsummaryrefslogtreecommitdiff
path: root/tools/diag/prtblknos/main.c
diff options
context:
space:
mode:
authorKirk McKusick <mckusick@FreeBSD.org>2020-09-19 20:06:12 +0000
committerKirk McKusick <mckusick@FreeBSD.org>2020-09-19 20:06:12 +0000
commit68d7185b6495e194e399289edc479ab85e5e4f3f (patch)
treed2d2df74ade978b59945997d2866d42852e22183 /tools/diag/prtblknos/main.c
parent9ad1d357e0db6175124257156f035a043c2ced8c (diff)
downloadsrc-68d7185b6495e194e399289edc479ab85e5e4f3f.tar.gz
src-68d7185b6495e194e399289edc479ab85e5e4f3f.zip
The fsdb(8) utility uses the fsck_ffs(8) disk I/O interfaces, so
switch from using libufs's bread() to using fsck_ffs's getdatablk() when importing tools/diag/prtblnos's prtblknos(). Sponsored by: Netflix
Notes
Notes: svn path=/head/; revision=365912
Diffstat (limited to 'tools/diag/prtblknos/main.c')
-rw-r--r--tools/diag/prtblknos/main.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/diag/prtblknos/main.c b/tools/diag/prtblknos/main.c
index c3abb2babad1..25a717760922 100644
--- a/tools/diag/prtblknos/main.c
+++ b/tools/diag/prtblknos/main.c
@@ -39,14 +39,15 @@ union dinode {
struct ufs2_dinode *dp2;
};
-void prtblknos(struct uufsd *disk, union dinode *dp);
+void prtblknos(struct fs *fs, union dinode *dp);
+
+struct uufsd disk;
int
main(argc, argv)
int argc;
char *argv[];
{
- struct uufsd disk;
union dinodep dp;
struct fs *fs;
struct stat sb;
@@ -102,7 +103,7 @@ main(argc, argv)
warn("Read of inode %jd on %s failed: %s",
(intmax_t)inonum, fsname, disk.d_error);
- prtblknos(&disk, (union dinode *)dp.dp1);
+ prtblknos(fs, (union dinode *)dp.dp1);
}
exit(0);
}