>> I added devsd and wrote an sd loopback yesterday afternoon. >> It worked pretty well except that when I ran fdisk, >> /dev/sd00/data disappeared. I was going to debug that >> before saying anything. > > Here's the fix for the fdisk problem: > > /sys/src/cmd/disk/prep/edit.c:503,508 - edit.c:503,509 > */ > for(i=0; i<edit->nctlpart; i++) { > p = edit->ctlpart[i]; > + if(strncmp(p->ctlname, "data", 5) != 0) > if(p->changed) > if(fprint(ctlfd, "delpart %s\n", p->ctlname)<0) { > fprint(2, "delpart failed: %s: %r\n", p->ctlname);
i don't think this is the right solution. as geoff pointed out, fdisk shouldn't be deleteing the parent partition or any partitions that lie outside its parent partition. obviously prep has a similar problem. - erik