Project

General

Profile

Actions

Bug #24915

closed

rgw_file: "deep stat"/stats of unenumerated paths not handled

Added by Matt Benjamin almost 6 years ago. Updated over 5 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
-
% Done:

0%

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

Description

From https://github.com/asmolik in https://github.com/nfs-ganesha/nfs-ganesha/issues/305:

Ceph: 12.2.4

Objects deep in directory tree are not visible without first performing 'ls' on all of its subpaths. As an example I have put one object into rgw bucket:

s3cmd -c .s3cfg2 put test.txt s3://ganesha/a/b/c/d/f/g/h/i/j/k/l/test
s3cmd -c .s3cfg2 ls s3://ganesha/ --recursive
2018-06-14 15:40 5 s3://ganesha/a/b/c/d/f/g/h/i/j/k/l/test

The problem is that after mounting it with nfs the file is not immediately visible - I have to traverse all of the directories one by one.

root@ganesha-test:/# mount -o vers=4.1 test-server:/ /mnt/tmp/ -v
mount.nfs: timeout set for Thu Jun 14 17:41:18 2018
mount.nfs: trying text-based options 'vers=4.1,addr=192.168.0.14,clientaddr=192.168.0.16'
root@ganesha-test:/# ls /mnt/tmp/
ganesha test
root@ganesha-test:/# ls /mnt/tmp/ganesha/
a
root@ganesha-test:/# cat /mnt/tmp/ganesha/a/bhttps://github.com/nfs-ganesha/nfs-ganesha/issues/305/c/d/f/g/h/i/j/k/l/test
cat: /mnt/tmp/ganesha/a/b/c/d/f/g/h/i/j/k/l/test: No such file or directory
root@ganesha-test:/# ls /mnt/tmp/ganesha/
a
root@ganesha-test:/# ls /mnt/tmp/ganesha/a/
b
root@ganesha-test:/# ls /mnt/tmp/ganesha/a/b/
c
root@ganesha-test:/# ls /mnt/tmp/ganesha/a/b/c/
d
root@ganesha-test:/# ls /mnt/tmp/ganesha/a/b/c/d/
f
root@ganesha-test:/# ls /mnt/tmp/ganesha/a/b/c/d/f/
g
root@ganesha-test:/# ls /mnt/tmp/ganesha/a/b/c/d/f/g/
h
root@ganesha-test:/# ls /mnt/tmp/ganesha/a/b/c/d/f/g/h/
i
root@ganesha-test:/# cat /mnt/tmp/ganesha/a/b/c/d/f/g/h/i/j/k/l/test
cat: /mnt/tmp/ganesha/a/b/c/d/f/g/h/i/j/k/l/test: No such file or directory
root@ganesha-test:/# ls /mnt/tmp/ganesha/a/b/c/d/f/g/h/i/
j
root@ganesha-test:/# ls /mnt/tmp/ganesha/a/b/c/d/f/g/h/i/j/
k
root@ganesha-test:/# ls /mnt/tmp/ganesha/a/b/c/d/f/g/h/i/j/k/
l
root@ganesha-test:/# ls /mnt/tmp/ganesha/a/b/c/d/f/g/h/i/j/k/l/
test
root@ganesha-test:/# cat /mnt/tmp/ganesha/a/b/c/d/f/g/h/i/j/k/l/test
test
root@ganesha-test:/#


Related issues 2 (0 open2 closed)

Copied to rgw - Backport #26842: mimic: rgw_file: "deep stat"/stats of unenumerated paths not handledResolvedPrashant DActions
Copied to rgw - Backport #26844: luminous: rgw_file: "deep stat"/stats of unenumerated paths not handledResolvedPrashant DActions
Actions #2

Updated by Matt Benjamin almost 6 years ago

  • Status changed from In Progress to Fix Under Review
Actions #3

Updated by Abhishek Lekshmanan over 5 years ago

  • Status changed from Fix Under Review to Pending Backport
Actions #4

Updated by Patrick Donnelly over 5 years ago

  • Copied to Backport #26842: mimic: rgw_file: "deep stat"/stats of unenumerated paths not handled added
Actions #6

Updated by Patrick Donnelly over 5 years ago

  • Copied to Backport #26844: luminous: rgw_file: "deep stat"/stats of unenumerated paths not handled added
Actions #8

Updated by Nathan Cutler over 5 years ago

  • Status changed from Pending Backport to Resolved
  • Backport changed from mimic, luminous, jewel to mimic, luminous, jewel===
Actions #9

Updated by Nathan Cutler over 5 years ago

  • Backport changed from mimic, luminous, jewel=== to mimic, luminous

Jewel is EOL

Actions

Also available in: Atom PDF