RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 624335 - blockdev-setbsz succeeds, but does not affect blockdev-getbsz
Summary: blockdev-setbsz succeeds, but does not affect blockdev-getbsz
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: libguestfs
Version: 6.2
Hardware: All
OS: Linux
low
low
Target Milestone: rc
: ---
Assignee: Richard W.M. Jones
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On: 624334 1016465
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-08-16 02:59 UTC by Jinxin Zheng
Modified: 2014-10-14 06:34 UTC (History)
8 users (show)

Fixed In Version: libguestfs-1.20.11-4.el6
Doc Type: Deprecated Functionality
Doc Text:
The blockdev_setbsz API has been deprecated and now does nothing, since the underlying implementation (`blockdev --setbsz`) never did anything useful; see bug #1002825 for further details.
Clone Of: 624334
Environment:
Last Closed: 2014-10-14 06:34:40 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1002825 0 medium CLOSED [FJ6.4 Bug] Changing block size is accidentally canceled by following open() system call. 2021-02-22 00:41:40 UTC
Red Hat Product Errata RHBA-2014:1458 0 normal SHIPPED_LIVE libguestfs bug fix update 2014-10-14 01:10:57 UTC

Internal Links: 1002825

Description Jinxin Zheng 2010-08-16 02:59:42 UTC
+++ This bug was initially created as a clone of Bug #624334 +++

Version-Release number of selected component (if applicable):
libguestfs-1.2.7-1.23.el6.x86_64

How reproducible:
Always

Steps to Reproduce:
$ guestfish -a test.img
...
><fs> blockdev-getbsz /dev/sda
4096
><fs> blockdev-setbsz /dev/sda 2048
><fs> blockdev-getbsz /dev/sda
4096

Expected results:
blockdev-getbsz should return the latest block size we just set, or the blockdev-setbsz should return an error if the block size is not supported.

Comment 1 Richard W.M. Jones 2010-11-24 09:07:37 UTC
Deferring to 6.2.  We don't understand why this happens
(likely to be a kernel issue if anything) and we have no
upstream fix for it at present.

Comment 3 Richard W.M. Jones 2011-06-10 09:14:01 UTC
Deferring to 6.3, since no customer or user has raised the issue.

It's still highly likely that this is a kernel bug.

Comment 5 Wanlong Gao 2011-12-29 05:58:13 UTC
reported to LKML:
https://lkml.org/lkml/2011/12/28/181

Thanks,
-Wanlong Gao

Comment 6 Richard W.M. Jones 2012-02-06 13:24:28 UTC
I don't think we have any kind of solution for this
bug yet, so I am deferring it again to 6.4.

Comment 7 RHEL Program Management 2012-07-10 05:51:55 UTC
This request was not resolved in time for the current release.
Red Hat invites you to ask your support representative to
propose this request, if still desired, for consideration in
the next release of Red Hat Enterprise Linux.

Comment 8 RHEL Program Management 2012-07-11 00:01:22 UTC
This request was erroneously removed from consideration in Red Hat Enterprise Linux 6.4, which is currently under development.  This request will be evaluated for inclusion in Red Hat Enterprise Linux 6.4.

Comment 9 Richard W.M. Jones 2012-08-10 13:16:28 UTC
Still don't believe there is any kernel solution
for this (it's a kernel bug, nothing to do with libguestfs).
Deferring to RHEL 6.5.

Comment 11 Richard W.M. Jones 2013-06-08 12:16:02 UTC
I'm closing this as WONTFIX since:

 - No customer reported it.

 - It's in a very rarely used API.

 - It's trivial to work around it.

 - It's a kernel bug.

 - There is no fix for it.

Comment 12 Richard W.M. Jones 2013-09-20 08:53:05 UTC
https://bugzilla.redhat.com/show_bug.cgi?id=1002825 sheds more
light on this issue.

Comment 13 Richard W.M. Jones 2013-10-08 08:37:42 UTC
Reopening.  We should deprecate these calls and document
that they never worked.

Comment 16 bfan 2014-07-02 05:21:21 UTC
Verified it by checking documentation.

version: libguestfs-1.20.11-8.el6.x86_64

Comment 17 errata-xmlrpc 2014-10-14 06:34:40 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2014-1458.html


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