From 0f65e07042ba53a5b8a9d4fa7581aaf8d072d110 Mon Sep 17 00:00:00 2001 From: d0p1 Date: Fri, 19 Jul 2024 10:38:51 +0200 Subject: [PATCH] fix: extended ascii rendering issue --- .github/workflows/doc.yml | 3 ++- kernel/fs/stpdfs.inc | 30 ++++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+), 1 deletion(-) diff --git a/.github/workflows/doc.yml b/.github/workflows/doc.yml index ec084d1..7b69096 100644 --- a/.github/workflows/doc.yml +++ b/.github/workflows/doc.yml @@ -28,7 +28,8 @@ jobs: sudo apt-get install build-essential naturaldocs - name: generate-docs run: | - make docs + locale-gen en_US.ISO8859-2 + LANG=en_US.ISO8859-2 make docs - name: setup-pages uses: actions/configure-pages@v4 - name: upload-artifact diff --git a/kernel/fs/stpdfs.inc b/kernel/fs/stpdfs.inc index 805c410..d714286 100644 --- a/kernel/fs/stpdfs.inc +++ b/kernel/fs/stpdfs.inc @@ -93,6 +93,34 @@ DEFN StpdFS_Sb ;; .zone - TODO ;; .actime - TODO ;; .modtime - TODO + ;; + ;; + ;; Zone 0-6 are direct, zone 7 indirect, zone 8 double indirect, zone 9 triple indirect + ;; > ┌────────┐ + ;; > │ │ + ;; > ┌───────►│Data │ + ;; > │ │ │ + ;; > ┌──────┐ Direct│ └────────┘ + ;; > │zone 0├───────┘ + ;; > ├──────┤ + ;; > │... │ + ;; > ├──────┤ ┌────────┐ ┌────────┐ + ;; > │zone 6│ │ ├─────►│ │ + ;; > ├──────┤ Indirect │ │ │ Data │ + ;; > │zone 7├─────────►│ │ │ │ + ;; > ├──────┤ └────────┘ └────────┘ + ;; > │zone 8├───────┐ + ;; > ├──────┤ │Double indirect┌─────────┐ ┌────────┐ ┌─────────┐ + ;; > │zone 9│ └──────────────►│ ├───►│ ├───►│ │ + ;; > └──┬───┘ │ │ │ │ │ Data │ + ;; > │ │ │ │ │ │ │ + ;; > │ └─────────┘ └────────┘ └─────────┘ + ;; > │ Triple indirect ┌────────┐ + ;; > └────────────────►│ │ ┌──────────┐ ┌─────────┐ ┌──────────┐ + ;; > │ ├───►│ │ │ │ │ │ + ;; > │ │ │ ├─────►│ ├─────►│ Data │ + ;; > └────────┘ │ │ │ │ │ │ + ;; > └──────────┘ └─────────┘ └──────────┘ struc StpdFS_Inode { .mode dw ? .nlink dw ? @@ -117,6 +145,8 @@ struc StpdFS_Dirent { } DEFN StpdFS_Dirent +STPDFS_DIRENT_PER_BLOCK = sizeof.StpdFS_Dirent / STPDFS_BSIZE + ; ------------------------------------------------------------------------ ;; Section: Implementation