[prev in list] [next in list] [prev in thread] [next in thread]
List: yaffs
Subject: [Yaffs] ENAMETOOLONG not handled correctly
From: Rick Bronson <rick () efn ! org>
Date: 2006-08-14 19:38:10
Message-ID: E1GCiGI-0006XN-00 () amazonia
[Download RAW message or body]
Hi,
I made this change and it seems to pass the Linux Test Project
tests:
chdir04
chroot03
creat06
mkdir03
nftw01
nftw6401
open08
rename10
statfs02
These tests involve making a file or directory that has too long
a name (ie. > 255).
Please tell me if you think my change is in error.
Thanks,
Rick Bronson
--- yaffs2/yaffs_fs.c.~1.50.~ 2006-06-29 10:39:09.000000000 -0700
+++ yaffs2/yaffs_fs.c 2006-08-14 12:26:37.000000000 -0700
@@ -316,6 +316,9 @@
yaffs_Device *dev = yaffs_InodeToObject(dir)->myDev;
+ if (dentry->d_name.len > YAFFS_MAX_NAME_LENGTH) /* check for max name length */
+ return ERR_PTR(-ENAMETOOLONG);
+
yaffs_GrossLock(dev);
T(YAFFS_TRACE_OS,
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic