setup.c (8ebae128befbc3cca0ba1597e46fe12c0340663d) setup.c (fb14e73cb4062d7272ce6183d748adedd868906b)
1/*-
2 * SPDX-License-Identifier: BSD-3-Clause
3 *
4 * Copyright (c) 1980, 1986, 1993
5 * The Regents of the University of California. All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 313 unchanged lines hidden (view full) ---

322 */
323int
324readsb(int listerr)
325{
326 off_t super;
327 int bad, ret;
328 struct fs *fs;
329
1/*-
2 * SPDX-License-Identifier: BSD-3-Clause
3 *
4 * Copyright (c) 1980, 1986, 1993
5 * The Regents of the University of California. All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 313 unchanged lines hidden (view full) ---

322 */
323int
324readsb(int listerr)
325{
326 off_t super;
327 int bad, ret;
328 struct fs *fs;
329
330 super = bflag ? bflag * dev_bsize : -1;
330 super = bflag ? bflag * dev_bsize : STDSB;
331 readcnt[sblk.b_type]++;
332 if ((ret = sbget(fsreadfd, &fs, super)) != 0) {
333 switch (ret) {
334 case EINVAL:
335 /* Superblock check-hash failed */
336 return (0);
337 case ENOENT:
338 if (bflag)

--- 218 unchanged lines hidden ---
331 readcnt[sblk.b_type]++;
332 if ((ret = sbget(fsreadfd, &fs, super)) != 0) {
333 switch (ret) {
334 case EINVAL:
335 /* Superblock check-hash failed */
336 return (0);
337 case ENOENT:
338 if (bflag)

--- 218 unchanged lines hidden ---