Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-4539

Exclude paths in Posix disk isolator should be absolute paths.

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.27.0
    • None
    • None

    Description

      Since du --exclude uses pattern matching. A relative path might accidentally matches an irrelevant directory/file. For instance,

      /tmp/testpath $ tree
      .
      ├── aaa
      │   └── exc
      │       └── file
      └── exc
          └── file
      
      3 directories, 2 files
      /tmp/testpath $ du --exclude /tmp/testpath/exc /tmp/testpath/
      8    /tmp/testpath/aaa/exc
      12    /tmp/testpath/aaa
      16    /tmp/testpath/
      /tmp/testpath $ du --exclude exc /tmp/testpath/
      4    /tmp/testpath/aaa
      8    /tmp/testpath/
      /tmp/testpath $
      

      Attachments

        Activity

          People

            jieyu Jie Yu
            jieyu Jie Yu
            Joris Van Remoortere Joris Van Remoortere
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: