From 567fa0accd86d7e11e2e9475ea9034464f84fedb Mon Sep 17 00:00:00 2001 From: dlandon Date: Tue, 7 Jan 2025 17:08:46 -0600 Subject: [PATCH] Cut down on changes on original code. --- emhttp/plugins/dynamix/ShareSettings.page | 36 +++++++++++++++++++++-- 1 file changed, 33 insertions(+), 3 deletions(-) diff --git a/emhttp/plugins/dynamix/ShareSettings.page b/emhttp/plugins/dynamix/ShareSettings.page index 8f0f10ae4..2fd64e280 100644 --- a/emhttp/plugins/dynamix/ShareSettings.page +++ b/emhttp/plugins/dynamix/ShareSettings.page @@ -20,6 +20,9 @@ Tag="share-alt" $disabled = _var($var,'fsState')!='Stopped' ? 'disabled' : ''; $disks = array_filter($disks,'my_disks'); $width = [166,300]; + +/* Fetch the file-max value from the system. */ +$fileMax = (int) file_get_contents('/proc/sys/fs/file-max'); ?> -
+ _(Enable disk shares)_: : " class="narrow" placeholder="40960" > +: >Maximum: :shares_fuse_file_descriptors_io_help: