Project

General

Profile

Actions

Bug #61490

open

opendir: Invalid argument error when referencing symlinks

Added by Peter Gyorok 12 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

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

Actions

Also available in: Atom PDF