On Fri, Aug 22, 2014 at 3:59 PM, Anton Aylward
On 08/22/2014 01:28 PM, Greg Freemyer wrote:
So the only place I have yet found that even allows the "directory" flag is linux, but the linux kernel blocks it from working because it doesn't provide read or write access to raw directories. If I ever saw a feature that was broken by design this seems to be it.
Indeed. The argument processing for this http://www.opensource.apple.com/source/file_cmds/file_cmds-220.7/dd/args.c apples out of Berkeley, doesn't seem to mention 'directory"
That looks to be a totally different source tree than openSUSE is using. For opensuse: # Get the source tarball from OBS:
osc co Base:System coreutils
# unzip the tarball
cd Base:System/coreutils quilt setup coreutils.spec
# cd to the source directory
cd coreutils-8.23/src
dd.c is only 2344 lines long. It looks like the only use of "flag=directory,no_atime,no_follow" is to set the 3 flags: O_DIRECTORY O_NOATIME O_NOFOLLOW which are in turn passed to fd_reopen(..) I have a feeling someone just went through the list of flags you can pass to open and created an argument for everyone they could conceivably think of a use for. To see if there was ever a use case for any of them you would need to look at the git tree (and I'm not up to that much research.) Greg -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org