Disable two users of findcdev. They do the wrong thing now and will
need to be fixed. In both cases the API should be reengineered to do something (more) sensible.
This commit is contained in:
parent
7a94b58748
commit
7649bbb0b0
@ -200,6 +200,7 @@ venus_open(void *mdp, CodaFid *fid, int flag,
|
||||
struct ucred *cred, struct proc *p,
|
||||
/*out*/ struct cdev **dev, ino_t *inode)
|
||||
{
|
||||
#if 0
|
||||
int cflag;
|
||||
DECL(coda_open); /* sets Isize & Osize */
|
||||
ALLOC(coda_open); /* sets inp & outp */
|
||||
@ -218,6 +219,9 @@ venus_open(void *mdp, CodaFid *fid, int flag,
|
||||
|
||||
CODA_FREE(inp, coda_open_size);
|
||||
return error;
|
||||
#else
|
||||
return (EOPNOTSUPP);
|
||||
#endif
|
||||
}
|
||||
|
||||
int
|
||||
|
@ -523,7 +523,11 @@ snpioctl(dev, cmd, data, flags, td)
|
||||
snp = dev->si_drv1;
|
||||
switch (cmd) {
|
||||
case SNPSTTY:
|
||||
#if 0
|
||||
tdev = findcdev(*((dev_t *)data));
|
||||
#else
|
||||
tdev = NULL;
|
||||
#endif
|
||||
if (tdev == NULL)
|
||||
return (snp_down(snp));
|
||||
|
||||
|
@ -200,6 +200,7 @@ venus_open(void *mdp, CodaFid *fid, int flag,
|
||||
struct ucred *cred, struct proc *p,
|
||||
/*out*/ struct cdev **dev, ino_t *inode)
|
||||
{
|
||||
#if 0
|
||||
int cflag;
|
||||
DECL(coda_open); /* sets Isize & Osize */
|
||||
ALLOC(coda_open); /* sets inp & outp */
|
||||
@ -218,6 +219,9 @@ venus_open(void *mdp, CodaFid *fid, int flag,
|
||||
|
||||
CODA_FREE(inp, coda_open_size);
|
||||
return error;
|
||||
#else
|
||||
return (EOPNOTSUPP);
|
||||
#endif
|
||||
}
|
||||
|
||||
int
|
||||
|
Loading…
Reference in New Issue
Block a user