Comment 53 for bug 548546

Revision history for this message
Ayan George (ayan) wrote :

The parameters taken by loop_clr_fd() are confusing -- the block device isn't necessary since struct loop_device has a block device member (lo_device) that gets set when loop_set_fd() is called. An instance of a struct loop_device is the only thing required to clear the fd.

Perhaps the attached patch fixes the API issue as well as the bug?