aboutsummaryrefslogtreecommitdiff
path: root/lib/libufs/libufs.h
diff options
context:
space:
mode:
authorJuli Mallett <jmallett@FreeBSD.org>2002-10-22 19:25:58 +0000
committerJuli Mallett <jmallett@FreeBSD.org>2002-10-22 19:25:58 +0000
commit8b8cd35523c520d960d4cab5ea6d684ed3d7bc74 (patch)
treeedec396707e3cbc26393e92c4ed04f24c28b2624 /lib/libufs/libufs.h
parent103bcded1d409f83c05d181c5b2bd5d4bee0f413 (diff)
downloadsrc-8b8cd35523c520d960d4cab5ea6d684ed3d7bc74.tar.gz
src-8b8cd35523c520d960d4cab5ea6d684ed3d7bc74.zip
Add the concept of a per-disk error string, and a function which prints it
along with the errno, if one is set.
Notes
Notes: svn path=/head/; revision=105737
Diffstat (limited to 'lib/libufs/libufs.h')
-rw-r--r--lib/libufs/libufs.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/libufs/libufs.h b/lib/libufs/libufs.h
index 569d8a004863..6f7dc7eea5d1 100644
--- a/lib/libufs/libufs.h
+++ b/lib/libufs/libufs.h
@@ -73,6 +73,7 @@ struct uufsd {
char d_sb[MAXBSIZE];
/* superblock as buffer */
} d_sbunion;
+ const char *d_error; /* human readable disk error */
#define d_fs d_sbunion.d_fs
#define d_sb d_sbunion.d_sb
};
@@ -90,6 +91,11 @@ ssize_t bread(struct uufsd *, ufs2_daddr_t, void *, size_t);
ssize_t bwrite(struct uufsd *, ufs2_daddr_t, const void *, size_t);
/*
+ * error.c
+ */
+void libufs_printerror(struct uufsd *);
+
+/*
* inode.c
*/
int getino(struct uufsd *, void **, ino_t, int *);