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:
Poul-Henning Kamp 2005-03-15 12:39:30 +00:00
parent 7a94b58748
commit 7649bbb0b0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=143637
3 changed files with 12 additions and 0 deletions

View file

@ -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

View file

@ -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));

View file

@ -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