RO permission on odd numbered MTD devices?

Mike Hill mhill at
Wed Sep 19 17:16:48 EDT 2001

Can anyone tell me why the odd numbered MTD character devices are ReadOnly?

I see the code in MTDCHAR.C, but I have no idea what it was setup this way.

 /* You can't open the RO devices RW */
 if ((file->f_mode & 2) && (minor & 1))
  return -EACCES;

Thanks for any understanding you can provide...

Michael Hill - Systems Developer

Bus-Tech, Inc.
Email: mhill at
Phone: (919) 847-7859   Fax: (919) 847-0182

Say "boolah boolah boolah" out loud three times,
wave a dead chicken, and reboot.
Works for me...

More information about the linux-mtd mailing list