[Bug 535939] New: wrong calculation with virtual_gb and sector_size options in scsi_debug
http://bugzilla.novell.com/show_bug.cgi?id=535939 Summary: wrong calculation with virtual_gb and sector_size options in scsi_debug Classification: openSUSE Product: openSUSE 11.1 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Minor Priority: P5 - None Component: Kernel AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: aschnell@novell.com QAContact: qa@suse.de Found By: Development When using a sector_size for scsi_debug different from the default 512B the size of the resuling disk is wrong. Disk size with default sector size: thalassa:~ # modprobe scsi-debug num_tgts=1 virtual_gb=1 thalassa:~ # grep sdc /proc/partitions 8 32 1048576 sdc Disk size with sector size 4kB: thalassa:~ # modprobe scsi-debug num_tgts=1 sector_size=4096 virtual_gb=1 thalassa:~ # grep sdc /proc/partitions 8 32 8388608 sdc -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=535939 Arvin Schnell <aschnell@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team-screening@forge.pr |kernel-maintainers@forge.pr |ovo.novell.com |ovo.novell.com -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=535939 http://bugzilla.novell.com/show_bug.cgi?id=535939#c1 --- Comment #1 from Jeff Mahoney <jeffm@novell.com> 2009-12-19 17:50:02 UTC --- Created an attachment (id=333560) --> (http://bugzilla.novell.com/attachment.cgi?id=333560) scsi_debug: scale virtual_gb with sector_size properly[PATCH] Patch-mainline: Probably 2.6.33; Acked on linux-scsi 17 Dec 2009 The scsi_debug virtual_gb feature currently assumes that the sector size is always 512 bytes and scales virtual_gb based on that assumption. When passed a different sector size, the capacity of the disk is scaled incorrectly higher than it should be. For example, modprobe scsi_debug virtual_gb=1 sector_size=4096 results in an 8 GB device. This patch scales it appropriately. Signed-off-by: Jeff Mahoney <jeffm@suse.com> -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=535939 http://bugzilla.novell.com/show_bug.cgi?id=535939#c2 Jeff Mahoney <jeffm@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |jeffm@novell.com Resolution| |FIXED --- Comment #2 from Jeff Mahoney <jeffm@novell.com> 2009-12-19 17:59:08 UTC --- I've committed to the SLE11, openSuSE 11.2, and master branches. Closing as FIXED. The SLE11 fix also fixes an issue with scsi_debug devices larger than 1 TB. That fix was added to mainline in 2.6.31, so it was included in 11.2 and master automatically. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=535939 http://bugzilla.novell.com/show_bug.cgi?id=535939#c3 Swamp Workflow Management <swamp@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status Whiteboard| |maint:released:11.1:29955 --- Comment #3 from Swamp Workflow Management <swamp@suse.com> 2010-01-14 16:01:49 UTC --- Update released for: kernel-debug, kernel-debug-base, kernel-debug-debuginfo, kernel-debug-debugsource, kernel-debug-extra, kernel-default, kernel-default-base, kernel-default-debuginfo, kernel-default-debugsource, kernel-default-extra, kernel-docs, kernel-kdump, kernel-kdump-debuginfo, kernel-kdump-debugsource, kernel-pae, kernel-pae-base, kernel-pae-debuginfo, kernel-pae-debugsource, kernel-pae-extra, kernel-ppc64, kernel-ppc64-base, kernel-ppc64-debuginfo, kernel-ppc64-debugsource, kernel-ppc64-extra, kernel-ps3, kernel-ps3-debuginfo, kernel-ps3-debugsource, kernel-source, kernel-source-debuginfo, kernel-syms, kernel-trace, kernel-trace-base, kernel-trace-debuginfo, kernel-trace-debugsource, kernel-trace-extra, kernel-vanilla, kernel-vanilla-debuginfo, kernel-vanilla-debugsource, kernel-xen, kernel-xen-base, kernel-xen-debuginfo, kernel-xen-debugsource, kernel-xen-extra Products: openSUSE 11.1 (debug, i586, ppc, x86_64) -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=535939 http://bugzilla.novell.com/show_bug.cgi?id=535939#c4 Swamp Workflow Management <swamp@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status Whiteboard|maint:released:11.1:29955 |maint:released:11.1:29955 | |maint:released:sle11:29948 --- Comment #4 from Swamp Workflow Management <swamp@suse.com> 2010-01-14 23:08:48 UTC --- Update released for: cluster-network-kmp-default, cluster-network-kmp-pae, cluster-network-kmp-xen, ext4dev-kmp-default, ext4dev-kmp-pae, ext4dev-kmp-vmi, ext4dev-kmp-xen, kernel-default, kernel-default-base, kernel-default-debuginfo, kernel-default-debugsource, kernel-default-extra, kernel-pae, kernel-pae-base, kernel-pae-debuginfo, kernel-pae-debugsource, kernel-pae-extra, kernel-source, kernel-source-debuginfo, kernel-syms, kernel-vmi, kernel-vmi-base, kernel-vmi-debuginfo, kernel-vmi-debugsource, kernel-vmi-extra, kernel-xen, kernel-xen-base, kernel-xen-debuginfo, kernel-xen-debugsource, kernel-xen-extra Products: SLE-DEBUGINFO 11 (i386) SLE-DESKTOP 11 (i386) SLE-HAE 11 (i386) SLE-SERVER 11 (i386) -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=535939 http://bugzilla.novell.com/show_bug.cgi?id=535939#c5 Marcus Meissner <meissner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |meissner@novell.com --- Comment #5 from Marcus Meissner <meissner@novell.com> 2010-01-15 13:50:05 UTC --- A kernel update for SUSE Linux Enterprise 11 and openSUSE 11.1 was just released, with version 2.6.27.42-0.1.1, that mentions/fixes this bug. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=535939 http://bugzilla.novell.com/show_bug.cgi?id=535939#c6 Swamp Workflow Management <swamp@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status Whiteboard|maint:released:11.1:29955 |maint:released:11.1:29955 |maint:released:sle11:29948 |maint:released:sle11:29948 | |maint:released:sle11:29952 --- Comment #6 from Swamp Workflow Management <swamp@suse.com> 2010-01-15 23:08:48 UTC --- Update released for: cluster-network-kmp-default, cluster-network-kmp-xen, ext4dev-kmp-default, ext4dev-kmp-xen, kernel-default, kernel-default-base, kernel-default-debuginfo, kernel-default-debugsource, kernel-default-extra, kernel-source, kernel-source-debuginfo, kernel-syms, kernel-xen, kernel-xen-base, kernel-xen-debuginfo, kernel-xen-debugsource, kernel-xen-extra Products: SLE-DEBUGINFO 11 (x86_64) SLE-DESKTOP 11 (x86_64) SLE-HAE 11 (x86_64) SLE-SERVER 11 (x86_64) -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=535939 http://bugzilla.novell.com/show_bug.cgi?id=535939#c7 Swamp Workflow Management <swamp@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status Whiteboard|maint:released:11.1:29955 |maint:released:11.1:29955 |maint:released:sle11:29948 |maint:released:sle11:29948 |maint:released:sle11:29952 |maint:released:sle11:29952 | |maint:released:11.2:30542 --- Comment #7 from Swamp Workflow Management <swamp@suse.com> 2010-02-08 13:37:57 UTC --- Update released for: kernel-debug, kernel-debug-base, kernel-debug-base-debuginfo, kernel-debug-debuginfo, kernel-debug-debugsource, kernel-debug-devel, kernel-debug-devel-debuginfo, kernel-default, kernel-default-base, kernel-default-base-debuginfo, kernel-default-debuginfo, kernel-default-debugsource, kernel-default-devel, kernel-default-devel-debuginfo, kernel-desktop, kernel-desktop-base, kernel-desktop-base-debuginfo, kernel-desktop-debuginfo, kernel-desktop-debugsource, kernel-desktop-devel, kernel-desktop-devel-debuginfo, kernel-pae, kernel-pae-base, kernel-pae-base-debuginfo, kernel-pae-debuginfo, kernel-pae-debugsource, kernel-pae-devel, kernel-pae-devel-debuginfo, kernel-source, kernel-source-vanilla, kernel-syms, kernel-trace, kernel-trace-base, kernel-trace-base-debuginfo, kernel-trace-debuginfo, kernel-trace-debugsource, kernel-trace-devel, kernel-trace-devel-debuginfo, kernel-vanilla, kernel-vanilla-base, kernel-vanilla-base-debuginfo, kernel-vanilla-debuginfo, kernel-vanilla-debugsource, kernel-vanilla-devel, kernel-vanilla-devel-debuginfo, kernel-xen, kernel-xen-base, kernel-xen-base-debuginfo, kernel-xen-debuginfo, kernel-xen-debugsource, kernel-xen-devel, kernel-xen-devel-debuginfo, preload-kmp-default, preload-kmp-desktop Products: openSUSE 11.2 (debug, i586, x86_64) -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=535939 http://bugzilla.novell.com/show_bug.cgi?id=535939#c8 Swamp Workflow Management <swamp@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status Whiteboard|maint:released:11.1:29955 |maint:released:11.1:29955 |maint:released:sle11:29948 |maint:released:sle11:29948 |maint:released:sle11:29952 |maint:released:sle11:29952 |maint:released:11.2:30542 |maint:released:11.2:30542 | |maint:released:sle11:29953 --- Comment #8 from Swamp Workflow Management <swamp@suse.com> 2010-02-12 10:12:35 UTC --- Update released for: kernel-default-extra, kernel-pae-extra, kernel-vmi-extra, kernel-xen-extra Products: SLE-SERVER 11-EXTRA (i386) -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com