mirror of
https://github.com/amadvance/snapraid.git
synced 2026-12-01 20:36:38 -05:00
Prints also the disk name when listing devices.
This commit is contained in:
parent
bd475e5314
commit
9517e0c622
3 changed files with 9 additions and 5 deletions
|
|
@ -40,6 +40,7 @@ void state_spin(struct snapraid_state* state, int operation)
|
|||
|
||||
entry = malloc_nofail(sizeof(disk_t));
|
||||
|
||||
pathcpy(entry->name, sizeof(entry->name), disk->name);
|
||||
pathprint(entry->path, sizeof(entry->path), "%s", disk->dir);
|
||||
entry->device = disk->device;
|
||||
|
||||
|
|
@ -52,6 +53,7 @@ void state_spin(struct snapraid_state* state, int operation)
|
|||
|
||||
entry = malloc_nofail(sizeof(disk_t));
|
||||
|
||||
pathcpy(entry->name, sizeof(entry->name), lev_config_name(j));
|
||||
pathprint(entry->path, sizeof(entry->path), "%s", state->parity[j].path);
|
||||
pathcut(entry->path); /* remove the parity file */
|
||||
entry->device = state->parity[j].device;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue