xfs
[Top] [All Lists]

Re: POSIX error code

To: lord@xxxxxxx
Subject: Re: POSIX error code
From: ASANO Masahiro <masano@xxxxxxxxxxxxxx>
Date: Wed, 07 Nov 2001 17:46:02 +0900 (JST)
Cc: linux-xfs@xxxxxxxxxxx
In-reply-to: <1004978054.10877.8.camel@xxxxxxxxxxxxxxxxxxxx>
References: <20011105185836G.masano@xxxxxxxxxxxxxx> <1004978054.10877.8.camel@xxxxxxxxxxxxxxxxxxxx>
Sender: owner-linux-xfs@xxxxxxxxxxx
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


<Prev in Thread] Current Thread [Next in Thread>