2025-06-20 17:44:27 +00:00
2025-06-15 09:28:16 +00:00
1
2025-06-20 17:44:27 +00:00
2025-06-20 17:00:56 +00:00
2025-06-20 17:07:33 +00:00
1
2025-06-20 17:44:27 +00:00
2025-06-15 20:46:49 +00:00

Usage:

make
sudo insmod libfs.ko
sudo mkdir /mnt/customfs
sudo mount -t customfs none /mnt/customfs
ls -la /mnt/customfs
# Должны быть:
# drwxrwxrwt books
# drwxr-xr-x authors

Testing:

echo hello > /mnt/customfs/books/test.txt
cat /mnt/customfs/books/test.txt
mkdir /mnt/customfs/books/subdir  # Ожидаемый результат: ошибка
mkdir /mnt/customfs/authors/ivan
ls -ld /mnt/customfs/authors/ivan  # Проверка прав: drwxrwxrwt
touch /mnt/customfs/authors/ivan/file  # Ожидаемый результат: ошибка
ln /mnt/customfs/books/test.txt /mnt/customfs/authors/ivan/link_to_test
rm /mnt/customfs/books/test.txt
ls /mnt/customfs/authors/ivan  # Должно быть пусто
sudo rmdir /mnt/customfs/books  # Ожидаемый результат: ошибка
sudo mv /mnt/customfs/books /mnt/customfs/books2  # Ожидаемый результат: ошибка
sudo umount /mnt/customfs
sudo rmmod libfs
Description
No description provided
Readme 83 KiB
Languages
C 82.6%
Shell 16.5%
Makefile 0.9%