On 08/21/2014 03:55 PM, Greg Freemyer wrote:
I opened a bugzilla
https://bugzilla.novell.com/show_bug.cgi?id=893036
Basically it says either the man page is wrong or examples of how to use these args need to be added.
The best I could get to was:
dd if=tmp/ iflag=directory,noatime,nofollow of=tmp1/ oflag=directory
dd: failed to open tmp1: Is a directory.
At least that didn't give me a syntax error. What it should do I don't know.
I think this is wrong-headed, misguided. The man page says DD is to copy a file, not walk a directory tree. If you want to treat a directory as file, OK, but its an array of byes not a container. At best, I think that your /tmp -> tmp1 will give you another directory with what amounts to the inodes&names of the first. Not hard links, and you'll have screwed up one, possibly two file systems, Run FSCK ASAP. DD is most certainly NOT a tree walker. There are other file operations you can perform that give the same info as dd. Try cat /tmp tr /tmp od -cb /tmp Like dd these are all FILE operations. All give the same error: "Is a directory" That's what you get when you try running a file tool on a directory. One might think that this is meaningful dd if=/tmp iflag=directory,noatime,nofollow | od -cb Try it. I think that "iflag=directory" doesn't mean what you think it means! -- A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting frowned upon? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org