mke2fs freezes with device-mapper device

Stefan Kalkowski stefan.kalkowski at ...1...
Fri Nov 23 09:51:39 CET 2012


thanks for detailed bug report. The problem isn't located in L4Linux nor
in its block driver, but in the ATAPI driver. The creation of an EXT
filesystem resulted in: the Linux kernel requesting a lot of blocks at
once from the ATAPI driver. When the driver initiated DMA operations, it
doesn't respect the limit of blocks that is possible to transfer via
DMA. Thereby, the driver stucked when getting no further interrupts, and
the Linux block-layer stucked too.

I've described this behaviour in an issue in our issue-tracker:

To solve the problem, you might try the following patch:

or use the staging branch of the Genode repository.


On 11/20/2012 11:33 AM, Timur wrote:
> Hi!
> mke2fs with simple block device (l4linux + atapi drv) work's correctly, but if 
> i create encrypted device with cryptsetup, open it (there device mapper file 
> created) and try to create file system (on dm-device) using mke2fs  then 
> system freezes(infinitely write to device). I found that problem in fsync call 
> at 
> unix_flush(io_channel channel) function (mke2fs_source/lib/ext2fs/unix_io.c). 
> Help me to solve this problem) 
> .run file attached
> initrd with cryptsetup - 
> ------------------------------------------------------------------------------
> Monitor your physical, virtual and cloud infrastructure from a single
> web console. Get in-depth insight into apps, servers, databases, vmware,
> SAP, cloud infrastructure, etc. Download 30-day Free Trial.
> Pricing starts from $795 for 25 servers or applications!
> _______________________________________________
> Genode-main mailing list
> Genode-main at

Stefan Kalkowski
Genode Labs ยท

More information about the users mailing list