Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-6185

Windows stat / lstat are inefficient - may calculate mode too frequently

    XMLWordPrintable

Details

    • Bug
    • Status: Accepted
    • Normal
    • Resolution: Unresolved
    • PUP 4.4.1
    • None
    • None
    • Windows

    Description

      Based on how stat and lstat are patched in Windows, there are a couple of problems:

      To fix this, first capture the non-Windows behavior in tests. Find out if stat / lstat types are calculated immediately or not (as class methods, I would presume they're asked for then immediately thrown away). Similarly, ensure the behavior of the patched mode is consistent with other platforms.

      The goal is to ensure that our file system access patterns are inline with the semantics that these APIs normally impose.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ethan Ethan Brown
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Zendesk Support