From 82f5f14026c06f43e8fd6a9005ea7c6e92174d7d Mon Sep 17 00:00:00 2001 From: Kelvin Sherlock Date: Tue, 18 Aug 2015 14:00:50 -0400 Subject: [PATCH] root has storage type of $0f --- params.aii | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/params.aii b/params.aii index 5d38e85..1a643d7 100644 --- a/params.aii +++ b/params.aii @@ -83,8 +83,16 @@ wht: bra store dir + ; todo -- $d is for subdirectories. $f is for the volume root (inode 1) + ; (however, we could have hard link to inode 1 which is not the root!) + lda inode + cmp #1 + beq @root_dir lda #$0d bra store +@root_dir + lda #$0f + bra store reg lda #1 ; could base it on size but whatever! @@ -183,8 +191,7 @@ do_blocks proc export with dp,fst_parms with v1 - ; not sure if minix supports sparse blocks. could just estimate - ; based on file size. + ; minix supports sparse blocks. should just guess based on size... phx ; save phy ; save