sysprog21 / simplefs

A simple native file system for Linux kernel
Other
362 stars 91 forks source link

New mkfs.simplefs version can not format a device (/dev) file. #52

Closed cbkadal closed 3 months ago

cbkadal commented 3 months ago

E.g., when "mkfs.simplefs /dev/sdb1" ERROR: BLKGETSIZE64 Bad address.

jserv commented 3 months ago

E.g., when "mkfs.simplefs /dev/sdb1" ERROR: BLKGETSIZE64 Bad address.

Can you try commit 5e11fa703e47514d828dcb1d599e0ff7d69bd35b ?

cbkadal commented 3 months ago

mkfs.simplefs works again.

simplefs$ uname -r
6.9.0-241vbox-14

simplefs$ arch
x86_64

simplefs$ sudo ./mkfs.simplefs /dev/sdb1
Superblock: (4096)
    magic=0xdeadce
    nr_blocks=2560
    nr_inodes=2576 (istore=46 blocks)
    nr_ifree_blocks=1
    nr_bfree_blocks=1
    nr_free_inodes=2575
    nr_free_blocks=2511
Inode store: wrote 46 blocks
    inode size = 72 B
Ifree blocks: wrote 1 blocks
Bfree blocks: wrote 1 blocks

Will test is later. Thanks!

jserv commented 3 months ago

I defer to @HotMercury for confirmation.

HotMercury commented 3 months ago

Hi @cbkadal I am able to run sudo ./mkfs.simplefs /dev/loop9 normally on version 6.8. Are you still encountering execution errors?

jserv commented 3 months ago

Close as there is no further action.