Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add some basic bind filter functions #274

Merged
merged 10 commits into from
Feb 28, 2023

Commits on Feb 4, 2023

  1. Add some basic bind filter functions

    This change adds the ability to mount a a single folder or a volume
    inside another folder, using the bind filter API.
    
    While the API allows mounting multiple sources inside a single mount
    point, acting as an overlay, we disable this functionality in the ApplyFileBinding
    function.
    
    Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
    gabriel-samfira committed Feb 4, 2023
    Configuration menu
    Copy the full SHA
    726b1c3 View commit details
    Browse the repository at this point in the history

Commits on Feb 6, 2023

  1. Add some tests

    Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
    gabriel-samfira committed Feb 6, 2023
    Configuration menu
    Copy the full SHA
    9a22fe1 View commit details
    Browse the repository at this point in the history
  2. Move bind filter to different package

    Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
    gabriel-samfira committed Feb 6, 2023
    Configuration menu
    Copy the full SHA
    76c22e3 View commit details
    Browse the repository at this point in the history
  3. Use string in signature and fix getFinalPath

      * Properly close handle in getFinalPath()
      * Use string in function signature. mksyscall generates proper code to
        convert to utf16
      * Enable TestRemoveFileBinding on Windows Server 2019
    
    Windows Server 2019 only exposes 2 function in bindfltapi.dll:
    
      * BfRemoveMapping
      * BfSetupFilter
    
    Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
    gabriel-samfira committed Feb 6, 2023
    Configuration menu
    Copy the full SHA
    2c3a145 View commit details
    Browse the repository at this point in the history
  4. Use windows.UTF16ToString to decode string

    Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
    gabriel-samfira committed Feb 6, 2023
    Configuration menu
    Copy the full SHA
    e1b82b1 View commit details
    Browse the repository at this point in the history

Commits on Feb 7, 2023

  1. Optimize bfGetMappings signature

    Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
    gabriel-samfira committed Feb 7, 2023
    Configuration menu
    Copy the full SHA
    258cf20 View commit details
    Browse the repository at this point in the history
  2. Skip unsupported tests on ltsc2019

    Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
    gabriel-samfira committed Feb 7, 2023
    Configuration menu
    Copy the full SHA
    841fe89 View commit details
    Browse the repository at this point in the history

Commits on Feb 12, 2023

  1. Fix typo, add testcase

      * Additionally check if we can write to a read-only mount point, not
        just delete from it
      * No need to set FILE_FLAG_OPEN_REPARSE_POINT when opening a file
    
    Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
    gabriel-samfira committed Feb 12, 2023
    Configuration menu
    Copy the full SHA
    14245b8 View commit details
    Browse the repository at this point in the history
  2. Remove extra flags

    Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
    gabriel-samfira committed Feb 12, 2023
    Configuration menu
    Copy the full SHA
    d05c10d View commit details
    Browse the repository at this point in the history

Commits on Feb 13, 2023

  1. Add test to account for symlinks as sources

    Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
    gabriel-samfira committed Feb 13, 2023
    Configuration menu
    Copy the full SHA
    33c45b1 View commit details
    Browse the repository at this point in the history