mirror of
https://github.com/psankar/simplefs.git
synced 2025-07-25 23:14:33 +02:00
Simplify build instructions
This commit is contained in:
parent
5b5062b46e
commit
a3d7c0337e
26
README
26
README
@ -13,24 +13,12 @@ install linux kernel sources and run make from the checkedout directory.
|
|||||||
To test:
|
To test:
|
||||||
---------
|
---------
|
||||||
|
|
||||||
One-time-activity:
|
|
||||||
|
|
||||||
linux-okb0:/home/psankar/src/simplefs > dd bs=4096 count=100 if=/dev/zero of=image
|
~/src/simplefs> make
|
||||||
linux-okb0:/home/psankar/src/simplefs > mkdir mount
|
~/src/simplefs> dd bs=4096 count=100 if=/dev/zero of=image
|
||||||
|
100+0 records in
|
||||||
Repeat everytime after making changes to the source:
|
100+0 records out
|
||||||
|
409600 bytes (410 kB) copied, 0.00175839 s, 233 MB/s
|
||||||
linux-okb0:/home/psankar/src/simplefs > make
|
~/src/simplefs> ./mkfs-simplefs image
|
||||||
linux-okb0:/home/psankar/src/simplefs > su - ; # switch to root user if not already, or use sudo
|
|
||||||
|
|
||||||
# Creating a loop back device and formatting it with our shiny, brand new simplefs
|
|
||||||
|
|
||||||
linux-okb0:/home/psankar/src/simplefs # losetup /dev/loop0
|
|
||||||
losetup: /dev/loop0: No such file or directory
|
|
||||||
linux-okb0:/home/psankar/src/simplefs # losetup /dev/loop0 image
|
|
||||||
linux-okb0:/home/psankar/src/simplefs # ./mkfs-simplefs /dev/loop0
|
|
||||||
Super block written succesfully
|
Super block written succesfully
|
||||||
linux-okb0:/home/psankar/src/simplefs # losetup -d /dev/loop0
|
~/src/simplefs>
|
||||||
linux-okb0:/home/psankar/src/simplefs # losetup /dev/loop0
|
|
||||||
losetup: /dev/loop0: No such file or directory
|
|
||||||
linux-okb0:/home/psankar/src/simplefs #
|
|
||||||
|
@ -33,10 +33,10 @@ int main(int argc, char *argv[])
|
|||||||
/* Just a redundant check. Not required ideally. */
|
/* Just a redundant check. Not required ideally. */
|
||||||
if (ret != SIMPLEFS_DEFAULT_BLOCK_SIZE)
|
if (ret != SIMPLEFS_DEFAULT_BLOCK_SIZE)
|
||||||
printf
|
printf
|
||||||
("bytes written [%d] are not equal to the default block size",
|
("bytes written [%d] are not equal to the default block size\n",
|
||||||
(int)ret);
|
(int)ret);
|
||||||
else
|
else
|
||||||
printf("Super block written succesfully");
|
printf("Super block written succesfully\n");
|
||||||
|
|
||||||
close(fd);
|
close(fd);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user