]> Projects (at) Tadryanom (dot) Me - AdrOS.git/commit
Fix mount/umount commands: use proper syscall wrappers and error messages
authorTulio A M Mendes <[email protected]>
Sun, 19 Apr 2026 18:23:01 +0000 (15:23 -0300)
committerTulio A M Mendes <[email protected]>
Sun, 19 Apr 2026 18:23:01 +0000 (15:23 -0300)
commitc559f0125b8119b7b5f2564e08cbe91dcfedb395
tree8630d43b889023556a5a3a1b1a355053a5d1b51a
parente53b1b798ac5c0ea2f8196197de9622b592bf2ed
Fix mount/umount commands: use proper syscall wrappers and error messages

mount.c: Replace direct _syscall3 call with mount() wrapper from
sys/mount.h. Print strerror(errno) instead of raw -1 return value
from __syscall_ret, which was always -1 and unhelpful for debugging.

umount.c: Replace stub that always printed 'operation not supported'
with a working implementation using the umount() wrapper from
sys/mount.h. The SYS_UMOUNT2 syscall existed in the kernel but the
umount command never used it.

Tests: 103/103 PASS
user/cmds/mount/mount.c
user/cmds/umount/umount.c