mfi_drive.c (23090366f729c56cab62de74c7a51792357e98a9) mfi_drive.c (7c2ad1ee5c39a4b200a8f6f509526054149b570e)
1/*-
2 * Copyright (c) 2008, 2009 Yahoo!, Inc.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 460 unchanged lines hidden (view full) ---

469 return (EINVAL);
470 }
471
472 return (drive_set_state(av[1], MFI_PD_STATE_REBUILD));
473}
474MFI_COMMAND(top, rebuild, rebuild_drive);
475
476static int
1/*-
2 * Copyright (c) 2008, 2009 Yahoo!, Inc.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 460 unchanged lines hidden (view full) ---

469 return (EINVAL);
470 }
471
472 return (drive_set_state(av[1], MFI_PD_STATE_REBUILD));
473}
474MFI_COMMAND(top, rebuild, rebuild_drive);
475
476static int
477syspd_drive(int ac, char **av)
478{
479
480 if (ac != 2) {
481 warnx("syspd: %s", ac > 2 ? "extra arguments" :
482 "drive required");
483 return (EINVAL);
484 }
485
486 return (drive_set_state(av[1], MFI_PD_STATE_SYSTEM));
487}
488MFI_COMMAND(top, syspd, syspd_drive);
489
490static int
477start_rebuild(int ac, char **av)
478{
479 struct mfi_pd_info info;
480 uint16_t device_id;
481 uint8_t mbox[4];
482 int error, fd;
483
484 if (ac != 2) {

--- 274 unchanged lines hidden ---
491start_rebuild(int ac, char **av)
492{
493 struct mfi_pd_info info;
494 uint16_t device_id;
495 uint8_t mbox[4];
496 int error, fd;
497
498 if (ac != 2) {

--- 274 unchanged lines hidden ---