Ticket #189 (new defect)

Opened 2 years ago

Last modified 2 years ago

bug on resize after move ext2

Reported by: UndiFineD Assigned to:
Priority: minor Milestone:
Component: parted Version: 1.8.8
Keywords: Cc:

Description


the error:
(parted) resize 3 1078 40000
Warning: Block 1114628 shouldn't have been marked (0, 1)!
Warning: Block 1180164 shouldn't have been marked (0, 1)!
Warning: Block 1245700 shouldn't have been marked (0, 1)!
Warning: Block 1311236 shouldn't have been marked (0, 1)!
Warning: Block 3736068 shouldn't have been marked (0, 1)!
Warning: Block 3801604 shouldn't have been marked (0, 1)!
Warning: Block 3867140 shouldn't have been marked (0, 1)!
Warning: Block 3932676 shouldn't have been marked (0, 1)!

# parted DEVICE unit co print unit s print

partitions:
Model: SAMSUNG SP0411N (ide)
Disk /dev/hdb: 78242975s
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number Start End Size Type File system Flags
1 63s 2104514s 2104452s primary linux-swap boot
3 2104515s 36089843s 33985329s primary ext2

(parted) print free

Model: SAMSUNG SP0411N (ide)
Disk /dev/hdb: 40.1GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number Start End Size Type File system Flags
1 32.3kB 1078MB 1077MB primary linux-swap boot
3 1078MB 18.5GB 17.4GB primary ext2
18.5GB 40.1GB 21.6GB Free Space

# parted --version
GNU Parted 1.8.1

Comment:
after moving partition 3 behind the swap partition, resize failed
I suppose 'dd' cleaning out the old location on the disk
would prevent this error

Attachments

Change History

03/25/08 14:28:43 changed by UndiFineD

  • version changed from 1.8.1 to 1.8.8.


make[1]: Entering directory `/root/parted-1.8.8/tests'
make check-TESTS
make[2]: Entering directory `/root/parted-1.8.8/tests'
* ok 1: create the test file
* ok 2: run parted -s FILE mklabel msdos
* ok 3: expect no output
* ok 4: erase the left-over label
* ok 5: run parted mklabel (without -s) on a blank disk
* ok 6: create expected output file
* ok 7: check its "interactive" output
* ok 8: create interactive input
* ok 9: rerun that same command, but now with a preexisting label
* ok 10: normalize the actual output
* ok 11: create expected output file
* ok 12: check its output -- slightly different here, due to prompts
* passed all 12 test(s)
PASS: t0000-basic.sh
* ok 1: setup: create the most basic partition table, manually
* ok 2: print the empty table
* ok 3: prepare actual and expected output
* ok 4: check for expected output
* passed all 4 test(s)
PASS: t0100-print.sh
* ok 1: create a file too small to hold a fat32 file system
* ok 2: label the test disk
* ok 3: expect no output
* ok 4: try/fail to create a file system in too small a space
* ok 5: create expected output file
* ok 6: check for expected failure diagnostic
* ok 7: clean up, preparing for next test
* ok 8: create a file large enough to hold a fat32 file system
* ok 9: label the test disk
* ok 10: expect no output
* ok 11: create an msdos file system
* ok 12: expect no output
* passed all 12 test(s)
PASS: t1000-mkpartfs.sh
* This test requires an erasable device and you have not properly
* set the $DEVICE_TO_ERASE and $DEVICE_TO_ERASE_SIZE envvars.
* skip all tests in t1100
* passed all 0 test(s)
PASS: t1100-busy-label.sh
* ok 1: setup
* ok 2: try to create an ext2 partition that is one byte too small
* ok 3: check for expected diagnostic
* ok 4: create the smallest ext2 partition
* ok 5: setup
* ok 6: create another ext2 file system (this would fail for parted-1.8.7)
* ok 7: expect no output
* ok 8: create a smaller one; this would succeed for parted-1.8.7
* ok 9: expect no output
* passed all 9 test(s)
PASS: t1500-small-ext2.sh
* ok 1: create a file large enough to hold a fat32 file system
* ok 2: label the test disk
* ok 3: expect no output
* ok 4: create a partition
* ok 5: create an msdos file system
* ok 6: expect no output
* ok 7: create a file large enough to hold a fat32 file system
* ok 8: label the test disk
* ok 9: expect no output
* ok 10: create input file
* ok 11: create a partition and a filesystem in the same session
* ok 12: normalize the actual output
* ok 13: check for expected prompt
* ok 14: setup: create and label a device
* ok 15: try to create a file system with invalid type name
* ok 16: normalize the actual output
* ok 17: check for expected diagnostic
* ok 18: setup: create and label a device
* ok 19: try to create an ext2 file system of size 16795000
* ok 20: check for empty output
* ok 21: setup: create and label a device
* ok 22: try to create an ext2 file system of size 16796000
* ok 23: check for empty output
* ok 24: setup: create and label a device
* ok 25: try to create an ext2 file system of size 16796160
* ok 26: check for empty output
* ok 27: setup: create and label a device
* ok 28: try to create an ext2 file system of size 16797000
* ok 29: check for empty output
* ok 30: setup: create and label a device
* ok 31: try to create an ext2 file system of size 16798000
* ok 32: check for empty output
* ok 33: setup: create and label a device
* ok 34: try to create an ext2 file system of size 17154000
* ok 35: check for empty output
* ok 36: setup: create and label a device
* ok 37: try to create an ext2 file system of size 17155000
* ok 38: check for empty output
* ok 39: setup: create and label a device
* ok 40: try to create an ext2 file system of size 17156000
* ok 41: check for empty output
* ok 42: setup: create and label a device
* ok 43: try to create an ext2 file system of size 17157000
* ok 44: check for empty output
* ok 45: setup: create and label a device
* ok 46: try to create an ext2 file system of size 17158000
* ok 47: check for empty output
* ok 48: setup: create and label a device
* ok 49: try to create an ext2 file system of size 25184000
* ok 50: check for empty output
* ok 51: setup: create and label a device
* ok 52: try to create an ext2 file system of size 25185000
* ok 53: check for empty output
* ok 54: setup: create and label a device
* ok 55: try to create an ext2 file system of size 25186000
* ok 56: check for empty output
* ok 57: setup: create and label a device
* ok 58: try to create an ext2 file system of size 25589000
* ok 59: check for empty output
* ok 60: setup: create and label a device
* ok 61: try to create an ext2 file system of size 25589000
* ok 62: check for empty output
* ok 63: setup: create and label a device
* ok 64: try to create an ext2 file system of size 25590000
* ok 65: check for empty output
* passed all 65 test(s)
PASS: t2000-mkfs.sh
* ok 1: setup: label and create a small ext2 partition
* ok 2: try to create another partition in the same place
* ok 3: normalize the actual output
* ok 4: check for expected output
* passed all 4 test(s)
PASS: t3000-constraints.sh
* ok 1: create the test file
* ok 2: run parted -s FILE mklabel msdos
* ok 3: check for empty output
* ok 4: make an ext2 primary partition
* ok 5: check for empty output
* FAIL 6: resize ext2 primary partition
parted -s $dev resize 1 0 $NEW_SIZE > out 2>&1
* FAIL 7: check for empty output
$compare out /dev/null
* failed 2 among 7 test(s)
FAIL: t3100-resize-ext2-partion.sh
===================================
1 of 8 tests failed
Please report to bug-parted@gnu.org
===================================
make[2]: *** [check-TESTS] Error 1
make[2]: Leaving directory `/root/parted-1.8.8/tests'
make[1]: *** [check-am] Error 2
make[1]: Leaving directory `/root/parted-1.8.8/tests'
make: *** [check-recursive] Error 1


