Last change
on this file since 3829 was 3232, checked in by Bruno Cornec, 11 years ago |
- Update mindi-busybox to 1.21.1
|
-
Property svn:eol-style
set to
native
|
File size:
778 bytes
|
Rev | Line | |
---|
[1765] | 1 | /* vi: set sw=4 ts=4: */
|
---|
| 2 | /*
|
---|
| 3 | * raidautorun implementation for busybox
|
---|
| 4 | *
|
---|
[2725] | 5 | * Copyright (C) 2006 Bernhard Reutner-Fischer
|
---|
[1765] | 6 | *
|
---|
[2725] | 7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
---|
[1765] | 8 | *
|
---|
| 9 | */
|
---|
| 10 |
|
---|
[3232] | 11 | //usage:#define raidautorun_trivial_usage
|
---|
| 12 | //usage: "DEVICE"
|
---|
| 13 | //usage:#define raidautorun_full_usage "\n\n"
|
---|
| 14 | //usage: "Tell the kernel to automatically search and start RAID arrays"
|
---|
| 15 | //usage:
|
---|
| 16 | //usage:#define raidautorun_example_usage
|
---|
| 17 | //usage: "$ raidautorun /dev/md0"
|
---|
| 18 |
|
---|
[1765] | 19 | #include "libbb.h"
|
---|
| 20 |
|
---|
| 21 | #include <linux/major.h>
|
---|
| 22 | #include <linux/raid/md_u.h>
|
---|
| 23 |
|
---|
[2725] | 24 | int raidautorun_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
|
---|
| 25 | int raidautorun_main(int argc UNUSED_PARAM, char **argv)
|
---|
[1765] | 26 | {
|
---|
[2725] | 27 | xioctl(xopen(single_argv(argv), O_RDONLY), RAID_AUTORUN, NULL);
|
---|
[1765] | 28 | return EXIT_SUCCESS;
|
---|
| 29 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.