public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* mount -tcoda /dev/cfs0 /mnt no longer works in -test9 and newer?
@ 2000-11-06  9:35 Pavel Machek
  2000-11-07 18:48 ` Jan Harkes
  0 siblings, 1 reply; 5+ messages in thread
From: Pavel Machek @ 2000-11-06  9:35 UTC (permalink / raw)
  To: kernel list

Hi!

It complains

coda_read_super: Bad mount data
coda_read_super: device index: 0

and will not mount. What do I need to mount coda?
								Pavel
-- 
I'm pavel@ucw.cz. "In my country we have almost anarchy and I don't care."
Panos Katsaloulis describing me w.r.t. patents at discuss@linmodems.org
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: mount -tcoda /dev/cfs0 /mnt no longer works in -test9 and newer?
  2000-11-06  9:35 mount -tcoda /dev/cfs0 /mnt no longer works in -test9 and newer? Pavel Machek
@ 2000-11-07 18:48 ` Jan Harkes
  2000-11-10 20:39   ` Pavel Machek
  0 siblings, 1 reply; 5+ messages in thread
From: Jan Harkes @ 2000-11-07 18:48 UTC (permalink / raw)
  To: Pavel Machek; +Cc: kernel list

On Mon, Nov 06, 2000 at 10:35:39AM +0100, Pavel Machek wrote:
> Hi!
> 
> It complains
> 
> coda_read_super: Bad mount data
> coda_read_super: device index: 0
> 
> and 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 majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: mount -tcoda /dev/cfs0 /mnt no longer works in -test9 and newer?
  2000-11-07 18:48 ` Jan Harkes
@ 2000-11-10 20:39   ` Pavel Machek
  2000-11-10 21:48     ` [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?] Pavel Machek
  0 siblings, 1 reply; 5+ messages in thread
From: Pavel Machek @ 2000-11-10 20:39 UTC (permalink / raw)
  To: kernel list; +Cc: jaharkes

[-- Attachment #1: muttWbQtHE --]
[-- Type: text/plain, Size: 1317 bytes --]

Hi!

> > It complains
> > 
> > coda_read_super: Bad mount data
> > coda_read_super: device index: 0
> > 
> > and 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);

This does not work:

open("/dev/cfs0", O_RDWR)               = -1 ENODEV (No such device)
mount("coda", "/mnt", "coda", 0xc0ed0000, 0xbffffc04coda_read_super:
Bad file
coda_read_super: device index: 0
coda_read_super: No pseudo device
) = -1 EINVAL (Invalid argument)
_exit(-1)                               = ?

:-(. [I attached full source to my mount utility.]
								Pavel
-- 
I'm pavel@ucw.cz. "In my country we have almost anarchy and I don't care."
Panos Katsaloulis describing me w.r.t. patents at discuss@linmodems.org

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: mount.c --]
[-- Type: text/x-csrc, Size: 785 bytes --]


#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);
}

^ permalink raw reply	[flat|nested] 5+ messages in thread

* 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?]
  2000-11-10 21:48     ` [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?] Pavel Machek
@ 2000-11-10 21:27       ` Jan Harkes
  0 siblings, 0 replies; 5+ messages in thread
From: Jan Harkes @ 2000-11-10 21:27 UTC (permalink / raw)
  To: Pavel Machek; +Cc: linux-kernel

On Fri, Nov 10, 2000 at 10:48:08PM +0100, Pavel Machek wrote:
> 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 majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [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?]
  2000-11-10 20:39   ` Pavel Machek
@ 2000-11-10 21:48     ` Pavel Machek
  2000-11-10 21:27       ` Jan Harkes
  0 siblings, 1 reply; 5+ messages in thread
From: Pavel Machek @ 2000-11-10 21:48 UTC (permalink / raw)
  To: kernel list, jaharkes; +Cc: jaharkes

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
-- 
I'm pavel@ucw.cz. "In my country we have almost anarchy and I don't care."
Panos Katsaloulis describing me w.r.t. patents at discuss@linmodems.org
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2000-11-10 21:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-11-06  9:35 mount -tcoda /dev/cfs0 /mnt no longer works in -test9 and newer? Pavel Machek
2000-11-07 18:48 ` Jan Harkes
2000-11-10 20:39   ` Pavel Machek
2000-11-10 21:48     ` [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?] Pavel Machek
2000-11-10 21:27       ` Jan Harkes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox