···269269 test_case "writer large file" [ range 1_100_000 ] test_writer_large_file;
270270 test_case "writer compression" [ range 20000 ] test_writer_compression;
271271 ] )
272272-273273-let () = run "squashfs" [ suite ]
+4
lib/squashfs.ml
···158158 xattr_table_start : int64;
159159}
160160161161+let pp ppf t =
162162+ Fmt.pf ppf "<squashfs %a %d bytes>" pp_compression t.superblock.compression
163163+ (String.length t.data)
164164+161165(* Binary reading helpers — kept for single-field reads at dynamic offsets
162166 (metadata block headers, ID table entries) *)
163167let get_u16_le s off =
+3
lib/squashfs.mli
···5252type t
5353(** A SquashFS filesystem image. *)
54545555+val pp : t Fmt.t
5656+(** [pp] pretty-prints a SquashFS filesystem image. *)
5757+5558type inode
5659(** An inode in the filesystem. *)
5760
+4
lib/squashfs_writer.ml
···7474 mutable uid_gid_table : (int * int) list;
7575}
76767777+let pp ppf t =
7878+ Fmt.pf ppf "<squashfs-writer block_size=%d entries=%d>" t.block_size
7979+ (List.length t.root)
8080+7781(* Binary writing helper — kept for metadata block headers (single u16 field) *)
7882let set_u16_le buf off v =
7983 Bytes.set buf off (Char.chr (v land 0xff));
+3
lib/squashfs_writer.mli
···5252type t
5353(** A squashfs filesystem being constructed. *)
54545555+val pp : t Fmt.t
5656+(** [pp] pretty-prints a squashfs filesystem under construction. *)
5757+5558type compression =
5659 | Gzip
5760 | Lzma