Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F178092743
D36253.1795938048.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
845 B
Referenced Files
None
Subscribers
None
D36253.1795938048.diff
View Options
Index: stand/libsa/ufs.c
===================================================================
--- stand/libsa/ufs.c
+++ 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,10 +532,11 @@
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 {
struct open_file *sbf;
struct file *sfp;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 29, 7:40 AM (4 h, 31 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42086236
Default Alt Text
D36253.1795938048.diff (845 B)
Attached To
Mode
D36253: stand: Search less agressively for UFS super block
Attached
Detach File
Event Timeline