2.6: fs/coda/dir.c: coda_hasmknod seems to be buggy

From: Adrian Bunk
Date: Thu Jan 06 2005 - 16:50:55 EST


Function coda_mknod in fs/coda/dir.c (I checked 2.6.10-mm2) stats with:

<-- snip -->

...
static int coda_mknod(struct inode *dir, struct dentry *de, int mode, dev_t rdev)
{
int error=0;
const char *name=de->d_name.name;
int length=de->d_name.len;
struct inode *inode;
struct CodaFid newfid;
struct coda_vattr attrs;

if ( coda_hasmknod == 0 )
return -EIO;

<more code>
...

<-- snip -->


The problem is that not a single place in the kernel assigns any value
to coda_hasmknod.


cu
Adrian

--

"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/