[60] in arla-drinkers
Re: fs does not work?
daemon@ATHENA.MIT.EDU (Assar Westerlund)
Fri Jun 26 03:19:54 1998
From arla-drinkers-request@sundance.stacken.kth.se Fri Jun 26 07:19:54 1998
Return-Path: <arla-drinkers-request@sundance.stacken.kth.se>
Delivered-To: arla-drinkers-mtg@bloom-picayune.mit.edu
Received: (qmail 6348 invoked from network); 26 Jun 1998 07:19:53 -0000
Received: from unknown (HELO sundance.stacken.kth.se) (130.237.234.41)
by bloom-picayune.mit.edu with SMTP; 26 Jun 1998 07:19:53 -0000
Received: from ZORKMID.MIT.EDU (ZORKMID.MIT.EDU [18.70.0.83])
by sundance.stacken.kth.se (8.8.8/8.8.8) with ESMTP id JAA18914
for <arla-drinkers@stacken.kth.se>; Fri, 26 Jun 1998 09:12:11 +0200 (MET DST)
Received: (from assar@localhost) by ZORKMID.MIT.EDU (8.8.5/8.7.3) id JAA18794; Fri, 26 Jun 1998 09:13:26 +0200 (MET DST)
To: Derrick J Brashear <shadow@dementia.org>
Cc: arla-drinkers@stacken.kth.se
Subject: Re: fs does not work?
References: <ML-1.3.2.898843295.7349.root@jooky.dementia.org>
Mime-Version: 1.0 (generated by tm-edit 7.68)
Content-Type: multipart/mixed;
boundary="Multipart_Fri_Jun_26_09:13:25_1998-1"
Content-Transfer-Encoding: 7bit
From: Assar Westerlund <assar@sics.se>
Date: 26 Jun 1998 09:13:25 +0200
In-Reply-To: Derrick J Brashear's message of "Fri, 26 Jun 1998 02:41:35 -0400 (EDT)"
Message-ID: <5l7m247i0a.fsf@ZORKMID.MIT.EDU>
Lines: 82
X-Mailer: Gnus v5.5/Emacs 19.34
--Multipart_Fri_Jun_26_09:13:25_1998-1
Content-Type: text/plain; charset=US-ASCII
Derrick J Brashear <shadow@dementia.org> writes:
> But lo, what is in /var/log/messages but lots of things like:
> Jun 26 02:37:56 jooky kernel: sys_afs operation: 20 a_pathP: 00000000 a_opcode:
> -2146675197 a_paramsP: efffdc40 a_followSymlinks: 0
> Jun 26 02:37:56 jooky kernel: xfs_pioctl
I do think that one of the appended patches will `solve'
({work,kludge}-around) that problem. Choose your poison.
As for solving it, can anybody tell me copy_{from,to}_user are
supposed to return?
> Since it looks like /afs doesn't want to unmount i guess i'll debug further
> tomorrow.
Can you unmount it if you kill arlad first?
/assar
--Multipart_Fri_Jun_26_09:13:25_1998-1
Content-Type: text/plain; charset=US-ASCII
Index: xfs/linux/xfs_syscalls.c
===================================================================
RCS file: /usr/local/cvsroot/arla/xfs/linux/xfs_syscalls.c,v
retrieving revision 1.16
diff -u -w -u -w -r1.16 xfs_syscalls.c
--- xfs_syscalls.c 1998/06/04 15:51:54 1.16
+++ xfs_syscalls.c 1998/06/26 07:10:14
@@ -259,8 +259,6 @@
case AFSCALL_PIOCTL:
printk("xfs_pioctl\n");
error = copy_from_user(&vice_ioctl,a_paramsP,sizeof(*a_paramsP));
- if (error)
- return error;
if (vice_ioctl.in_size > 2048) {
printk("xfs_pioctl_call: got a humongous in packet: opcode: %d",
a_opcode);
@@ -268,8 +266,6 @@
}
if (vice_ioctl.in_size != 0) {
error = copy_from_user(&msg.msg,vice_ioctl.in,vice_ioctl.in_size);
- if (error)
- return error;
}
if (a_pathP != NULL) {
#ifndef LINUX2_1
--Multipart_Fri_Jun_26_09:13:25_1998-1
Content-Type: text/plain; charset=US-ASCII
Index: xfs/linux/xfs_common.h
===================================================================
RCS file: /usr/local/cvsroot/arla/xfs/linux/xfs_common.h,v
retrieving revision 1.8
diff -u -w -u -w -r1.8 xfs_common.h
--- xfs_common.h 1998/05/23 20:03:25 1.8
+++ xfs_common.h 1998/06/26 07:11:44
@@ -59,7 +59,7 @@
if ((error = verify_area(VERIFY_WRITE, dst, len)) != 0)
return error;
memcpy_tofs(dst, src, len);
- return len;
+ return 0;
}
static inline unsigned long
@@ -70,7 +70,7 @@
if ((error = verify_area(VERIFY_READ, src, len)) != 0)
return error;
memcpy_fromfs(dst, src, len);
- return len;
+ return 0;
}
#endif
--Multipart_Fri_Jun_26_09:13:25_1998-1--