Deleted Added
full compact
diskmbr.h (103675) diskmbr.h (103683)
1/*
2 * Copyright (c) 1987, 1988, 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 * @(#)disklabel.h 8.2 (Berkeley) 7/10/94
1/*
2 * Copyright (c) 1987, 1988, 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 * @(#)disklabel.h 8.2 (Berkeley) 7/10/94
34 * $FreeBSD: head/sys/sys/diskmbr.h 103675 2002-09-20 12:52:03Z phk $
34 * $FreeBSD: head/sys/sys/diskmbr.h 103683 2002-09-20 14:14:37Z phk $
35 */
36
37#ifndef _SYS_DISKLABEL_H_
38#define _SYS_DISKLABEL_H_
39
40#ifndef _KERNEL
41#include <sys/types.h>
42#endif

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

394struct bio_queue_head;
395
396int bounds_check_with_label(struct bio *bp, struct disklabel *lp,
397 int wlabel);
398dev_t dkmodpart(dev_t dev, int part);
399dev_t dkmodslice(dev_t dev, int slice);
400u_int dkunit(dev_t dev);
401char *readdisklabel(dev_t dev, struct disklabel *lp);
35 */
36
37#ifndef _SYS_DISKLABEL_H_
38#define _SYS_DISKLABEL_H_
39
40#ifndef _KERNEL
41#include <sys/types.h>
42#endif

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

394struct bio_queue_head;
395
396int bounds_check_with_label(struct bio *bp, struct disklabel *lp,
397 int wlabel);
398dev_t dkmodpart(dev_t dev, int part);
399dev_t dkmodslice(dev_t dev, int slice);
400u_int dkunit(dev_t dev);
401char *readdisklabel(dev_t dev, struct disklabel *lp);
402void bioqdisksort(struct bio_queue_head *ap, struct bio *bp);
403int setdisklabel(struct disklabel *olp, struct disklabel *nlp,
404 u_long openmask);
405int writedisklabel(dev_t dev, struct disklabel *lp);
406#ifdef __alpha__
407struct buf;
408void alpha_fix_srm_checksum(struct buf *bp);
409#endif
410
411#endif /* _KERNEL */
412
413
414#ifndef _KERNEL
415__BEGIN_DECLS
416struct disklabel *getdiskbyname(const char *);
417__END_DECLS
418#endif
419
420#endif /* !_SYS_DISKLABEL_H_ */
402int setdisklabel(struct disklabel *olp, struct disklabel *nlp,
403 u_long openmask);
404int writedisklabel(dev_t dev, struct disklabel *lp);
405#ifdef __alpha__
406struct buf;
407void alpha_fix_srm_checksum(struct buf *bp);
408#endif
409
410#endif /* _KERNEL */
411
412
413#ifndef _KERNEL
414__BEGIN_DECLS
415struct disklabel *getdiskbyname(const char *);
416__END_DECLS
417#endif
418
419#endif /* !_SYS_DISKLABEL_H_ */