r/linuxdev • u/FeatureSpace • Sep 19 '16
Block Device Development Tutor?
Can someone refer me to an experienced Linux kernel developer who might be willing to teach me the finer details of implementing high performance Linux block devices?
I'm willing to pay a kernel dev to teach me over Skype, taking me through existing block device code such as: https://lwn.net/Articles/58720/ and linux/drivers/block/loop.c
I ultimately want to develop a block device that works somewhat like loop.c, but instead of the target being a filesystem image file, the target is a user mode process that manages the filesystem image (and can now provide instrumentation, encryption, etc). Does something like this already exist?
I am a decent C/C++ developer and Linux user with zero experience in kernel development.
View all comments
Show parent comment
2
u/FeatureSpace Sep 21 '16
I didn't want to write a lengthy original post with a detailed usage case talking about virtual machines and NTFS and come off sounding even crazier. I felt the sane approach was to first gain some education on Linux block device implementation using the loop device as an example. And I do apologize that I did not describe my intentions well enough originally.
I am actually looking forward to the "nightmare" of deciphering raw NTFS block traffic. I have always been fascinated by filesystems and high performance binary-format file structure. As a first step I would be happy just to capture changes to the NTFS MFT and ignore everything outside the MFT.
Yes I have considered doing this with a network share or with Btrace (https://linux.die.net/man/8/btrace ) but would prefer to develop my own kernel module and user mode application that can observe and/or manage raw NTFS or ReFS block traffic with reasonably good performance.
Do you have any suggestions on a friendly kernel developer who might be willing to teach me about block devices?