Page MenuHomeFreeBSD

D36253.diff
No OneTemporary

D36253.diff

diff --git a/stand/libsa/ufs.c b/stand/libsa/ufs.c
--- a/stand/libsa/ufs.c
+++ b/stand/libsa/ufs.c
@@ -151,6 +151,9 @@
static int ufs_use_sa_read(void *, off_t, void **, int);
/* from ffs_subr.c */
+int ffs_sbget(void *devfd, struct fs **fsp, off_t sblock, int flags,
+ char *filltype,
+ int (*readfunc)(void *devfd, off_t loc, void **bufp, int size));
int ffs_sbsearch(void *, struct fs **, int, char *,
int (*)(void *, off_t, void **, int));
@@ -529,8 +532,8 @@
if (mnt == NULL) {
/* read super block */
twiddle(1);
- if ((rc = ffs_sbsearch(f, &fs, 0, "stand", ufs_use_sa_read))
- != 0) {
+ if ((rc = ffs_sbget(f, &fs, UFS_STDSB, UFS_NOHASHFAIL, "stand",
+ ufs_use_sa_read)) != 0) {
goto out;
}
} else {

File Metadata

Mime Type
text/plain
Expires
Sun, Jan 19, 6:17 PM (19 h, 5 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15954293
Default Alt Text
D36253.diff (757 B)

Event Timeline