Thanks for the quick response. But I left out the `rename'... ;-(
Index: linux/fs/xfs/xfs_rename.c
===================================================================
RCS file: /usr/localmnt/xfs/cvsroot/linux-2.4-xfs/linux/fs/xfs/xfs_rename.c,v
retrieving revision 1.31
diff -u -r1.31 xfs_rename.c
--- linux/fs/xfs/xfs_rename.c 2001/04/11 01:44:54 1.31
+++ linux/fs/xfs/xfs_rename.c 2001/11/07 07:42:07
@@ -665,10 +665,10 @@
}
src_namelen = strlen(src_name);
if (src_namelen >= MAXNAMELEN)
- return XFS_ERROR(EINVAL);
+ return XFS_ERROR(ENAMETOOLONG);
target_namelen = strlen(target_name);
if (target_namelen >= MAXNAMELEN)
- return XFS_ERROR(EINVAL);
+ return XFS_ERROR(ENAMETOOLONG);
src_dp = XFS_BHVTOI(src_dir_bdp);
target_dp = XFS_BHVTOI(target_dir_bdp);
if (DM_EVENT_ENABLED(src_dir_vp->v_vfsp, src_dp, DM_EVENT_RENAME) ||
From: Steve Lord <lord@xxxxxxx>
Subject: Re: POSIX error code
Date: 05 Nov 2001 10:34:14 -0600
Message-ID: <1004978054.10877.8.camel@xxxxxxxxxxxxxxxxxxxx>
> Yes, this does appear wrong, the Irix man pages say ENAMETOOLONG as
> well, but the code says EINVAL, your code should show up in the tree
> before too long.
>
> Thanks
>
> Steve
Cheers
--
masano
|