On Thursday 01 March 2007 06:11, Ben Hutchings wrote: > On further thinking, I realise there are several problems with the > patch: > 1. It tries to probe even if open_filesystem is false (already > identified). > 2. It can return after maximize_extended_partition() without rolling > that change back. > 3. It doesn't check whether the existing invalid filesystem geometry > returned by the probe is valid. > > This should fix those problems by combining all the work that's > conditional on the open_filesystem flag:
This patch again results in the start of the ntfs partition being moved to sector 63. Here's the relevant bit from the partman log: <snip> parted_server: main_loop: iteration 41 parted_server: Opening infifo /lib/partman/active_partition/70resize/do_option: IN: VIRTUAL_RESIZE_PARTITION =dev=scsi=host0=bus0=target0=lun0=disc 1048576-20972568575 15000000000 parted_server: Read command: VIRTUAL_RESIZE_PARTITION parted_server: command_virtual_resize_partition() parted_server: Note =dev=scsi=host0=bus0=target0=lun0=disc as changed parted_server: Opening outfifo parted_server: Resizing partition with id 1048576-20972568575 parted_server: partition_with_id(1048576-20972568575) parted_server: New size: 15000000000 parted_server: resize_partition(openfs=false) parted_server: try to check the file system for errors parted_server: successfully checked parted_server: Note =dev=scsi=host0=bus0=target0=lun0=disc as unchanged parted_server: OUT: OK parted_server: OUT: 32256-15002910719 parted_server: Closing infifo and outfifo </snip> I liked the previous version better ;-)
pgpYWjoapu44k.pgp
Description: PGP signature