Opened 13 years ago

Closed 13 years ago

#61 closed defect (duplicate)

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 (1)

comment:1 Changed 13 years ago by becoulet

Resolution: duplicate
Status: newclosed
Note: See TracTickets for help on using tickets.