From e8a8291649419292147da01da7fdee719c524aef Mon Sep 17 00:00:00 2001 From: Tom Mortensen Date: Fri, 15 Aug 2025 13:51:36 -0700 Subject: [PATCH] feat: exFAT support chore: refactor file sysem check scripts fix: fix some mode bits --- emhttp/languages/en_US/helptext.txt | 17 +- emhttp/plugins/dynamix/ArrayOperation.page | 0 emhttp/plugins/dynamix/DashStats.page | 0 emhttp/plugins/dynamix/DeviceInfo.page | 283 ++++++++++-------- .../dynamix/include/FileSystemStatus.php | 27 +- emhttp/plugins/dynamix/scripts/btrfs_check | 60 +--- emhttp/plugins/dynamix/scripts/check.source | 95 ++++++ emhttp/plugins/dynamix/scripts/exfat_check | 9 + emhttp/plugins/dynamix/scripts/ext_check | 93 +----- emhttp/plugins/dynamix/scripts/ntfs_check | 93 +----- emhttp/plugins/dynamix/scripts/reiserfs_check | 24 +- emhttp/plugins/dynamix/scripts/xfs_check | 95 +----- 12 files changed, 293 insertions(+), 503 deletions(-) mode change 100755 => 100644 emhttp/plugins/dynamix/ArrayOperation.page mode change 100755 => 100644 emhttp/plugins/dynamix/DashStats.page create mode 100644 emhttp/plugins/dynamix/scripts/check.source create mode 100755 emhttp/plugins/dynamix/scripts/exfat_check diff --git a/emhttp/languages/en_US/helptext.txt b/emhttp/languages/en_US/helptext.txt index b2c261299..034fb053b 100644 --- a/emhttp/languages/en_US/helptext.txt +++ b/emhttp/languages/en_US/helptext.txt @@ -316,10 +316,6 @@ Not much info is printed in the window, but you can verify the operation is runn increasing for the device on the Main page. :end -:info_reiserfs_cancel_help: -**Cancel** will cancel the Check operation in progress. -:end - :info_xfs_check_help: **Check** will run the *xfs_repair* program to check file system integrity on the device. @@ -332,15 +328,11 @@ Not much info is printed in the window, but you can verify the operation is runn increasing for the device on the Main page. :end -:info_xfs_cancel_help: -**Cancel** will cancel the Check operation in progress. -:end - :info_ext_check_help: **Check** will run the *e2fsck* program to check file system integrity on the device. Despite its name, *e2fsck* is used to check the whole family of ext2/ext3/ext4 file systems. -The *Options* field is initialized with *-p* option to automatically fix any file system problems that can be safely fixed +For **Fix** the *Options* field is initialized with *-p* option to automatically fix any file system problems that can be safely fixed without intervention. If a problem is discovered which may require additional corrective action, e2fsck will print a description of the problem and then exit. @@ -360,8 +352,11 @@ Note: *ntfsfix* will immediately exit if a hibernation file is detected (to prev The *Options* field is initialized with *-d* to clear the volume dirty flag if the volume can be fixed and mounted. :end -:info_ext_cancel_help: -**Cancel** will cancel the Check operation in progress. +:info_exfat_check_help: +**Check** will run the *fsck.exfat* program to check file system integrity on the device. + +For **Fix** the *Options* field is initialized with *-p* to repair the filesystem without user interaction if it can +be done safely. :end :info_smart_notifications_help: diff --git a/emhttp/plugins/dynamix/ArrayOperation.page b/emhttp/plugins/dynamix/ArrayOperation.page old mode 100755 new mode 100644 diff --git a/emhttp/plugins/dynamix/DashStats.page b/emhttp/plugins/dynamix/DashStats.page old mode 100755 new mode 100644 diff --git a/emhttp/plugins/dynamix/DeviceInfo.page b/emhttp/plugins/dynamix/DeviceInfo.page index b5fe1c696..fe33e9e3d 100644 --- a/emhttp/plugins/dynamix/DeviceInfo.page +++ b/emhttp/plugins/dynamix/DeviceInfo.page @@ -284,6 +284,12 @@ function selectDiskFsProfileNTFS() { $('#diskFsProfile').val(''); setDiskFsWidth(1); } +function selectDiskFsProfileEXFAT() { + $('#diskFsProfile').empty(); + $('#diskFsProfile').append($('