• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10.1/diskdev_cmds-576/fsck.tproj/

Lines Matching +defs:child +defs:name

39  * 4. Neither the name of the University nor the names of its contributors
170 fprintf (stderr, "disk->name: %s\n", disk->name);
190 fprintf (stderr, "part->name: %s\n", part->name);
325 fprintf(stderr, "%s (%s)%s", part->name, part->fsname, part->next ? ", " : "\n");
350 char *name;
399 /* Take the special device name, and do some cursory checks. */
400 if ((name = blockcheck(fsp->fs_spec)) != 0) {
405 disk.name = NULL;
411 part.name = name;
437 * If the block device checks tell us the name is bad, mark it in the status
440 if ((name = blockcheck(fsp->fs_spec)) == NULL) {
449 addpart(name, fsp->fs_file, fsp->fs_vfstype);
508 * child processes exits before spawning another one.
530 disk->part->name, disk->part->fsname,
631 * we pass 1 to checkfilesys since we are a child process
649 int checkfilesys(disk_t *disk, int child) {
650 #define ARGC_MAX 4 /* cmd-name, options, device, NULL-termination */
661 char* filesys = part->name;
664 if (preen && child) {
669 * the child fsck process if the fsck_XXX binary exists.
718 /* The child */
728 /* The parent; child is process "pid" */
807 * device. If it is, then generate the raw device name and vend it out.
948 char *rawname(char *name) {
956 if ((dp = strrchr(name, '/')) == 0) {
964 (void)strlcpy(rawbuf, name, sizeof(rawbuf));
973 * Generate a regular disk device name from a raw one.
977 char *unrawname(char *name) {
983 if ((dp = strrchr(name, '/')) == 0) {
984 return (name);
988 if (stat(name, &stb) < 0) {
989 return (name);
994 return (name);
997 /* If it's not a real raw name, then error out */
999 return (name);
1005 return (name);
1020 * Find the disk name. It is assumed that the disk name ends with the
1045 if ((strncmp(disk->name, pathname, len) == 0) &&
1046 (disk->name[len] == 0)) {
1057 if ((disk->name = malloc(len + 1)) == NULL) {
1061 /* copy the name into place */
1062 (void)strncpy(disk->name, pathname, len);
1063 disk->name[len] = '\0';
1079 void addpart(char *name, char *fsname, char *vfstype) {
1085 disk = finddisk(name);
1090 * If we see our partition name already in there, then it means the entry
1094 if (strcmp(part->name, name) == 0) {
1095 printf("%s in fstab more than once!\n", name);
1106 if ((part->name = malloc(strlen(name) + 1)) == NULL) {
1111 /* Add the name & vfs info to the partition struct */
1112 (void)strcpy(part->name, name);
1130 if (part->name) {
1131 free (part->name);
1148 * Used by child processes in preen mode.