Bug 510280 - Devices with non standard sector sizes causes problems.
Summary: Devices with non standard sector sizes causes problems.
Keywords:
Status: CLOSED DUPLICATE of bug 361951
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: parted
Version: 5.3
Hardware: All
OS: Linux
low
medium
Target Milestone: rc
: ---
Assignee: Joel Andres Granados
QA Contact: Release Test Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-07-08 15:01 UTC by Sachin Prabhu
Modified: 2009-07-13 11:30 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-07-13 11:30:28 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Sachin Prabhu 2009-07-08 15:01:14 UTC
A user reported a problem when using parted to add a label to a partition having a non standard sector size.


[root@archive1 ~]# parted /dev/sdc
Warning: Device /dev/sdc has a logical sector size of 1024.  Not all parts of
GNU Parted support this at the moment, and the working code is HIGHLY
EXPERIMENTAL.

GNU Parted 1.8.1
Using /dev/sdc
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) mklabel                                                         
*** glibc detected *** <unknown>: double free or corruption (out): 0x000000000394a800 ***
======= Backtrace: =========
/lib64/libc.so.6[0x339c071ce2]
/lib64/libc.so.6(cfree+0x8c)[0x339c07590c]
/usr/lib64/libparted-1.8.so.0[0x339b81a725]
/usr/lib64/libparted-1.8.so.0[0x339b848be4]


The dmesg identifies that the device has 1024 byte sector size.

  Vendor: DDN       Model: S2A 9550          Rev: 4.01
  Type:   Direct-Access                      ANSI SCSI revision: 05
SCSI device sdc: 3907041280 1024-byte hdwr sectors (4000810 MB)
sdc: Write Protect is off
sdc: Mode Sense: a7 00 10 08
SCSI device sdc: drive cache: write back w/ FUA
SCSI device sdc: 3907041280 1024-byte hdwr sectors (4000810 MB)
sdc: Write Protect is off
sdc: Mode Sense: a7 00 10 08
SCSI device sdc: drive cache: write back w/ FUA
 sdc: sdc1
sd 3:0:2:1: Attached scsi disk sdc
sd 3:0:2:1: Attached scsi generic sg4 type 0

When the user was requested to use standard 512 byte sector sizes, the problem was no longer seen.

parted should either support non standard sector sizes or give an explicit warning message when used with a device having non standard sector sizes.

Comment 1 Joel Andres Granados 2009-07-13 11:30:28 UTC

*** This bug has been marked as a duplicate of bug 361951 ***


Note You need to log in before you can comment on or make changes to this bug.