Skip to content

Conversation

@flxo
Copy link
Contributor

@flxo flxo commented May 31, 2021

Implement AsRawFd and IntoRawFd for LoopControl and LoopDevice
Getting the raw fd of loop control can be neccecary because the
next_free and attach operation is (unfortunately) not atomic. The fd
can be used to acquire a flock.

Add IntoRawFd for LoopDevice.
Add metadata to LoopDevice.

Felix Obenhuber added 2 commits May 31, 2021 13:04
Getting the raw fd of loop control can be neccecary because the
`next_free` and `attach` operation is (unfortunately) not atomic. The fd
can be used to acquire a `flock`.

Add `IntoRawFd` for LoopDevice.
Getting the `Metadata` is usefull to access the major/minor number of
the device that is needed when using the loopdev in combination with
device-mapper.
@mdaffin mdaffin merged commit 576a69d into mdaffin:master May 31, 2021
@flxo flxo deleted the pr-ext branch September 3, 2021 08:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants