disk.c (41a1c642e4f5630bbc74c13192d0fca6face6af9) disk.c (82c29d4fde96ab021241339655d3f0354f5543e3)
1/*-
2 * Copyright (c) 1998 Michael Smith <msmith@freebsd.org>
3 * Copyright (c) 2012 Andrey V. Elsukov <ae@FreeBSD.org>
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:

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

35#include <bootstrap.h>
36#include <part.h>
37
38#include "disk.h"
39
40#ifdef DISK_DEBUG
41# define DPRINTF(fmt, args...) printf("%s: " fmt "\n" , __func__ , ## args)
42#else
1/*-
2 * Copyright (c) 1998 Michael Smith <msmith@freebsd.org>
3 * Copyright (c) 2012 Andrey V. Elsukov <ae@FreeBSD.org>
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:

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

35#include <bootstrap.h>
36#include <part.h>
37
38#include "disk.h"
39
40#ifdef DISK_DEBUG
41# define DPRINTF(fmt, args...) printf("%s: " fmt "\n" , __func__ , ## args)
42#else
43# define DPRINTF(fmt, args...)
43# define DPRINTF(fmt, args...) ((void)0)
44#endif
45
46struct open_disk {
47 struct ptable *table;
48 uint64_t mediasize;
49 uint64_t entrysize;
50 u_int sectorsize;
51};

--- 417 unchanged lines hidden ---
44#endif
45
46struct open_disk {
47 struct ptable *table;
48 uint64_t mediasize;
49 uint64_t entrysize;
50 u_int sectorsize;
51};

--- 417 unchanged lines hidden ---