fs: allow mounting filesystems at /
Previously, filesystems could not be mounted at '/' because mount points were restricted to being at least 2 characters. Since '/' corresponds to the standard POSIX root filesystem location, reduce the minimum length of a mount point to 1 character. With that, we can mount a POSIX root filesystem. Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>
This commit is contained in:
parent
60da065f03
commit
ec7d272979
1 changed files with 1 additions and 1 deletions
|
|
@ -686,7 +686,7 @@ int fs_mount(struct fs_mount_t *mp)
|
|||
|
||||
len = strlen(mp->mnt_point);
|
||||
|
||||
if ((len <= 1) || (mp->mnt_point[0] != '/')) {
|
||||
if ((len == 0) || (mp->mnt_point[0] != '/')) {
|
||||
LOG_ERR("invalid mount point!!");
|
||||
return -EINVAL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue