21 Commits

Author SHA1 Message Date
Azat Khuzhin
6d606a796c simplefs_create_fs_object: fix memory leaking of temporary record 2013-09-14 13:48:15 +04:00
Azat Khuzhin
a315571b05 Use d_alloc_root() instead of d_make_root() in linux kernel < 3.3
d_alloc_root() is gone in 32991ab305ace7017c62f8eecbe5eb36dc32e13b.

Link: https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=32991ab305ace7017c62f8eecbe5eb36dc32e13b
2013-09-10 23:45:45 +04:00
Azat Khuzhin
18df3131a2 Don't change filp->f_pos in fops->iterate. (linux kernel >= 3.11)
iterate_dir() already change filp->f_pos (using ctx->f_pos).
Thanks to Ivan.

Discussion: 3f472cec01 (commitcomment-4057234)
2013-09-10 22:21:59 +04:00
Azat Khuzhin
b42b87a9bc Implement file_operations.iterate instead of deprecated readdir
In newer version of kernel, since 3.11, readdir was dropped and the
replacment is iterate.
2013-08-15 01:08:56 +04:00
Sankar சங்கர்
7e6b073449 Update parent directory inode children count on new file/subdir creation. 2013-08-05 22:46:19 +05:30
Sankar சங்கர்
a68d101c93 basic write support 2013-07-28 21:26:46 +05:30
Sankar சங்கர்
22f33bcd32 mkidr support for simplefs 2013-07-27 18:45:38 +05:30
Sankar சங்கர்
6c591e9eb3 create file support 2013-07-27 01:02:11 +05:30
Sankar சங்கர்
356bceb273 read support for existing files 2013-07-24 17:29:50 +05:30
Sankar சங்கர்
3ad58de506 Lindent sources 2013-04-23 14:29:30 +05:30
Sankar சங்கர்
b5aa56df68 readdir and lookup support so ls works fine without errors 2013-04-23 14:27:02 +05:30
Sankar சங்கர்
f5cf481557 mkfs creates a welcome file. readdir(ls) tries to list this file 2013-04-22 23:53:59 +05:30
Sankar சங்கர்
fec3cb7f9b Added a convenince inline function for generic inode to simplefs inode conversion 2013-04-22 21:16:25 +05:30
Sankar சங்கர்
c8275e0bf6 Start using the convenience inline functions 2013-04-22 21:12:52 +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 சங்கர்
e0e7618c8e Load inode of the root dir from disk. Support readdir (ls) on root directory. 2013-04-22 16:45:25 +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
Sankar சங்கர்
f050b4f8e7 Patched to support 'cd' to the mountpoint and do an 'ls' there 2013-03-17 14:22:56 +05:30
Sankar சங்கர்
24df8c8c44 Code for: [Un]Register filesystem, [un]mount simplefs, Superblock placeholder 2013-03-16 14:47:45 +05:30
Sankar சங்கர்
9cbdc4cc9f Starting with a hello world kernel module 2013-03-10 20:25:26 +05:30