• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Status of getdirentriesattr()?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Status of getdirentriesattr()?


  • Subject: Status of getdirentriesattr()?
  • From: James Bucanek <email@hidden>
  • Date: Wed, 05 Sep 2012 11:21:39 -0700

Greetings,

I'm migrating away from the deprecated FS API and I am in the process of rewriting my directory reading routines.

Can anyone tell me the status of getdirentriesattr()?

One document says it's deprecated in 10.6. Another one doesn't say anything. Yet, in the docs included in Xcode 4.4.1 it's been removed from the documentation entirely. It's also stated that it's not supported on all filesystems.

I'm trying to read all of the entries in a directory, along with most of their metadata, as fast as I can. getdirentriesattr() would appear to fit the bill--unless it's really deprecated or not well supported.

Second question: is the only alternative to use readdir() to get an entry, construct a complete pathname to the item, and then use getattrlist() to obtain the metadata? Something akin to this loop:

    while ( (dirEntry=readdir(dir)) != NULL )
        {
        strlcpy( itemPath, path, sizeof(itemPath));
        strlcat( itemPath, "/", sizeof(itemPath));
        strlcat( itemPath, dirEntry->d_name, sizeof(itemPath));
if ( getattrlist(itemPath,&attrRequest,&attrBuffer,sizeof(attrBuffer))==0 )
            {
            ...
            }
        }

Finally, do I need to be worried about _DARWIN_FEATURE_64_BIT_INODE? Casual testing would indicate that it's always defined, so regardless of whether I'm compiling 32- or 64-bit code, the structs and functions will still use the 64-bit inode structures (which is clearly what I want).

Thanks

James
--
James Bucanek


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Filesystem-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Status of getdirentriesattr()?
      • From: Jim Luther <email@hidden>
  • Next by Date: Apple Raid Snapshots
  • Next by thread: Re: Status of getdirentriesattr()?
  • Index(es):
    • Date
    • Thread