lkml.org 
[lkml]   [2000]   [Nov]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: mount -tcoda /dev/cfs0 /mnt no longer works in -test9 and newer?
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/

\
 
 \ /
  Last update: 2005-03-22 12:45    [W:0.132 / U:10.328 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site