mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 19:01:57 -04:00
Support the root filesystem as data and parity disk
This commit is contained in:
parent
b428cd80cc
commit
4d09bffb94
1 changed files with 2 additions and 3 deletions
|
|
@ -722,10 +722,9 @@ void state_config(struct snapraid_state* state, const char* path, const char* co
|
|||
pathimport(device, sizeof(device), split_map[s]);
|
||||
slash = strrchr(device, '/');
|
||||
if (slash)
|
||||
*slash = 0;
|
||||
slash[1] = 0;
|
||||
else
|
||||
pathcpy(device, sizeof(device), ".");
|
||||
|
||||
if (stat(device, &st) == 0) {
|
||||
dev = st.st_dev;
|
||||
|
||||
|
|
@ -875,7 +874,7 @@ void state_config(struct snapraid_state* state, const char* path, const char* co
|
|||
pathimport(device, sizeof(device), buffer);
|
||||
slash = strrchr(device, '/');
|
||||
if (slash)
|
||||
*(slash + 1) = 0;
|
||||
slash[1] = 0;
|
||||
else
|
||||
pathcpy(device, sizeof(device), ".");
|
||||
if (stat(device, &st) == 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue