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

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

    Details

    • Type: Bug
    • Status: Accepted
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: PUP 4.4.1
    • Fix Version/s: PUP 5.y
    • Component/s: None
    • Labels:

      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

              • Assignee:
                Unassigned
                Reporter:
                ethan Ethan Brown
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Zendesk Support