diff options
author | jmallett <jmallett@FreeBSD.org> | 2002-10-22 19:25:58 +0000 |
---|---|---|
committer | jmallett <jmallett@FreeBSD.org> | 2002-10-22 19:25:58 +0000 |
commit | df1f55a8e733bbc4e0c100fe74528b50da43f5f1 (patch) | |
tree | edec396707e3cbc26393e92c4ed04f24c28b2624 /lib/libufs/libufs.h | |
parent | 29ef1b50256ce52a37a3a7684a99ad9ed8360030 (diff) | |
download | FreeBSD-src-df1f55a8e733bbc4e0c100fe74528b50da43f5f1.zip FreeBSD-src-df1f55a8e733bbc4e0c100fe74528b50da43f5f1.tar.gz |
Add the concept of a per-disk error string, and a function which prints it
along with the errno, if one is set.
Diffstat (limited to 'lib/libufs/libufs.h')
-rw-r--r-- | lib/libufs/libufs.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/libufs/libufs.h b/lib/libufs/libufs.h index 569d8a0..6f7dc7e 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 *); |