sblock.c (efbf39642633b46e0c4c7bb9493b4887867a08db) | sblock.c (fb14e73cb4062d7272ce6183d748adedd868906b) |
---|---|
1/*- 2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD 3 * 4 * Copyright (c) 2002 Juli Mallett. All rights reserved. 5 * 6 * This software was written by Juli Mallett <jmallett@FreeBSD.org> for the 7 * FreeBSD project. Redistribution and use in source and binary forms, with 8 * or without modification, are permitted provided that the following --- 40 unchanged lines hidden (view full) --- 49 50int 51sbread(struct uufsd *disk) 52{ 53 struct fs *fs; 54 55 ERROR(disk, NULL); 56 | 1/*- 2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD 3 * 4 * Copyright (c) 2002 Juli Mallett. All rights reserved. 5 * 6 * This software was written by Juli Mallett <jmallett@FreeBSD.org> for the 7 * FreeBSD project. Redistribution and use in source and binary forms, with 8 * or without modification, are permitted provided that the following --- 40 unchanged lines hidden (view full) --- 49 50int 51sbread(struct uufsd *disk) 52{ 53 struct fs *fs; 54 55 ERROR(disk, NULL); 56 |
57 if ((errno = sbget(disk->d_fd, &fs, -1)) != 0) { | 57 if ((errno = sbget(disk->d_fd, &fs, STDSB)) != 0) { |
58 switch (errno) { 59 case EIO: 60 ERROR(disk, "non-existent or truncated superblock"); 61 break; 62 case ENOENT: 63 ERROR(disk, "no usable known superblock found"); 64 break; 65 case ENOSPC: --- 144 unchanged lines hidden --- | 58 switch (errno) { 59 case EIO: 60 ERROR(disk, "non-existent or truncated superblock"); 61 break; 62 case ENOENT: 63 ERROR(disk, "no usable known superblock found"); 64 break; 65 case ENOSPC: --- 144 unchanged lines hidden --- |