On Mon, Feb 22, 2016 at 06:53:23PM +0100, Henrik Asp wrote: > --path-regex' syntax does not map well to restoring specific files. > this patch introduces --path-from-file which takes a file listing > files to restore. > that file is memory mapped, and for every leaf, memmem is used to > check if fs_file is in that list. Is it supposed to match only full path or also substrings? The way it's implemented it can match just part of the path but I'm not sure if this is intended or not. Paths in path-from-file: /a/b/c/d In filesystem: /backup1/a/b/c/d /backup2/a/b/c/d I'd expect that the path would need to match absolutelly. Alternatively, we could do relative path matching, so: Paths in path-from-file: a/b/c/d would match both /backup[12]. Either way i find the matching rules ambiguous and not documented. Please clarify. -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
