[ 
https://issues.apache.org/jira/browse/MESOS-4539?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jie Yu updated MESOS-4539:
--------------------------
    Story Points: 2

> Exclude paths in Posix disk isolator should be absolute paths.
> --------------------------------------------------------------
>
>                 Key: MESOS-4539
>                 URL: https://issues.apache.org/jira/browse/MESOS-4539
>             Project: Mesos
>          Issue Type: Task
>            Reporter: Jie Yu
>            Assignee: Jie Yu
>             Fix For: 0.27.0
>
>
> Since du --exclude uses pattern matching. A relative path might accidentally 
> matches an irrelevant directory/file. For instance,
> {noformat}
> /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 $
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to