On Mon, Sep 04, 2017 at 02:05:34PM +0900, Misono, Tomohiro wrote: > Since cmd_inspect_rootid() calls btrfs_open_dir(), it rejects a file to > be spcified. But as the document says, a file should be supported. > > This patch introduces btrfs_open_file_or_dir(), which is a counterpart > of btrfs_open_dir(), to safely check and open btrfs file or directory. > The original btrfs_open_dir() codes are moved to btrfs_open() and shared > by both function. > > Signed-off-by: Tomohiro Misono <misono.tomohiro@xxxxxxxxxxxxxx> Applied, thanks. Can you please send a testcase for that? -- 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
