Extends the status command to show free space.

This commit is contained in:
Andrea Mazzoleni 2014-10-13 23:47:25 +02:00
parent 4886a5d13f
commit 3e2d805d08
7 changed files with 205 additions and 35 deletions

View file

@ -1352,7 +1352,7 @@ void state_scan(struct snapraid_state* state, int output)
printf("Scanning disk %s...\n", disk->name);
/* check if the disk supports persistent inodes */
ret = fsinfo(disk->dir, &has_persistent_inode);
ret = fsinfo(disk->dir, &has_persistent_inode, 0);
if (ret < 0) {
/* LCOV_EXCL_START */
fprintf(stderr, "Error accessing disk '%s' to get filesystem info. %s.\n", disk->dir, strerror(errno));