char* p;
int fd;
int len;
+
if(!strncmp(devname, "/dev/", 5)) {
devname+=5;
}
void disconnect(char* device) {
int nbd = open(device, O_RDWR);
+
if (nbd < 0)
err("Cannot open NBD: %m\nPlease ensure the 'nbd' module is loaded.");
printf("Disconnecting: que, ");
int nofork=0;
u64 size64;
u32 flags;
- int i, c;
+ int c;
int nonspecial=0;
struct option long_options[] = {
{ "block-size", required_argument, NULL, 'b' },