Bug #61490
openopendir: Invalid argument error when referencing symlinks
0%
Description
This is similar to https://tracker.ceph.com/issues/15702 but in a slightly different scenario.
We have 2 pods running on different nodes in a cluster, mounting the same ceph volume (under /data):
Pod 1:root@opendir-01:/# mkdir /data/db/foo
root@opendir-01:/# ln -s /data/db/foo /data/db/fooLink
root@opendir-01:/# touch /data/db/foo/file.txt
Pod 2:root@opendir-02:/# opendir /data/db/fooLink/file.txt
opendir: opendir: Invalid argument
The "opendir" executable mimics the operation that fails in the actual application, and is the result of compiling this C program:#include<dirent.h>
#include<err.h>
int main(int n, char**v){if(n<2)return 1;if(!opendir(v[1]))err(1,"opendir");return 0;}
The version is "v1.10.4" which I couldn't find on the list.
No data to display