Deleted Added
full compact
fs.h (122783) fs.h (127818)
1/*
2 * Copyright (c) 1982, 1986, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
33 * @(#)fs.h 8.13 (Berkeley) 3/21/95
1/*
2 * Copyright (c) 1982, 1986, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
33 * @(#)fs.h 8.13 (Berkeley) 3/21/95
34 * $FreeBSD: head/sys/ufs/ffs/fs.h 122783 2003-11-16 07:08:27Z wes $
34 * $FreeBSD: head/sys/ufs/ffs/fs.h 127818 2004-04-03 23:30:59Z mux $
35 */
36
37#ifndef _UFS_FFS_FS_H_
38#define _UFS_FFS_FS_H_
39
40/*
41 * Each disk drive contains some number of filesystems.
42 * A filesystem consists of a number of cylinder groups.

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

479#define cg_chkmagic(cgp) ((cgp)->cg_magic == CG_MAGIC)
480#define cg_inosused(cgp) \
481 ((u_int8_t *)((u_int8_t *)(cgp) + (cgp)->cg_iusedoff))
482#define cg_blksfree(cgp) \
483 ((u_int8_t *)((u_int8_t *)(cgp) + (cgp)->cg_freeoff))
484#define cg_clustersfree(cgp) \
485 ((u_int8_t *)((u_int8_t *)(cgp) + (cgp)->cg_clusteroff))
486#define cg_clustersum(cgp) \
35 */
36
37#ifndef _UFS_FFS_FS_H_
38#define _UFS_FFS_FS_H_
39
40/*
41 * Each disk drive contains some number of filesystems.
42 * A filesystem consists of a number of cylinder groups.

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

479#define cg_chkmagic(cgp) ((cgp)->cg_magic == CG_MAGIC)
480#define cg_inosused(cgp) \
481 ((u_int8_t *)((u_int8_t *)(cgp) + (cgp)->cg_iusedoff))
482#define cg_blksfree(cgp) \
483 ((u_int8_t *)((u_int8_t *)(cgp) + (cgp)->cg_freeoff))
484#define cg_clustersfree(cgp) \
485 ((u_int8_t *)((u_int8_t *)(cgp) + (cgp)->cg_clusteroff))
486#define cg_clustersum(cgp) \
487 ((int32_t *)((u_int8_t *)(cgp) + (cgp)->cg_clustersumoff))
487 ((int32_t *)((uintptr_t)(cgp) + (cgp)->cg_clustersumoff))
488
489/*
490 * Turn filesystem block numbers into disk block addresses.
491 * This maps filesystem blocks to device size blocks.
492 */
493#define fsbtodb(fs, b) ((b) << (fs)->fs_fsbtodb)
494#define dbtofsb(fs, b) ((b) >> (fs)->fs_fsbtodb)
495

--- 109 unchanged lines hidden ---
488
489/*
490 * Turn filesystem block numbers into disk block addresses.
491 * This maps filesystem blocks to device size blocks.
492 */
493#define fsbtodb(fs, b) ((b) << (fs)->fs_fsbtodb)
494#define dbtofsb(fs, b) ((b) >> (fs)->fs_fsbtodb)
495

--- 109 unchanged lines hidden ---