mfiutil.c (40f65a4df509c6b29b9e72407c7afefe28838844) mfiutil.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

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

61 fprintf(stderr, " show events - display event log\n");
62 fprintf(stderr, " show firmware - list firmware images\n");
63 fprintf(stderr, " show foreign - display detected foreign volumes\n");
64 fprintf(stderr, " show logstate - display event log sequence numbers\n");
65 fprintf(stderr, " show volumes - list logical volumes\n");
66 fprintf(stderr, " show patrol - display patrol read status\n");
67 fprintf(stderr, " show progress - display status of active operations\n");
68 fprintf(stderr, " fail <drive> - fail a physical drive\n");
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

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

61 fprintf(stderr, " show events - display event log\n");
62 fprintf(stderr, " show firmware - list firmware images\n");
63 fprintf(stderr, " show foreign - display detected foreign volumes\n");
64 fprintf(stderr, " show logstate - display event log sequence numbers\n");
65 fprintf(stderr, " show volumes - list logical volumes\n");
66 fprintf(stderr, " show patrol - display patrol read status\n");
67 fprintf(stderr, " show progress - display status of active operations\n");
68 fprintf(stderr, " fail <drive> - fail a physical drive\n");
69 fprintf(stderr, " good <drive> - mark a bad physical drive as good\n");
69 fprintf(stderr, " good <drive> - set a failed/SYSPD drive as UNCONFIGURED\n");
70 fprintf(stderr, " rebuild <drive> - mark failed drive ready for rebuild\n");
70 fprintf(stderr, " rebuild <drive> - mark failed drive ready for rebuild\n");
71 fprintf(stderr, " syspd <drive> - set drive into use as SYSPD JBOD\n");
71 fprintf(stderr, " drive progress <drive> - display status of active operations\n");
72 fprintf(stderr, " drive clear <drive> <start|stop> - clear a drive with all 0x00\n");
73 fprintf(stderr, " start rebuild <drive>\n");
74 fprintf(stderr, " abort rebuild <drive>\n");
75 fprintf(stderr, " locate <drive> <on|off> - toggle drive LED\n");
76 fprintf(stderr, " cache <volume> [command [setting]]\n");
77 fprintf(stderr, " name <volume> <name>\n");
78 fprintf(stderr, " volume progress <volume> - display status of active operations\n");

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

98#endif
99 exit(1);
100}
101
102static int
103version(int ac __unused, char **av __unused)
104{
105
72 fprintf(stderr, " drive progress <drive> - display status of active operations\n");
73 fprintf(stderr, " drive clear <drive> <start|stop> - clear a drive with all 0x00\n");
74 fprintf(stderr, " start rebuild <drive>\n");
75 fprintf(stderr, " abort rebuild <drive>\n");
76 fprintf(stderr, " locate <drive> <on|off> - toggle drive LED\n");
77 fprintf(stderr, " cache <volume> [command [setting]]\n");
78 fprintf(stderr, " name <volume> <name>\n");
79 fprintf(stderr, " volume progress <volume> - display status of active operations\n");

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

99#endif
100 exit(1);
101}
102
103static int
104version(int ac __unused, char **av __unused)
105{
106
106 printf("mfiutil version 1.0.14");
107 printf("mfiutil version 1.0.15");
107#ifdef DEBUG
108 printf(" (DEBUG)");
109#endif
110 printf("\n");
111 return (0);
112}
113MFI_COMMAND(top, version, version);
114

--- 68 unchanged lines hidden ---
108#ifdef DEBUG
109 printf(" (DEBUG)");
110#endif
111 printf("\n");
112 return (0);
113}
114MFI_COMMAND(top, version, version);
115

--- 68 unchanged lines hidden ---