From 6c292d976c2c08449db87807469b32b7bfd86ec0 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Sun, 22 Apr 2018 03:40:10 +0200 Subject: [PATCH] Use FSTAB_SW and FSTAB_XX when available --- src/plugins/volumes.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/plugins/volumes.c b/src/plugins/volumes.c index ac010e3..f450308 100644 --- a/src/plugins/volumes.c +++ b/src/plugins/volumes.c @@ -740,9 +740,14 @@ static int _list_loop_unmounted(Volumes * volumes) _list_reset(volumes); while((f = getfsent()) != NULL) { - if(strcmp(f->fs_type, "sw") == 0 - || strcmp(f->fs_type, "xx") == 0) +# if defined(FSTAB_SW) + if(strcmp(f->fs_type, FSTAB_SW) == 0) continue; +# endif +# if defined(FSTAB_XX) + if(strcmp(f->fs_type, FSTAB_XX) == 0) + continue; +# endif flags = (strcmp(f->fs_vfstype, "nfs") == 0 || strcmp(f->fs_vfstype, "smbfs") == 0) ? DF_NETWORK : 0;