From 9bbec21b3d0ecea03b44cf492455da6413728ec2 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Fri, 26 Sep 2014 12:39:39 +0300 Subject: [PATCH] Also support network volumes on FreeBSD (untested) --- src/plugins/volumes.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/volumes.c b/src/plugins/volumes.c index 0290da7..710406b 100644 --- a/src/plugins/volumes.c +++ b/src/plugins/volumes.c @@ -312,7 +312,8 @@ static void _volumes_list(Volumes * volumes) _list_reset(volumes); for(i = 0; i < res; i++) { - flags = (mnt[i].f_flags & MNT_RDONLY) ? DF_READONLY : 0; + flags = (mnt[i].f_flags & MNT_LOCAL) ? 0 : DF_NETWORK; + flags |= (mnt[i].f_flags & MNT_RDONLY) ? DF_READONLY : 0; _list_add(volumes, (mnt[i].f_flags & MNT_ROOTFS) ? _("Root filesystem") : NULL, mnt[i].f_mntfromname, mnt[i].f_fstypename,