NOVA User-Level Environment  Version testbox/changed-memory-timing-317-g320d8b5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
logdisk.cc File Reference
#include "service/logging.h"
#include "nul/program.h"
#include "sigma0/console.h"
#include "nul/service_disk.h"
#include "host/dma.h"
#include "wvtest.h"
#include <nul/types.h>
#include "crc32.cc"
#include "nul/uuid.h"
#include "nul/disk_helper.h"
#include "lvm.cc"

Classes

class  Partition
struct  Partition::partition
struct  Partition::mbr
class  GPT
struct  GPT::header
struct  GPT::pent
class  LogDiskMan

Macros

#define skip_if(cond, msg,...)   if (cond) { Logging::printf(msg " on disk %d - skiping\n", ##__VA_ARGS__, disknum); return false; }

Typedefs

typedef DiskHelper< LogDiskManMyDiskHelper

Enumerations

enum  {
  SYSTEM = 1ull<<0, BIOS_BOOTABLE = 1ull<<2, READ_ONLY = 1ull<<60, HIDDEN = 1ull<<62,
  NO_AUTOMOUNT = 1ull<<63
}

Functions

bool check_crc ()

Variables

char status
char start_chs [3]
unsigned char type
char end_chs [3]
uint32 start_lba
uint32 num_sectors
char code [440]
uint32 disk_signature
uint16 zero
struct partition part [4]
uint16 mbr_signature
char signature [8]
uint32 revision
uint32 hsize
uint32 crc
uint32 reserved
uint64 current_lba
uint64 backup_lba
uint64 first_lba
uint64 last_lba
uuid_t disk_guid
uint64 pent_lba
uint32 pent_num
uint32 pent_size
uint32 crc_part
uuid_t id
uint64 attr
utf16le name [36]

Macro Definition Documentation

#define skip_if (   cond,
  msg,
  ... 
)    if (cond) { Logging::printf(msg " on disk %d - skiping\n", ##__VA_ARGS__, disknum); return false; }

Typedef Documentation

typedef DiskHelper<LogDiskMan> MyDiskHelper

Enumeration Type Documentation

anonymous enum
Enumerator:
SYSTEM 
BIOS_BOOTABLE 
READ_ONLY 
HIDDEN 
NO_AUTOMOUNT 

Function Documentation

bool check_crc ( )

Variable Documentation

uint64 attr
uint64 backup_lba
char code[440]
uint32 crc
uint32 crc_part
uint64 current_lba
uuid_t disk_guid
uint32 disk_signature
char end_chs[3]
uint64 first_lba
uint32 hsize
uuid_t id
uint64 last_lba
uint16 mbr_signature
utf16le name[36]
uint32 num_sectors
struct partition part[4]
uint64 pent_lba
uint32 pent_num
uint32 pent_size
uint32 reserved
uint32 revision
char signature[8]
char start_chs[3]
uint32 start_lba
char status
uuid_t type
uint16 zero