Project

General

Profile

Bug #24915

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

Added by Matt Benjamin 5 months ago. Updated about 1 month ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
-
Start date:
07/13/2018
Due date:
% Done:

0%

Source:
Tags:
Backport:
mimic, luminous
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:

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

Copied to rgw - Backport #26842: mimic: rgw_file: "deep stat"/stats of unenumerated paths not handled Resolved
Copied to rgw - Backport #26844: luminous: rgw_file: "deep stat"/stats of unenumerated paths not handled Resolved

History

#2 Updated by Matt Benjamin 5 months ago

  • Status changed from In Progress to Need Review

#3 Updated by Abhishek Lekshmanan 4 months ago

  • Status changed from Need Review to Pending Backport

#4 Updated by Patrick Donnelly 4 months ago

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

#6 Updated by Patrick Donnelly 4 months ago

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

#8 Updated by Nathan Cutler about 1 month ago

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

#9 Updated by Nathan Cutler about 1 month ago

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

Jewel is EOL

Also available in: Atom PDF