foo -> unknown.

I have to be able to show this stuff to the user. :-)
This commit is contained in:
Jordan K. Hubbard 1995-05-01 21:30:24 +00:00
parent 877e25ad85
commit ec27acc8cb
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=8207
4 changed files with 16 additions and 16 deletions

View file

@ -6,7 +6,7 @@
* this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp
* ----------------------------------------------------------------------------
*
* $Id: chunk.c,v 1.3 1995/04/29 04:00:54 phk Exp $
* $Id: chunk.c,v 1.4 1995/04/30 06:09:24 phk Exp $
*
*/
@ -198,9 +198,9 @@ Add_Chunk(struct disk *d, u_long offset, u_long size, char *name, chunk_e type,
return 0;
}
c1 = 0;
if(!c1 && (type == freebsd || type == fat || type == foo))
if(!c1 && (type == freebsd || type == fat || type == unknown))
c1 = Find_Mother_Chunk(d->chunks,offset,end,extended);
if(!c1 && (type == freebsd || type == fat || type == foo))
if(!c1 && (type == freebsd || type == fat || type == unknown))
c1 = Find_Mother_Chunk(d->chunks,offset,end,whole);
if(!c1 && type == extended)
c1 = Find_Mother_Chunk(d->chunks,offset,end,whole);
@ -263,9 +263,9 @@ Delete_Chunk(struct disk *d, struct chunk *c)
if(type == whole)
return 1;
if(!c1 && (type == freebsd || type == fat || type == foo))
if(!c1 && (type == freebsd || type == fat || type == unknown))
c1 = Find_Mother_Chunk(d->chunks,c->offset,c->end,extended);
if(!c1 && (type == freebsd || type == fat || type == foo))
if(!c1 && (type == freebsd || type == fat || type == unknown))
c1 = Find_Mother_Chunk(d->chunks,c->offset,c->end,whole);
if(!c1 && type == extended)
c1 = Find_Mother_Chunk(d->chunks,c->offset,c->end,whole);

View file

@ -6,17 +6,17 @@
* this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp
* ----------------------------------------------------------------------------
*
* $Id: libdisk.h,v 1.6 1995/04/30 06:09:27 phk Exp $
* $Id: libdisk.h,v 1.7 1995/04/30 11:04:14 phk Exp $
*
*/
#define MAX_NO_DISKS 20
/* Max # of disks Disk_Names() will return */
typedef enum {whole, foo, fat, freebsd, extended, part, unused, reserved} chunk_e;
typedef enum {whole, unknown, fat, freebsd, extended, part, unused, reserved} chunk_e;
#define CHAR_N static char *chunk_n[] = { \
"whole","foo","fat","freebsd","extended","part","unused","reserved",0};
"whole","unknown","fat","freebsd","extended","part","unused","reserved",0};
struct disk {
char *name;

View file

@ -6,7 +6,7 @@
* this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp
* ----------------------------------------------------------------------------
*
* $Id: chunk.c,v 1.3 1995/04/29 04:00:54 phk Exp $
* $Id: chunk.c,v 1.4 1995/04/30 06:09:24 phk Exp $
*
*/
@ -198,9 +198,9 @@ Add_Chunk(struct disk *d, u_long offset, u_long size, char *name, chunk_e type,
return 0;
}
c1 = 0;
if(!c1 && (type == freebsd || type == fat || type == foo))
if(!c1 && (type == freebsd || type == fat || type == unknown))
c1 = Find_Mother_Chunk(d->chunks,offset,end,extended);
if(!c1 && (type == freebsd || type == fat || type == foo))
if(!c1 && (type == freebsd || type == fat || type == unknown))
c1 = Find_Mother_Chunk(d->chunks,offset,end,whole);
if(!c1 && type == extended)
c1 = Find_Mother_Chunk(d->chunks,offset,end,whole);
@ -263,9 +263,9 @@ Delete_Chunk(struct disk *d, struct chunk *c)
if(type == whole)
return 1;
if(!c1 && (type == freebsd || type == fat || type == foo))
if(!c1 && (type == freebsd || type == fat || type == unknown))
c1 = Find_Mother_Chunk(d->chunks,c->offset,c->end,extended);
if(!c1 && (type == freebsd || type == fat || type == foo))
if(!c1 && (type == freebsd || type == fat || type == unknown))
c1 = Find_Mother_Chunk(d->chunks,c->offset,c->end,whole);
if(!c1 && type == extended)
c1 = Find_Mother_Chunk(d->chunks,c->offset,c->end,whole);

View file

@ -6,17 +6,17 @@
* this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp
* ----------------------------------------------------------------------------
*
* $Id: libdisk.h,v 1.6 1995/04/30 06:09:27 phk Exp $
* $Id: libdisk.h,v 1.7 1995/04/30 11:04:14 phk Exp $
*
*/
#define MAX_NO_DISKS 20
/* Max # of disks Disk_Names() will return */
typedef enum {whole, foo, fat, freebsd, extended, part, unused, reserved} chunk_e;
typedef enum {whole, unknown, fat, freebsd, extended, part, unused, reserved} chunk_e;
#define CHAR_N static char *chunk_n[] = { \
"whole","foo","fat","freebsd","extended","part","unused","reserved",0};
"whole","unknown","fat","freebsd","extended","part","unused","reserved",0};
struct disk {
char *name;