X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?p=palacios.git;a=blobdiff_plain;f=misc%2Fnetwork_servers%2Fv3_nbd%2Fraw.h;fp=misc%2Fnetwork_servers%2Fv3_nbd%2Fraw.h;h=8facc9eae792b5cb358880bf45d488633589d402;hp=0000000000000000000000000000000000000000;hb=7e8a39a13c99e8a04885ca3b6fafdfafb6078288;hpb=85c736059d266eff4fc8de648c43079a29137da1 diff --git a/misc/network_servers/v3_nbd/raw.h b/misc/network_servers/v3_nbd/raw.h new file mode 100644 index 0000000..8facc9e --- /dev/null +++ b/misc/network_servers/v3_nbd/raw.h @@ -0,0 +1,43 @@ +/* + * 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". + */ + +#ifndef __RAW_H__ +#define __RAW_H__ + + +class raw_disk : public v3_disk { + private: + raw_disk(config_t &config_map, string &disk_tag); + + File * f; + + public: + unsigned long long get_capacity(); + int read(unsigned char * buf, unsigned long long offset, int length); + int write(unsigned char * buf, unsigned long long offset, int length); + +}; + + + + + + + +#endif