Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.3:Rings:2-TestDVD
sash
sash-raid.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File sash-raid.diff of Package sash
Index: sash.c =================================================================== --- sash.c.orig 2014-03-07 14:18:42.000000000 +0100 +++ sash.c 2014-11-19 14:24:12.786347385 +0100 @@ -14,6 +14,9 @@ #include "sash.h" +#include <sys/ioctl.h> +#include <linux/major.h> +#include <linux/raid/md_u.h> static const char * const version = "3.8"; @@ -364,6 +367,12 @@ }, { + "raidautorun", do_raidautorun, 1, 1, + "Configure RAID devices", + "" + }, + + { NULL, 0, 0, 0, NULL, NULL @@ -1290,6 +1299,21 @@ } +int +do_raidautorun(int argc, const char ** argv) +{ + int fd = open("/dev/md0", O_RDWR); + + if(fd >= 0) + { + ioctl(fd , RAID_AUTORUN, 0); + close(fd); + } + + return 0; +} + + /* * Display the prompt string. */ Index: sash.h =================================================================== --- sash.h.orig 2014-03-07 14:46:49.000000000 +0100 +++ sash.h 2014-11-19 14:25:58.706738188 +0100 @@ -67,6 +67,7 @@ extern int do_source(int argc, const char ** argv); extern int do_umask(int argc, const char ** argv); extern int do_unalias(int argc, const char ** argv); +extern int do_raidautorun(int argc, const char ** argv); extern int do_help(int argc, const char ** argv); extern int do_ln(int argc, const char ** argv); extern int do_cp(int argc, const char ** argv);
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor