]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw/d3n: store cached objects using hash digest 63243/head
authorMark Kogan <mkogan@redhat.com>
Wed, 26 Mar 2025 11:06:42 +0000 (11:06 +0000)
committerMark Kogan <mkogan@redhat.com>
Mon, 12 May 2025 17:32:11 +0000 (17:32 +0000)
commitd771f0540659efb1147038d9e4739043ec375f7b
tree72bd30275736791fdd556098601786fbd0f87072
parentb74b612678d6374f69096a6a5ae0ec73358e5a16
rgw/d3n: store cached objects using hash digest

storing S3 objects under deep directory hierarchy resulted in a long
path which iafter URL encoding resulted in a long cached filename that
is longer than the POSIX max of 256 chars manifesting as writes to D3N
cache failing with:

```
❯ errno 36
ENAMETOOLONG 36 File name too long
```

Fixes: https://tracker.ceph.com/issues/70333
Signed-off-by: Mark Kogan <mkogan@redhat.com>
(cherry picked from commit 5bfd0b7100d32bcf793c26b007b1403db8e0a42f)
qa/workunits/rgw/test_rgw_datacache.py
src/rgw/driver/rados/rgw_d3n_datacache.cc
src/rgw/rgw_d3n_cacherequest.h