On Thu, Feb 09, 2023 at 05:18:56PM -0800, Brian C. Lane wrote: > The benefit of this is that you can now easily read the device without > triggering any udev events with: > > parted --script --readonly /dev/sda u s p free
This does not work on Linux if there are partitions that are not mounted. In that case _flush_cache still opens the partitions in WRONLY mode thus triggering udev. The problem seems to be that while _device_open gets the flags correctly (from _device_open_ro), _flush_cache looks at dev->read_only. ciao Arvin -- Arvin Schnell, <[email protected]> Senior Software Engineer, Research & Development SUSE Software Solutions Germany GmbH Frankenstraße 146 90461 Nürnberg Germany (HRB 36809, AG Nürnberg) Geschäftsführer: Ivo Totev, Andrew Myers, Andrew McDonald, Boudien Moerman
