From: Rafał Miłecki Date: Fri, 27 Dec 2019 12:09:11 +0000 (+0100) Subject: blockd: report "target" path as "mount" for autofs available mounts X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=62c578c22f9d87ab9a7b686dece913861cf34c34;p=oweals%2Ffstools.git blockd: report "target" path as "mount" for autofs available mounts Devices handled with autofs should be seen as available even if currently unmounted. Mounting is handled on demand and transparently for users. Signed-off-by: Rafał Miłecki --- diff --git a/blockd.c b/blockd.c index a04ea5b..84bea6e 100644 --- a/blockd.c +++ b/blockd.c @@ -283,6 +283,8 @@ block_info(struct ubus_context *ctx, struct ubus_object *obj, if (mp) { blobmsg_add_string(&bb, "mount", mp); free(mp); + } else if (device->autofs && device->target) { + blobmsg_add_string(&bb, "mount", device->target); } blobmsg_close_table(&bb, t); }