/dev/rXXX -> /dev/XXX
This should fix sysinstall and other tools that don't expect the 'r' devices to exist anymore (and thus don't create them).
This commit is contained in:
parent
5f28a02db5
commit
2dbe92be83
@ -66,7 +66,7 @@ Int_Open_Disk(const char *name, u_long size)
|
|||||||
#endif
|
#endif
|
||||||
u_long offset = 0;
|
u_long offset = 0;
|
||||||
|
|
||||||
strcpy(device,"/dev/r");
|
strcpy(device,"/dev/");
|
||||||
strcat(device,name);
|
strcat(device,name);
|
||||||
|
|
||||||
d = (struct disk *)malloc(sizeof *d);
|
d = (struct disk *)malloc(sizeof *d);
|
||||||
@ -235,7 +235,7 @@ Int_Open_Disk(const char *name, u_long size)
|
|||||||
char pname[20];
|
char pname[20];
|
||||||
int j,k;
|
int j,k;
|
||||||
|
|
||||||
strcpy(pname,"/dev/r");
|
strcpy(pname,"/dev/");
|
||||||
strcat(pname,sname);
|
strcat(pname,sname);
|
||||||
j = open(pname,O_RDONLY);
|
j = open(pname,O_RDONLY);
|
||||||
if (j < 0) {
|
if (j < 0) {
|
||||||
@ -300,7 +300,7 @@ Int_Open_Disk(const char *name, u_long size)
|
|||||||
char pname[20];
|
char pname[20];
|
||||||
int j,k;
|
int j,k;
|
||||||
|
|
||||||
strcpy(pname,"/dev/r");
|
strcpy(pname,"/dev/");
|
||||||
strcat(pname,name);
|
strcat(pname,name);
|
||||||
j = open(pname,O_RDONLY);
|
j = open(pname,O_RDONLY);
|
||||||
if (j < 0) {
|
if (j < 0) {
|
||||||
|
@ -91,7 +91,7 @@ Scan_Disk(struct disk *d)
|
|||||||
u_long l;
|
u_long l;
|
||||||
int i,j,fd;
|
int i,j,fd;
|
||||||
|
|
||||||
strcpy(device,"/dev/r");
|
strcpy(device,"/dev/");
|
||||||
strcat(device,d->name);
|
strcat(device,d->name);
|
||||||
|
|
||||||
fd = open(device,O_RDWR);
|
fd = open(device,O_RDWR);
|
||||||
|
@ -181,7 +181,7 @@ Write_Disk(struct disk *d1)
|
|||||||
int one = 1;
|
int one = 1;
|
||||||
int zero = 0;
|
int zero = 0;
|
||||||
|
|
||||||
strcpy(device,"/dev/r");
|
strcpy(device,"/dev/");
|
||||||
strcat(device,d1->name);
|
strcat(device,d1->name);
|
||||||
|
|
||||||
#ifdef PC98
|
#ifdef PC98
|
||||||
|
Loading…
x
Reference in New Issue
Block a user