mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-27 13:32:45 +00:00
Add a hack (kludge?) to avoid trying to access files backed by disk
devices as though they were backed by network devices.
This commit is contained in:
parent
1f0b8b7582
commit
f9751ec2cd
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=99558
@ -408,6 +408,10 @@ nfs_open(upath, f)
|
||||
return (ENXIO);
|
||||
}
|
||||
|
||||
#ifdef __sparc64__
|
||||
if (strcmp(f->f_dev->dv_name, "net") != 0)
|
||||
return(EINVAL);
|
||||
#endif
|
||||
if (!(desc = socktodesc(*(int *)(f->f_devdata))))
|
||||
return(EINVAL);
|
||||
|
||||
|
@ -254,6 +254,10 @@ tftp_open(path, f)
|
||||
struct iodesc *io;
|
||||
int res;
|
||||
|
||||
#ifdef __sparc64__
|
||||
if (strcmp(f->f_dev->dv_name, "net") != 0)
|
||||
return (EINVAL);
|
||||
#endif
|
||||
tftpfile = (struct tftp_handle *) malloc(sizeof(*tftpfile));
|
||||
if (!tftpfile)
|
||||
return (ENOMEM);
|
||||
|
Loading…
Reference in New Issue
Block a user