3 Commits
Author SHA1 Message Date
Pablo Lezaeta 7caca98c35 fix: Replace all Unicode characters with ASCII for full TTY compatibility
Complete ASCII conversion:
-   + in all test output and validation
-   ! in all warnings
- All files verified for ASCII-only content

Files updated:
- Makefile (install messages)
- test/test_mkfs.sh (test output)
- test/test_fsck.sh (test output)
- test/test_hfsutils.sh (test output)
- test/lib/validation.sh (validation messages)

Benefits:
- Works on all BSD TTY systems
- Compatible with Linux text consoles
- No Unicode font requirements
- Portable across all POSIX systems
- Serial console compatible
- Minimal system requirements
2025-12-17 22:20:24 -03:00
Pablo Lezaeta 5c3886a5d5 feat: Add mount.hfs/mount.hfs+ utilities and toolset targets
Mount Implementation:
- Standard Unix mount utilities for HFS and HFS+ filesystems
- Follows Unix/BSD/Linux mount conventions
- Works standalone or as mount(8) helper

Features:
- Standard options: -o ro/rw, -r/-w, -v, --help, --version
- Standard exit codes (0=success, 1=usage error, 32=mount failure)
- Filesystem validation (verifies HFS/HFS+ signatures)
- Mountpoint validation (checks directory exists)
- Clear error messages with helpful suggestions

Files Created:
- src/mount/mount_main.c - Entry point and option parsing
- src/mount/mount_hfs.c - HFS mount implementation
- src/mount/mount_hfsplus.c - HFS+ mount implementation
- src/mount/mount_common.h - Shared definitions
- src/mount/Makefile - Build system

Makefile Targets:
- make set-hfs: Builds mkfs.hfs, fsck.hfs, mount.hfs
- make set-hfsplus: Builds mkfs.hfs+, fsck.hfs+, mount.hfs+
  * Also creates .hfsplus symlinks (mkfs.hfsplus, etc.)

Test Updates:
- Added mount tests to test_mkfs.sh
- Tests handle missing kernel drivers gracefully
- Fail only on implementation errors, not missing drivers
- Verify successful mounts with mount table check

Error Handling:
- ENODEV: Suggests loading kernel module (modprobe hfs/hfsplus)
- EACCES/EPERM: Permission denied message
- EBUSY: Device or mountpoint busy
- Invalid filesystem: Clear signature validation error

Usage Examples:
  mount.hfs /dev/sdb1 /mnt/hfs
  mount.hfs+ -r /dev/sdb1 /mnt/hfsplus
  mount.hfs+ -o ro,sync /dev/loop0 /mnt/test
2025-12-17 21:58:23 -03:00
Pablo Lezaeta Reyes e929252b6e update small 2025-10-31 22:44:24 -03:00