Prints also the disk name when listing devices.

This commit is contained in:
Andrea Mazzoleni 2015-01-10 10:21:26 +01:00
parent bd475e5314
commit 9517e0c622
3 changed files with 9 additions and 5 deletions

View file

@ -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;