Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

udiskslinuxdevice: Fix dm-multipath ATA drives handling #1289

Merged
merged 1 commit into from
Jun 25, 2024

Conversation

tbzatek
Copy link
Member

@tbzatek tbzatek commented Jun 12, 2024

The dm-multipath devices are actually capable of tunneling ioctls down to the drive through an active path. It might be actually dangerous to approach the particular paths directly, in parallel or async.

This change refrains from any probing on ATA devices which are part of a dm-multipath device. The actual dm-multipath device is probed instead.

However the dm-multipath device carries only a small number of udev attributes that still need to be retrieved from the particular path.

TODO (future PR):

  • ignore filesystem signatures on device path nodes
  • disable some drive operations like eject or power-off?
  • do we want to add some dm-multipath test devices finally?

Needs storaged-project/libblockdev#1033

The dm-multipath devices are actually capable of tunneling ioctls
down to the drive through an active path. It might be actually dangerous
to approach the particular paths directly, in parallel or async.

This change refrains from any probing on ATA devices which are part
of a dm-multipath device. The actual dm-multipath device is probed
instead.

However the dm-multipath device carries only a small number of udev
attributes that still need to be retrieved from the particular path.
@tbzatek
Copy link
Member Author

tbzatek commented Jun 24, 2024

Jenkins, test this please.

@tbzatek tbzatek changed the title [WIP] udiskslinuxdevice: Fix dm-multipath ATA drives handling udiskslinuxdevice: Fix dm-multipath ATA drives handling Jun 24, 2024
@tbzatek
Copy link
Member Author

tbzatek commented Jun 24, 2024

/packit build

@tbzatek tbzatek merged commit cd8314b into storaged-project:master Jun 25, 2024
10 of 20 checks passed
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