When the mount point had to be displayed instead of the filesystem name
with sar's option -F (i.e. the user entered "-F MOUNT" instead of just
"-F"), no data were found by sadf -g (SVG output) and sadf -l (PCP
output). This patch fixes the problem.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
for (i = 0; i < a->nr[curr]; i++) {
sfc = (struct stats_filesystem *) ((char *) a->buf[curr] + i * a->msize);
- nr += add_list_item(&(a->item_list), sfc->fs_name, MAX_FS_LEN);
+ nr += add_list_item(&(a->item_list),
+ DISPLAY_MOUNT(a->opt_flags) ? sfc->mountp : sfc->fs_name,
+ MAX_FS_LEN);
}
return nr;