Blame


1 4338ef2e 2024-05-18 benni .POSIX:
2 4338ef2e 2024-05-18 benni
3 4338ef2e 2024-05-18 benni BIN = newfs_sufs fuse_sufs dumpfs_sufs
4 4338ef2e 2024-05-18 benni CFLAGS += -fno-strict-aliasing
5 4338ef2e 2024-05-18 benni
6 4338ef2e 2024-05-18 benni all: ${BIN}
7 4338ef2e 2024-05-18 benni
8 4338ef2e 2024-05-18 benni clean:
9 4338ef2e 2024-05-18 benni rm -f ${BIN} *.core test.img
10 4338ef2e 2024-05-18 benni
11 4338ef2e 2024-05-18 benni newfs: newfs_sufs
12 4338ef2e 2024-05-18 benni rm -f test.img
13 4338ef2e 2024-05-18 benni dd if=/dev/zero of=test.img bs=1K count=64
14 4338ef2e 2024-05-18 benni ./newfs_sufs -n -b 512 test.img
15 4338ef2e 2024-05-18 benni xxd -s 65536 test.img | head
16 4338ef2e 2024-05-18 benni xxd -s $$((261 * 32768)) test.img | head
17 4338ef2e 2024-05-18 benni
18 4338ef2e 2024-05-18 benni mount: fuse_sufs
19 4338ef2e 2024-05-18 benni mkdir -p mp
20 4338ef2e 2024-05-18 benni doas ./fuse_sufs -d -f -o allow_other -o default_permissions mp
21 4338ef2e 2024-05-18 benni
22 4338ef2e 2024-05-18 benni test:
23 4338ef2e 2024-05-18 benni doas chown $$(id -u) mp
24 4338ef2e 2024-05-18 benni echo 'Hello World' > mp/file
25 4338ef2e 2024-05-18 benni cat mp/file
26 4338ef2e 2024-05-18 benni rm mp/file
27 4338ef2e 2024-05-18 benni
28 4338ef2e 2024-05-18 benni dump: dumpfs_sufs
29 4338ef2e 2024-05-18 benni ./dumpfs_sufs test.img
30 4338ef2e 2024-05-18 benni
31 4338ef2e 2024-05-18 benni fuse_sufs: fuse_sufs.c sufs.h
32 4338ef2e 2024-05-18 benni ${CC} -o $@ fuse_sufs.c ${CFLAGS} -lfuse
33 4338ef2e 2024-05-18 benni
34 4338ef2e 2024-05-18 benni newfs_sufs: newfs_sufs.c sufs.h
35 4338ef2e 2024-05-18 benni ${CC} -o $@ newfs_sufs.c ${CFLAGS}
36 4338ef2e 2024-05-18 benni
37 4338ef2e 2024-05-18 benni dumpfs_sufs: dumpfs_sufs.c sufs.h
38 4338ef2e 2024-05-18 benni ${CC} -o $@ dumpfs_sufs.c ${CFLAGS}