Re: [PATCH v3 3/6] dm: handle failures in dm_table_set_restrictions

2025-04-08 Thread Damien Le Moal
On 4/9/25 8:51 AM, Benjamin Marzinski wrote: > If dm_table_set_restrictions() fails while swapping tables, > device-mapper will continue using the previous table. It must be sure to > leave the mapped_device in it's previous state on failure. Otherwise > device-mapper could end up using the old ta

[PATCH v3 3/6] dm: handle failures in dm_table_set_restrictions

2025-04-08 Thread Benjamin Marzinski
If dm_table_set_restrictions() fails while swapping tables, device-mapper will continue using the previous table. It must be sure to leave the mapped_device in it's previous state on failure. Otherwise device-mapper could end up using the old table with settings from the unused table. Do not upda