Changeset View
Changeset View
Standalone View
Standalone View
sys/fs/fuse/fuse_vfsops.c
Show First 20 Lines • Show All 435 Lines • ▼ Show 20 Lines | fuse_vfsop_mount(struct mount *mp) | ||||
/* We need this here as this slot is used by getnewvnode() */ | /* We need this here as this slot is used by getnewvnode() */ | ||||
mp->mnt_stat.f_iosize = maxbcachebuf; | mp->mnt_stat.f_iosize = maxbcachebuf; | ||||
if (subtype) { | if (subtype) { | ||||
strlcat(mp->mnt_stat.f_fstypename, ".", MFSNAMELEN); | strlcat(mp->mnt_stat.f_fstypename, ".", MFSNAMELEN); | ||||
strlcat(mp->mnt_stat.f_fstypename, subtype, MFSNAMELEN); | strlcat(mp->mnt_stat.f_fstypename, subtype, MFSNAMELEN); | ||||
} | } | ||||
memset(mp->mnt_stat.f_mntfromname, 0, MNAMELEN); | memset(mp->mnt_stat.f_mntfromname, 0, MNAMELEN); | ||||
strlcpy(mp->mnt_stat.f_mntfromname, fspec, MNAMELEN); | strlcpy(mp->mnt_stat.f_mntfromname, fspec, MNAMELEN); | ||||
mp->mnt_iosize_max = MAXPHYS; | mp->mnt_iosize_max = maxphys; | ||||
/* Now handshaking with daemon */ | /* Now handshaking with daemon */ | ||||
fuse_internal_send_init(data, td); | fuse_internal_send_init(data, td); | ||||
out: | out: | ||||
if (err) { | if (err) { | ||||
FUSE_LOCK(); | FUSE_LOCK(); | ||||
if (data != NULL && data->mp == mp) { | if (data != NULL && data->mp == mp) { | ||||
▲ Show 20 Lines • Show All 247 Lines • Show Last 20 Lines |