Changeset View
Changeset View
Standalone View
Standalone View
usr.sbin/bsdinstall/partedit/gpart_ops.c
Context not available. | |||||
for (i = 0; i < (int)nitems(items); i++) { | for (i = 0; i < (int)nitems(items); i++) { | ||||
if (items[i].state == 0) | if (items[i].state == 0) | ||||
continue; | continue; | ||||
if (strcmp(items[i].name, "FAT16") == 0) | if (strcmp(items[i].name, "FAT32") == 0) | ||||
strcat(command, "-F 32 -c 1"); | |||||
else if (strcmp(items[i].name, "FAT16") == 0) | |||||
strcat(command, "-F 16 "); | strcat(command, "-F 16 "); | ||||
else if (strcmp(items[i].name, "FAT12") == 0) | else if (strcmp(items[i].name, "FAT12") == 0) | ||||
strcat(command, "-F 12 "); | strcat(command, "-F 12 "); | ||||
Context not available. | |||||
TRUE); | TRUE); | ||||
return; | return; | ||||
} | } | ||||
bootsize = lseek(bootfd, 0, SEEK_END); | bootsize = lseek(bootfd, 0, SEEK_END); | ||||
boot = malloc(bootsize); | boot = malloc(bootsize); | ||||
lseek(bootfd, 0, SEEK_SET); | lseek(bootfd, 0, SEEK_SET); | ||||
imp: You don't need this space. The shell will just eat it when you use this later. | |||||
Done Inline ActionsDoes this need protection against multiple invocations? imp: Does this need protection against multiple invocations?
| |||||
Done Inline ActionsI don't think so: from what I've seen bsdinstall isn't designed to have multiple copies running at the same time. bcran: I don't think so: from what I've seen bsdinstall isn't designed to have multiple copies running… | |||||
Context not available. | |||||
else if (strcmp("fat32", type) == 0 || strcmp("efi", type) == 0 | else if (strcmp("fat32", type) == 0 || strcmp("efi", type) == 0 | ||||
|| strcmp("ms-basic-data", type) == 0) | || strcmp("ms-basic-data", type) == 0) | ||||
md->fstab->fs_vfstype = strdup("msdosfs"); | md->fstab->fs_vfstype = strdup("msdosfs"); | ||||
if (strcmp("efi", type) == 0) | |||||
md->fstab->fs_mntops = strdup("noauto"); | |||||
else | else | ||||
md->fstab->fs_vfstype = strdup(type); /* Guess */ | md->fstab->fs_vfstype = strdup(type); /* Guess */ | ||||
if (strcmp(type, "freebsd-swap") == 0) { | if (strcmp(type, "freebsd-swap") == 0) { | ||||
Context not available. |
You don't need this space. The shell will just eat it when you use this later.