Re: dd question (from man page)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 11/17/2014 03:03 PM, Cameron Simpson wrote:
On 17Nov2014 13:22, Rick Stevens <ricks@xxxxxxxxxxxxxx> wrote:
On 11/17/2014 11:28 AM, jd1008 issued this missive:
Man page says:
...
       fdatasync
              physically write output file data before finishing
       fsync  likewise, but also write metadata
There is no explanation about this, as dd is supposed to be agnostic
about the type of the data.
If a disk is being dd'ed  out to a file and the disk is mounted,
(which is a BAAAAD thing to do), then even there, dd is agnostic
about FS data and FS metadata.

So, what data and metadata is the manpage talking about?

I believe it's referring to LVM or BIOS RAID metadata.

Not at all. dd neither knows nor cares about the underlying disc metaphor (RAID, whatever). These two terms refer to the fdatasync and fsync system calls; see "man 2 fdatasync" and "man 2 fsync". To quote from the fdatasync manual entry:

fdatasync() flushes all data buffers of a file to disk (before the system
   call returns).  It resembles fsync() but is not required to update the
   metadata such as access time.

and has some followon discussion.

Cheers,
Cameron Simpson <cs@xxxxxxxxxx>

Never attribute to malice that which can be attributed to stupidity.
- Hanlon's Razor
Thank you Cameron.


--
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org




[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux