Commits

Anonymous committed 7e926a0

Reflect changes to kernel

  • Participants
  • Parent commits 7612193

Comments (0)

Files changed (1)

File o9fs_vfsops.c

 		return EIO;
 	printvp(VFSTOO9FS(mp)->vroot);
 
-	error = copyinstr(path, mp->mnt_stat.f_mntonname, MNAMELEN - 1, &len);
-	if (error)
-		return error;
-	bzero(mp->mnt_stat.f_mntonname + len, MNAMELEN - len);
-	
-	error = copyinstr(args.hostname, mp->mnt_stat.f_mntfromname, MNAMELEN - 1, &len);
-	if (error)
-		return error;
-	bzero(mp->mnt_stat.f_mntfromname + len, MNAMELEN - len);
+	bzero(mp->mnt_stat.f_mntonname, MNAMELEN);
+	strlcpy(mp->mnt_stat.f_mntonname, path, MNAMELEN);
+	bzero(mp->mnt_stat.f_mntfromname, MNAMELEN);
+	strlcpy(mp->mnt_stat.f_mntfromname, args.hostname, MNAMELEN);
 	return 0;
 }
 
 		flags |= FORCECLOSE;
 
 	fp->f_count--;
-	FRELE(fp);
+	FRELE(fp, p);
 	vrele(vp);
 
 	error = vflush(mp, NULL, flags);