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 908980 - Provide the conv=sparse option in dd
Summary: Provide the conv=sparse option in dd
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: coreutils
Version: 6.5
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Ondrej Vasik
QA Contact: Tomas Dolezal
URL:
Whiteboard:
Depends On:
Blocks: 998454
TreeView+ depends on / blocked
 
Reported: 2013-02-07 23:37 UTC by Federico Simoncelli
Modified: 2013-11-21 20:59 UTC (History)
2 users (show)

Fixed In Version: coreutils-8.4-22.el6
Doc Type: Enhancement
Doc Text:
Feature: Command dd is missing the conversion option for sparse file support format. Reason: This feature is quite useful when copying block devices to files to minimize the actual amount of data occupied. More specifically it is very handy when managing virtual machine images on different storages (iscsi, nfs, etc). Result (if any): Feature was implemented in the RHEL-6 coreutils package based on the upstream solution.
Clone Of:
: 998454 (view as bug list)
Environment:
Last Closed: 2013-11-21 20:59:31 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2013:1652 0 normal SHIPPED_LIVE Low: coreutils security, bug fix, and enhancement update 2013-11-20 21:53:21 UTC

Description Federico Simoncelli 2013-02-07 23:37:03 UTC
Description of problem:
At the moment dd (part of coreutils) is not supporting the conv=sparse option. Upstream the feature is present since Feb 27 2012:

4e776fa dd: add support for the conv=sparse option

Version-Release number of selected component (if applicable):
coreutils-8.4-19.el6.x86_64

How reproducible:
Always.

Steps to Reproduce:
1. $ dd if=/dev/zero of=/tmp/test.dd count=10 conv=sparse
  
Actual results:
dd: invalid conversion: `sparse'

Expected results:
$ stat -c %b /tmp/test.dd
0

Additional info:
This feature is quite useful when copying block devices to files to minimize the actual amount of data occupied. More specifically it is very handy when managing virtual machine images on different storages (iscsi, nfs, etc).

Comment 2 Ondrej Vasik 2013-02-08 09:43:09 UTC
Just for reference - related upstream commit is http://git.savannah.gnu.org/cgit/coreutils.git/commit/?id=4e776faa8482ae630d2ea9bc767298e664f07ba9 ... it should be easy to backport it. There is some tuning needed for the test (it's not working properly in initial version).

Comment 7 errata-xmlrpc 2013-11-21 20:59:31 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/RHSA-2013-1652.html


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