Opened 13 years ago

#69 new defect

block-file-emu fails in emu SMP

Reported by: gut Owned by: becoulet
Priority: major Milestone:
Component: arch/emu Keywords: emu, smp, fs, fork, clone
Cc:

Description

Block-file-emu emulates a block device behavior by accessing a file on the host system.

Processors in emu SMP mode are emulated by creating processes, done by calling fork(). But with fork(), file descriptors are not passed to child processes, and thus accesses to the block device from other processors fail.

On Linux hosts, the only ones on which the SMP mode is supported, we should call clone(CLONE_FILES) to create others processors in order to share all file descriptors.

Change History (0)

Note: See TracTickets for help on using tickets.