# parted --version
parted (GNU parted) 1.8.8
Copyright (C) 2007 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by <http://parted.alioth.debian.org/cgi-bin/trac.cgi/browser/AUTHORS>.


(parted) unit MB
unit MB
(parted) print free
print free
Model: SAMSUNG SP0411N (ide)
Disk /dev/hdb: 40060MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number Start End Size Type File system Flags
1 0.03MB 1078MB 1077MB primary linux-swap boot
3 1078MB 18478MB 17400MB primary ext2
18478MB 40057MB 21579MB Free Space

(parted) resize 3 1078 40000
resize 3 1078 40000
error: block relocator should have relocated 516
(parted) print free
print free
Model: SAMSUNG SP0411N (ide)
Disk /dev/hdb: 40060MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 0.03MB 1078MB 1077MB primary linux-swap boot
3 1078MB 18478MB 17400MB primary ext2
18478MB 40057MB 21579MB Free Space

(parted) resize 3 1078 20000
resize 3 1078 20000
(parted) print free
print free
Model: SAMSUNG SP0411N (ide)
Disk /dev/hdb: 40060MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number Start End Size Type File system Flags
1 0.03MB 1078MB 1077MB primary linux-swap boot
3 1078MB 20000MB 18922MB primary ext2
20000MB 40057MB 20057MB Free Space

(parted) resize 3 1078 39000
resize 3 1078 39000
error: block relocator should have relocated 516

03/25/08 14:37:14 changed by UndiFineD


slowly resizing to the max possible ;-)

(parted) resize 3 1078 35450
resize 3 1078 35450
error: block relocator should have relocated 516
(parted) resize 3 1078 35440
resize 3 1078 35440
error: block relocator should have relocated 516
(parted) resize 3 1078 35430
resize 3 1078 35430
(parted) resize 3 1078 35435
resize 3 1078 35435
(parted) resize 3 1078 35438
resize 3 1078 35438
(parted) resize 3 1078 35439
resize 3 1078 35439
(parted) resize 3 1078 35440
resize 3 1078 35440
error: block relocator should have relocated 516
(parted) print free
print free
Model: SAMSUNG SP0411N (ide)
Disk /dev/hdb: 40060MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number Start End Size Type File system Flags
1 0.03MB 1078MB 1077MB primary linux-swap boot
3 1078MB 35438MB 34360MB primary ext2
35438MB 40057MB 4619MB Free Space


Add/Change #189 (bug on resize after move ext2)




Change Properties
Action