> +
> +static int
> +dump_file_path(int argc, char **argv)
> +{
> + int err;
> + dsl_dataset_t *ds;
> + char *curp, *last;
> + objset_t *os;
> + uint64_t root_obj;
> +
> + /* identifiers: <dataset> <path> */
> + if (argc < 2) {
> + fprintf(stderr, "Must specify dataset and path\n");
> + return (EINVAL);
> + }
> + if (argv[1][0] != '/') {
might be helpful to create local variables for argv[0] and argv[1].
---
Reply to this email directly or view it on GitHub:
https://github.com/openzfs/openzfs/pull/29/files#r43468808
_______________________________________________
developer mailing list
developer@open-zfs.org
http://lists.open-zfs.org/mailman/listinfo/developer