path: root/cmds-fi-usage.c
diff options
authorMisono, Tomohiro <>2017-09-04 14:05:34 +0900
committerDavid Sterba <>2017-09-08 16:15:05 +0200
commit88ef0b8397fa13f6114dc3ba5c8e88a7b7c992f9 (patch)
tree88ba31470ec21ef5884be89522cdbd5b00d93f92 /cmds-fi-usage.c
parentf47587d83db2fd7beaf1ceb9feb8c3e16e2b352c (diff)
btrfs-progs: inspect rootid: Allow a file to be specified
Since cmd_inspect_rootid() calls btrfs_open_dir(), it rejects a file to be specified. 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() content is moved to btrfs_open() and shared by both function. Signed-off-by: Tomohiro Misono <> Signed-off-by: David Sterba <>
Diffstat (limited to 'cmds-fi-usage.c')
0 files changed, 0 insertions, 0 deletions