mount -tcoda /dev/cfs0 /mnt no longer works in -test9 and newer?
Hi!
It complains
coda_read_super: Bad mount datacoda_read_super: device index: 0
and will not mount. What do I need to mount coda?
Pavel
Signature · 6 lines
I'm [email protected]. "In my country we have almost anarchy and I don't care." Panos Katsaloulis describing me w.r.t. patents at [email protected] - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] Please read the FAQ at http://www.tux.org/lkml/
Quoted 9 lines · Pavel Machek
Hi!
It complains
coda_read_super: Bad mount datacoda_read_super: device index: 0and will not mount. What do I need to mount coda?
Pavel
Miklos Szeredi sent a patch to support multiple mountpoints/coda devices. However, the code falls back on the default device (cfs0) when the mountdata is incorrect. So the problem must be unrelated to the "Bad mount data" error message.
The code to mount with the correct mountdata looks like this:
#include <linux/coda.h>
muxfd = open("/dev/cfs0", O_RDWR);
struct coda_mount_data mountdata;
mountdata.version = CODA_MOUNT_VERSION;
mountdata.fd = muxfd
error = mount("coda", "/coda", "coda", MS_MGC_VAL,
(void *)&mountdata);Jan
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/
[BUG] coda went from c 67 5 to c 67 0 [was Re: mount -tcoda /dev/cfs0 /mnt no longer works in -test9 and newer?]
In reply to Pavel MachekHi!
I found where problem with coda lies: it went from character device at 67:5 to character device at 67:0. Ouch, ugly. Is it bug or what?
Pavel
Signature · 6 lines
I'm [email protected]. "In my country we have almost anarchy and I don't care." Panos Katsaloulis describing me w.r.t. patents at [email protected] - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] Please read the FAQ at http://www.tux.org/lkml/
Hi!
Quoted 15 lines
Quoted 7 lines
It complains
coda_read_super: Bad mount datacoda_read_super: device index: 0and will not mount. What do I need to mount coda?
PavelMiklos Szeredi sent a patch to support multiple mountpoints/coda devices. However, the code falls back on the default device (cfs0) when the mountdata is incorrect. So the problem must be unrelated to the "Bad mount data" error message.
The code to mount with the correct mountdata looks like this:
Quoted 10 lines
#include <linux/coda.h>
muxfd = open("/dev/cfs0", O_RDWR);
struct coda_mount_data mountdata;
mountdata.version = CODA_MOUNT_VERSION;
mountdata.fd = muxfd
error = mount("coda", "/coda", "coda", MS_MGC_VAL,
(void *)&mountdata);This does not work:
open("/dev/cfs0", O_RDWR) = -1 ENODEV (No such device)
mount("coda", "/mnt", "coda", 0xc0ed0000, 0xbffffc04coda_read_super:
Bad filecoda_read_super: device index: 0coda_read_super: No pseudo device
) = -1 EINVAL (Invalid argument)_exit(-1) = ?
:-(. [I attached full source to my mount utility.]
Pavel
Signature · 2 lines
I'm [email protected]. "In my country we have almost anarchy and I don't care." Panos Katsaloulis describing me w.r.t. patents at [email protected]
#include <dirent.h>
#include <stdio.h>
#include <fcntl.h>
#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <signal.h>
#include <unistd.h>
#include <errno.h>
#include <sys/types.h>
#ifdef SOLARIS
#include <sys/types32.h>
#include <sys/fcntl.h>
#include <sys/mount.h>
#include <sys/mntent.h>
#include <sys/mnttab.h>
#endif
#include <sys/stat.h>
#include <sys/time.h>
#include "/usr/src/linux/include/linux/coda.h"
#define MS_MGC_VAL 0xC0ED0000 /* magic flag number to indicate "new" flags */
void main(void)
{
int muxfd = open("/dev/cfs0", O_RDWR);
int error;
struct coda_mount_data mountdata;
mountdata.version = CODA_MOUNT_VERSION;
mountdata.fd = muxfd;
error = mount("coda", "/mnt", "coda", MS_MGC_VAL,
(void *)&mountdata);
}Re: [BUG] coda went from c 67 5 to c 67 0 [was Re: mount -tcoda /dev/cfs0 /mnt no longer works in -test9 and newer?]
In reply to Pavel MachekQuoted 5 lines · Pavel Machek
Hi!
I found where problem with coda lies: it went from character device at 67:5 to character device at 67:0. Ouch, ugly. Is it bug or what?
Pavel
No, it always has been c67,0. It simply ignored the minor number up until recently.
Jan
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/