12 Commits

Author SHA1 Message Date
Azat Khuzhin
dad5b1c50e Initial support of journaling
- Reorder block numbers to make it more sequental for mkfs
- mkfs: adjust writing, to make it correct write journal blocks and ino too
- simplefs_iget: use fops for journal inode
- simplefs_iget: check sfs_inode->mode instead of i_mode (not initialized yet)
2014-10-02 02:20:37 +04:00
Azat Khuzhin
031f974c36 fix another inode leaking in simplefs_create_fs_object()
There we iterate over inodes using simplefs_get_inode(), while instead
we already have last inode number, just use it instead, and increment
some paddings to it (start inode, reserved inodes).

And form after this patch kedr shows that there is no leaks.
(but we must recheck it in the future.)
2013-09-30 02:34:05 +04:00
Azat Khuzhin
2d95ccf1a3 Start implementing verbose logging depends on macros. (SIMPLEFS_DEBUG)
In many cases we don't need such verbose loggin, just add macros to
print loggin only if SIMPLEFS_DEBUG isset.
And it will be installed by default. (in Makefile)
2013-09-29 18:09:44 +04:00
Azat Khuzhin
f72fbd4db6 Add new const SIMPLEFS_START_INO instead of magic number 2013-09-18 23:43:50 +04:00
Azat Khuzhin
f61cf26333 simple.h: drop trailing whitespaces 2013-09-18 23:43:17 +04:00
Sankar சங்கர்
6c591e9eb3 create file support 2013-07-27 01:02:11 +05:30
Sankar சங்கர்
ec223623dc Create and retrieve the rootdir inode from the inode store instead of the super block 2013-04-22 21:10:21 +05:30
Sankar சங்கர்
f2ae6c1536 Code comments 2013-04-22 17:02:29 +05:30
Sankar சங்கர்
e0e7618c8e Load inode of the root dir from disk. Support readdir (ls) on root directory. 2013-04-22 16:45:25 +05:30
Sankar சங்கர்
5201fe0520 Use fixed sized POSIX datatypes instead of platform dependent types 2013-04-19 15:42:34 +05:30
Sankar சங்கர்
3198c6614e Load superblock from disk for a simplefs formatted filesystem 2013-04-12 00:16:18 +05:30
Sankar சங்கர்
5b5062b46e mkfs-simplefs: An utility to create simplefs on a device. 2013-03-30 00:13:38 +05:30