Cut currdev dev and path fields for ZFS on the last colon.
Previously the code cut those fields on second colon, that prevented boot from boot environments with colon in their names. This change moves the limitation from dev field to path, which is empty by default. Reviewed by: allanjude, tsoome MFC after: 2 weeks Sponsored by: iXsystems, Inc. Differential Revision: https://reviews.freebsd.org/D16068
This commit is contained in:
parent
f4b3640475
commit
5e2169bda1
@ -662,7 +662,7 @@ zfs_parsedev(struct zfs_devdesc *dev, const char *devspec, const char **path)
|
||||
if (*np != ':')
|
||||
return (EINVAL);
|
||||
np++;
|
||||
end = strchr(np, ':');
|
||||
end = strrchr(np, ':');
|
||||
if (end == NULL)
|
||||
return (EINVAL);
|
||||
sep = strchr(np, '/');
|
||||
|
Loading…
x
Reference in New Issue
Block a user