On Fri, Aug 25, 2017 at 09:34:49AM +0900, Misono, Tomohiro wrote: > On 2017/08/25 2:37, David Sterba wrote: > > On Thu, Aug 24, 2017 at 04:39:53PM +0900, Misono, Tomohiro wrote: > >> "btrfs inspect-internal rootid <path>" rejects a file to be specified in > >> the implementation. > >> Therefore change "file or directory" to "directory" in the doc. > > > > Is there a reason why a file should not be accepted? The ioctl supports > > that just fine. > > I thought ioctl would work for file, but current code checks whether > <path> is directory or not in the first place. So, I change the doc. > > If it is better to change the code rather than the doc, I will do that. > What do you think? There are helpers that can open either file or directory from a given path, eg. open_file_or_dir3 so it can be used. -- 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
