You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mapreduce-issues@hadoop.apache.org by "Alan Burlison (JIRA)" <ji...@apache.org> on 2015/07/22 21:12:06 UTC

[jira] [Updated] (MAPREDUCE-6416) Not all platforms have d_type in struct dirent

     [ https://issues.apache.org/jira/browse/MAPREDUCE-6416?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alan Burlison updated MAPREDUCE-6416:
-------------------------------------
    Attachment: MAPREDUCE-6416

> Not all platforms have d_type in struct dirent
> ----------------------------------------------
>
>                 Key: MAPREDUCE-6416
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-6416
>             Project: Hadoop Map/Reduce
>          Issue Type: Sub-task
>          Components: build
>    Affects Versions: 2.7.0
>         Environment: Solaris
>            Reporter: Alan Burlison
>            Assignee: Alan Burlison
>         Attachments: MAPREDUCE-6416
>
>
> list() in hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-nativetask/src/main/native/src/lib/FileSystem.cc assumes that struct dirent always contains a d_type field which can be used to determine the type of the directory entry. This field is non-POSIX and is not available on all platforms. On platforms where it is not available, stat() should be used instead to determine the type of the directory entry.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)