]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw_file: fix non-posix errcode EINVAL to ENAMETOOLONG
authorGui Hecheng <guihecheng@cmss.chinamobile.com>
Fri, 10 Mar 2017 09:01:34 +0000 (17:01 +0800)
committerGui Hecheng <guihecheng@cmss.chinamobile.com>
Fri, 10 Mar 2017 09:33:24 +0000 (17:33 +0800)
commitc54d85a47c59663f67588ac749ef0c48232a877f
tree1c4137060d30f59dfb1a9e1c8398a290beed3457
parent83d0704d2a3896bc068a1c8d0821674aab50f63f
rgw_file: fix non-posix errcode EINVAL to ENAMETOOLONG

When exec the following cmd in RGW FS, we get EINVAL:
> mkdir <very/long/path> -p
Because the path name exceeds 1024 which is the max object name
length for s3.
Actually we should get ENAMETOOLONG here in posix, so we could
wrap the name check functions and check the exact errcode
for posix.

Signed-off-by: Gui Hecheng <guihecheng@cmss.chinamobile.com>
src/rgw/rgw_file.cc