Yes, I think keying off wipe makes some amount of sense. I'm not wild about special casing type == 'disk' but can see that it would be more backwards compatible.
I wonder if it would be clearer to have a ptable_handler that can be called by all of disk_handler, raid_handler, bcache_handler. There wouldn't be much left in disk_handler I guess but maybe that's OK!
Yes, I think keying off wipe makes some amount of sense. I'm not wild about special casing type == 'disk' but can see that it would be more backwards compatible.
I wonder if it would be clearer to have a ptable_handler that can be called by all of disk_handler, raid_handler, bcache_handler. There wouldn't be much left in disk_handler I guess but maybe that's OK!