X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?p=palacios.git;a=blobdiff_plain;f=misc%2Fnetwork_servers%2Fv3_nbd%2Fraw.cc;fp=misc%2Fnetwork_servers%2Fv3_nbd%2Fraw.cc;h=67b03d51e403e9e30b2622800bb04a431f84746d;hp=0000000000000000000000000000000000000000;hb=7e8a39a13c99e8a04885ca3b6fafdfafb6078288;hpb=85c736059d266eff4fc8de648c43079a29137da1 diff --git a/misc/network_servers/v3_nbd/raw.cc b/misc/network_servers/v3_nbd/raw.cc new file mode 100644 index 0000000..67b03d5 --- /dev/null +++ b/misc/network_servers/v3_nbd/raw.cc @@ -0,0 +1,46 @@ +/* + * This file is part of the Palacios Virtual Machine Monitor developed + * by the V3VEE Project with funding from the United States National + * Science Foundation and the Department of Energy. + * + * The V3VEE Project is a joint project between Northwestern University + * and the University of New Mexico. You can find out more at + * http://www.v3vee.org + * + * Copyright (c) 2008, Jack Lange + * Copyright (c) 2008, The V3VEE Project + * All rights reserved. + * + * Author: Jack Lange + * + * This is free software. You are permitted to use, + * redistribute, and modify it as specified in the file "V3VEE_LICENSE". + */ + +#include "v3_nbd.h" + + + +raw_disk::raw_disk(string &filename) { + this->f = fopen(filename.c_str(), "w+"); +} + + +unsigned long long raw_disk::get_capacity() { + + +} + + + +int raw_disk::read(unsigned char * buf, unsigned long long offset, int length) { + + +} + + + +int raw_disk::write(unsigned char * buf, unsigned long long offset, int length) { + + +}