extern unsigned int dm_major;
extern struct sa_dlist *st_iface_list;
extern struct sa_dlist *st_dev_list;
+extern struct sa_dlist *st_fs_list;
extern int dlst_iface_idx;
extern int dlst_dev_idx;
+extern int dlst_fs_idx;
/*
***************************************************************************
for (i = 0; i < a->nr[curr]; i++) {
sfc = (struct stats_filesystem *) ((char *) a->buf[curr] + i * a->msize);
+ if (dlst_fs_idx) {
+ /* A list of devices has been entered on the command line */
+ if (!search_sa_dlist(st_fs_list, dlst_fs_idx,
+ DISPLAY_MOUNT(a->opt_flags) ? sfc->mountp : sfc->fs_name))
+ /* Device not found */
+ continue;
+ }
+
if (sep) {
printf(",\n");
}
extern unsigned int dm_major;
extern struct sa_dlist *st_iface_list;
extern struct sa_dlist *st_dev_list;
+extern struct sa_dlist *st_fs_list;
extern int dlst_iface_idx;
extern int dlst_dev_idx;
+extern int dlst_fs_idx;
/*
***************************************************************************
for (i = 0; i < a->nr[curr]; i++) {
sfc = (struct stats_filesystem *) ((char *) a->buf[curr] + i * a->msize);
+ if (dlst_fs_idx) {
+ /* A list of devices has been entered on the command line */
+ if (!search_sa_dlist(st_fs_list, dlst_fs_idx,
+ DISPLAY_MOUNT(a->opt_flags) ? sfc->mountp : sfc->fs_name))
+ /* Device not found */
+ continue;
+ }
+
printf("%s; %s; \"%s\";", timestr, pfield(a->hdr_line, FIRST + DISPLAY_MOUNT(a->opt_flags)),
DISPLAY_MOUNT(a->opt_flags) ? sfc->mountp : sfc->fs_name);
printf(" f_bfree; %llu;", sfc->f_bfree);
extern unsigned int dm_major;
extern struct sa_dlist *st_iface_list;
extern struct sa_dlist *st_dev_list;
+extern struct sa_dlist *st_fs_list;
extern int dlst_iface_idx;
extern int dlst_dev_idx;
+extern int dlst_fs_idx;
/*
***************************************************************************
for (i = 0; i < a->nr[curr]; i++) {
sfc = (struct stats_filesystem *) ((char *) a->buf[curr] + i * a->msize);
+ if (dlst_fs_idx) {
+ /* A list of devices has been entered on the command line */
+ if (!search_sa_dlist(st_fs_list, dlst_fs_idx,
+ DISPLAY_MOUNT(a->opt_flags) ? sfc->mountp : sfc->fs_name))
+ /* Device not found */
+ continue;
+ }
+
render(isdb, pre, PT_USERND,
"%s\tMBfsfree",
"%s",
char *args[MAX_ARGV_NR];
/* Devices entered on the command line */
-struct sa_dlist *st_iface_list = NULL, *st_dev_list = NULL;
-int dlst_iface_idx = 0, dlst_dev_idx = 0;
+struct sa_dlist *st_iface_list = NULL, *st_dev_list = NULL, *st_fs_list = NULL;
+int dlst_iface_idx = 0, dlst_dev_idx = 0, dlst_fs_idx = 0;
extern struct activity *act[];
extern struct report_format *fmt[];
fprintf(stderr, _("Options are:\n"
"[ -C ] [ -c | -d | -g | -j | -p | -r | -x ] [ -H ] [ -h ] [ -T | -t | -U ] [ -V ]\n"
"[ -O <opts> [,...] ] [ -P { <cpu> [,...] | ALL } ]\n"
- "[ --dev=<dev_list> ] [ --iface=<iface_list> ]\n"
+ "[ --dev=<dev_list> ] [ --fs=<fs_list> ] [ --iface=<iface_list> ]\n"
"[ -s [ <hh:mm[:ss]> ] ] [ -e [ <hh:mm[:ss]> ] ]\n"
"[ -- <sar_options> ]\n"));
exit(1);
&dlst_dev_idx, &opt, 6);
}
+ else if (!strncmp(argv[opt], "--fs=", 5)) {
+ /* Parse devices entered on the command line */
+ parse_sa_devices(argv[opt], &st_fs_list,
+ &dlst_fs_idx, &opt, 5);
+ }
+
else if (!strncmp(argv[opt], "--iface=", 8)) {
/* Parse devices entered on the command line */
parse_sa_devices(argv[opt], &st_iface_list,
extern unsigned int dm_major;
extern struct sa_dlist *st_iface_list;
extern struct sa_dlist *st_dev_list;
+extern struct sa_dlist *st_fs_list;
extern int dlst_iface_idx;
extern int dlst_dev_idx;
+extern int dlst_fs_idx;
unsigned int svg_colors[] = {0x00cc00, 0xff00bf, 0x00ffff, 0xff0000,
0xe85f00, 0x0000ff, 0x006020, 0x7030a0,
for (i = 0; i < a->nr[curr]; i++) {
sfc = (struct stats_filesystem *) ((char *) a->buf[curr] + i * a->msize);
+ if (dlst_fs_idx) {
+ /* A list of devices has been entered on the command line */
+ if (!search_sa_dlist(st_fs_list, dlst_fs_idx,
+ DISPLAY_MOUNT(a->opt_flags) ? sfc->mountp : sfc->fs_name))
+ /* Device not found */
+ continue;
+ }
+
/* Look for corresponding graph */
for (k = 0; k < svg_p->nr_max; k++) {
item_name = *(out + k * 9 + 7);
extern unsigned int dm_major;
extern struct sa_dlist *st_iface_list;
extern struct sa_dlist *st_dev_list;
+extern struct sa_dlist *st_fs_list;
extern int dlst_iface_idx;
extern int dlst_dev_idx;
+extern int dlst_fs_idx;
/*
***************************************************************************
sfc = (struct stats_filesystem *) ((char *) a->buf[curr] + i * a->msize);
+ if (dlst_fs_idx) {
+ /* A list of devices has been entered on the command line */
+ if (!search_sa_dlist(st_fs_list, dlst_fs_idx,
+ DISPLAY_MOUNT(a->opt_flags) ? sfc->mountp : sfc->fs_name))
+ /* Device not found */
+ continue;
+ }
+
xprintf(tab, "<filesystem %s=\"%s\" "
"MBfsfree=\"%.0f\" "
"MBfsused=\"%.0f\" "