mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-23 18:25:19 +00:00
foo -> unknown.
I have to be able to show this stuff to the user. :-)
This commit is contained in:
parent
877e25ad85
commit
ec27acc8cb
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=8207
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue