Skip to content

community_8_headers_minifs

grisun0 edited this page Nov 30, 2026 · 1 revision

headers: minifs

Community 8 | 12 files | cohesion 0.61

Definition

This community groups 12 file(s) rooted at headers with dominant language c (cohesion 0.61). Central symbols: BLOCK_H, BLOCK_SHIFT, BLOCK_SIZE, CHECK, EXT4_ENCRYPT_FL, EXT4_EXTENTS_FL, EXT4_EXT_MAGIC, EXT4_EXT_UNINIT. Core file: headers/minifs.h (77 symbols). Documented purpose: Block device abstraction for MiniFS. Maps 4096-byte logical blocks to 512-byte IDE sectors..

Files

File Language Layer Symbols Doc
fs/ext4.c c utility 38 yes
fs/fat32.c c utility 31 yes
fs/fsimg.c c utility 5 yes
fs/kfile.c c utility 31 yes
fs/vfs.c c utility 44 yes
headers/block.h h utility 14 yes
headers/ext4.h h utility 15 yes
headers/fat32.h h utility 16 yes
headers/fsimg.h h utility 6 yes
headers/minifs.h h utility 77 yes
tests/test_ext4.c c testing 31 yes
tests/test_fat32.c c testing 29 yes

Key Symbols

  • EXT4_SUPER_OFF (macro, fs/ext4.c:18) #define EXT4_SUPER_OFF
  • EXT4_MAGIC (macro, fs/ext4.c:19) #define EXT4_MAGIC
  • EXT4_EXT_MAGIC (macro, fs/ext4.c:20) #define EXT4_EXT_MAGIC
  • EXT4_S_IFMT (macro, fs/ext4.c:21) #define EXT4_S_IFMT
  • EXT4_S_IFREG (macro, fs/ext4.c:22) #define EXT4_S_IFREG
  • EXT4_S_IFDIR (macro, fs/ext4.c:23) #define EXT4_S_IFDIR
  • EXT4_S_IFLNK (macro, fs/ext4.c:24) #define EXT4_S_IFLNK
  • EXT4_EXTENTS_FL (macro, fs/ext4.c:25) #define EXT4_EXTENTS_FL
  • EXT4_INDEX_FL (macro, fs/ext4.c:26) #define EXT4_INDEX_FL
  • EXT4_ENCRYPT_FL (macro, fs/ext4.c:27) #define EXT4_ENCRYPT_FL
  • EXT4_INLINE_FL (macro, fs/ext4.c:28) #define EXT4_INLINE_FL
  • EXT4_EXT_UNINIT (macro, fs/ext4.c:29) #define EXT4_EXT_UNINIT
  • EXT4_MBR_LINUX (macro, fs/ext4.c:30) #define EXT4_MBR_LINUX
  • ext_ld16 (function, fs/ext4.c:32) static unsigned ext_ld16(const unsigned char *p)
  • ext_ld32 (function, fs/ext4.c:36) static unsigned long ext_ld32(const unsigned char *p)
  • ext_geo_t (struct, fs/ext4.c:44) - Filesystem geometry from the superblock. 64-bit block counts ride along (real disks use them) but ev
  • ext_parse_sb (function, fs/ext4.c:55) static int ext_parse_sb(const fsimg_t *img, ext_geo_t *g)
  • ext_inode_off (function, fs/ext4.c:92) static int ext_inode_off(const fsimg_t *img, const ext_geo_t *g, - Byte offset of an inode. Group and index arithmetic is 64-bit and * fenced to the image before any r
  • ext_ino_t (struct, fs/ext4.c:115) - Decoded inode: kind (0 file, 1 dir), size, extent root or legacy * block list (copied, so later read
  • ext_read_inode (function, fs/ext4.c:122) static int ext_read_inode(const fsimg_t *img, const ext_geo_t *g,
  • ext_map_down (function, fs/ext4.c:168) static int ext_map_down(const fsimg_t *img, const ext_geo_t *g, const unsigned c
  • ext_map (function, fs/ext4.c:171) static int ext_map(const fsimg_t *img, const ext_geo_t *g, co
  • ext_map_leaf (function, fs/ext4.c:211) static int ext_map_leaf(const fsimg_t *img, const ext_geo_t *g, - } r = ext_map_down(img, g, root, nent, lblk, node); if (r <= 0) break; for (d = 0; d < 60 && d < g->
  • only (function, fs/ext4.c:352) * listings only ('.' skipped, '..' refused). "" or "/" is root (2). */ static in
  • ext_resolve (function, fs/ext4.c:356) static int ext_resolve(const fsimg_t *img, const ext_geo_t *g,
  • ext_file_block (function, fs/ext4.c:464) static int ext_file_block(const fsimg_t *img, const ext_geo_t *g, - Read one logical file block of an open inode into blk (block * sized). Holes and uninitialized exten
  • ext4_list (function, fs/ext4.c:485) int ext4_list(const char *imgpath, const char *dirpath, char names
  • ext_split (function, fs/ext4.c:580) static int ext_split(const char *path, char *img, char *extp) - Split "imgpath:extpath" (first ':' wins; image names never carry * one). ext paths run deeper than F
  • ext4_vfs_open (function, fs/ext4.c:585) int ext4_vfs_open(const char *path, int mode, void **handle)
  • ext4_vfs_read (function, fs/ext4.c:626) int ext4_vfs_read(void *handle, void *buf, unsigned long pos,

Internal vs External Edges

  • Internal resolved imports (EXTRACTED): 25
  • Cross-boundary resolved imports (EXTRACTED): 16

Connections

  • [EXTRACTED] depends_on community 0 <-> 8 (strength 0.9): Extracted import edge crosses communities: drivers/block.c imports headers/block.h.
  • [EXTRACTED] depends_on community 8 <-> 2 (strength 0.9): Extracted import edge crosses communities: tests/test_ext4.c imports kernel/string.c.

Risks

  • [dataflow DEAD_STORE] fs/kfile.c:103 kpipe_pair ref: ref assigned at line 103 but never read afterwards.

Open Questions

  • What would break if the most connected file in headers: minifs changed?
  • Should headers: minifs be split, given cohesion 0.61?

Sources

Start

Wiki

Agent Docs

Recipes

Clone this wiki locally