Has anyone tried using smbfs on the iPAQ?
I tried to mount a windows shared drive and I get the following
error, (this is all with v0.16):
smbfs: mount_data version 1919251317 is not supported
the code causing the error condition is in fs/smbfs/inode.c:
smb_read_super(struct super_block *sb, void *raw_data, int silent)
{
struct smb_mount_data *oldmnt;
/* snip of irrelevant code */
oldmnt = (struct smb_mount_data *) raw_data;
/* ^^^^^^^^^^^^^^^^^^^^^^^^^ <------ unportable?? */
ver = oldmnt->version;
if (ver != SMB_MOUNT_OLDVERSION && cpu_to_be32(ver) != SMB_MOUNT_ASCII)
goto out_wrong_data;
/* this goto succeeds and prints the error message */
/* ... */
}
the relevant definitions come from include/linux/smb_mount.h:
#define SMB_MOUNT_ASCII 0x76657273
struct smb_mount_data {
int version;
__kernel_uid_t mounted_uid; /* Who may umount() this filesystem? */
__kernel_uid_t uid;
__kernel_gid_t gid;
__kernel_mode_t file_mode;
__kernel_mode_t dir_mode;
};
Isn't that casting of raw_data to a structure an instance of
unportable code? What would be the right way to fix this?
Any help is appreciated as always,
-Carl
PS. Yes, I know the Right Way to fix this is to install Linux in place
of Windows and just use NFS. :)
Received on Fri Oct 6 11:17:02 2000
This archive was generated by hypermail 2.1.8 : Tue May 04 2004 - 09:43:43 EDT