summaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-10-26 12:29:35 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2025-10-26 12:30:34 +0100
commitb6ce6640afaf6c1cc6ad274f3053b2e218a49554 (patch)
tree69f6a0c6f08ef5ef2f6fcbb7302537dbce222e6e /tools
parent744e9aba579a51dcab8f78009cbc091ce3cd8503 (diff)
feat: refactor HeFS to OpenHeFS.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'tools')
-rw-r--r--tools/fsck.hefs.cc10
-rw-r--r--tools/libmkfs/openhefs.h (renamed from tools/libmkfs/hefs.h)2
-rw-r--r--tools/mkfs.hefs.cc2
3 files changed, 7 insertions, 7 deletions
diff --git a/tools/fsck.hefs.cc b/tools/fsck.hefs.cc
index df89bf07..a2162a4f 100644
--- a/tools/fsck.hefs.cc
+++ b/tools/fsck.hefs.cc
@@ -4,7 +4,7 @@
------------------------------------------- */
-#include <tools/libmkfs/hefs.h>
+#include <tools/libmkfs/openhefs.h>
#include <tools/libmkfs/mkfs.h>
#include <cstdlib>
#include <fstream>
@@ -26,7 +26,7 @@ int main(int argc, char** argv) {
auto origin = mkfs::get_option<char>(args, "-org");
if (opt_disk.empty()) {
- mkfs::console_out() << "fsck: hefs: error: HeFS partition is empty! Exiting..."
+ mkfs::console_out() << "fsck: hefs: error: OpenHeFS partition is empty! Exiting..."
<< "\n";
return EXIT_FAILURE;
}
@@ -59,16 +59,16 @@ int main(int argc, char** argv) {
if (strncmp(boot_node.magic, kHeFSMagic, kHeFSMagicLen) != 0 || boot_node.sectorCount < 1 ||
boot_node.sectorSize < kMkFsSectorSz) {
- mkfs::console_out() << "hefs: error: Device is not an HeFS disk: " << opt_disk << "\n";
+ mkfs::console_out() << "hefs: error: Device is not an OpenHeFS disk: " << opt_disk << "\n";
return EXIT_FAILURE;
}
if (boot_node.badSectors > kMkFsMaxBadSectors) {
- mkfs::console_out() << "hefs: error: HeFS disk has too much bad sectors: " << opt_disk << "\n";
+ mkfs::console_out() << "hefs: error: OpenHeFS disk has too much bad sectors: " << opt_disk << "\n";
return EXIT_FAILURE;
}
- mkfs::console_out() << "hefs: HeFS partition is healthy, exiting...\n";
+ mkfs::console_out() << "hefs: OpenHeFS partition is healthy, exiting...\n";
output_device.close();
diff --git a/tools/libmkfs/hefs.h b/tools/libmkfs/openhefs.h
index 52bb3086..3bba79e8 100644
--- a/tools/libmkfs/hefs.h
+++ b/tools/libmkfs/openhefs.h
@@ -16,7 +16,7 @@
#define kHeFSFileNameLen (256U)
#define kHeFSPartNameLen (128U)
-#define kHeFSDefaultVolumeName u8"HeFS Volume"
+#define kHeFSDefaultVolumeName u8"OpenHeFS Volume"
namespace mkfs::hefs {
diff --git a/tools/mkfs.hefs.cc b/tools/mkfs.hefs.cc
index 9f70b78f..d1139e10 100644
--- a/tools/mkfs.hefs.cc
+++ b/tools/mkfs.hefs.cc
@@ -4,7 +4,7 @@
------------------------------------------- */
-#include <tools/libmkfs/hefs.h>
+#include <tools/libmkfs/openhefs.h>
#include <tools/libmkfs/mkfs.h>
#include <algorithm>
#include <cstdlib>