Deleted Added
full compact
quot.c (108458) quot.c (114009)
1/*
2 * Copyright (C) 1991, 1994 Wolfgang Solfrank.
3 * Copyright (C) 1991, 1994 TooLs GmbH.
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

26 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
27 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
28 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
29 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 */
31
32#ifndef lint
33static const char rcsid[] =
1/*
2 * Copyright (C) 1991, 1994 Wolfgang Solfrank.
3 * Copyright (C) 1991, 1994 TooLs GmbH.
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

26 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
27 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
28 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
29 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 */
31
32#ifndef lint
33static const char rcsid[] =
34 "$FreeBSD: head/usr.sbin/quot/quot.c 108458 2002-12-30 18:21:47Z mike $";
34 "$FreeBSD: head/usr.sbin/quot/quot.c 114009 2003-04-25 10:07:50Z tjr $";
35#endif /* not lint */
36
37#include <sys/param.h>
38#include <sys/stdint.h>
39#include <sys/mount.h>
40#include <sys/disklabel.h>
41#include <sys/time.h>
42#include <ufs/ufs/dinode.h>

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

558 }
559 if (read(fd, superblock, SBLOCKSIZE) != SBLOCKSIZE) {
560 close(fd);
561 return;
562 }
563 fs = (struct fs *)superblock;
564 if ((fs->fs_magic == FS_UFS1_MAGIC ||
565 (fs->fs_magic == FS_UFS2_MAGIC &&
35#endif /* not lint */
36
37#include <sys/param.h>
38#include <sys/stdint.h>
39#include <sys/mount.h>
40#include <sys/disklabel.h>
41#include <sys/time.h>
42#include <ufs/ufs/dinode.h>

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

558 }
559 if (read(fd, superblock, SBLOCKSIZE) != SBLOCKSIZE) {
560 close(fd);
561 return;
562 }
563 fs = (struct fs *)superblock;
564 if ((fs->fs_magic == FS_UFS1_MAGIC ||
565 (fs->fs_magic == FS_UFS2_MAGIC &&
566 fs->fs_sblockloc == numfrags(fs, sblock_try[i]))) &&
566 fs->fs_sblockloc == sblock_try[i])) &&
567 fs->fs_bsize <= MAXBSIZE &&
568 fs->fs_bsize >= sizeof(struct fs))
569 break;
570 }
571 if (sblock_try[i] == -1) {
572 warnx("%s: not a BSD filesystem",name);
573 close(fd);
574 return;

--- 78 unchanged lines hidden ---
567 fs->fs_bsize <= MAXBSIZE &&
568 fs->fs_bsize >= sizeof(struct fs))
569 break;
570 }
571 if (sblock_try[i] == -1) {
572 warnx("%s: not a BSD filesystem",name);
573 close(fd);
574 return;

--- 78 unchanged lines hidden ---