Friday, June 16, 2006

Oops, loop(s)?

Recently, I was thinking about writing a new Linux device driver
which enables us using a file as a HDD, not a partition.

But, I was stupid.
Use losetup(8) , and that's all.
One more stupid thing is that I was reading KENREL_SRC/drivers/block/loop.c
and thought it perfect. After wondering why there is not any utility to use
its features two days or so, I got to know that just I was ignorant. :(

BTW, the reason I wanted such a driver is that I wanted to manipulate
disk image files of QEMU and VMWare on the host servers as normal
block devices. In this sense, as loop device has a pluggable filter
mechanism of (mainly encyription) kernel modules, still there could be some
room for my hacking. :)

No comments: