Project

General

Profile

Feature #44279

client: provide asok commands to getattr an inode with desired caps

Added by Patrick Donnelly 11 months ago. Updated 7 months ago.

Status:
Fix Under Review
Priority:
Normal
Category:
-
Target version:
% Done:

0%

Source:
Development
Tags:
Backport:
Reviewed:
Affected Versions:
Component(FS):
Client, qa-suite
Labels (FS):
qa
Pull request ID:

Description

Idea is to avoid using UNIX commands or libcephfs calls to implicitly acquire the caps we want. Instead, write a command that explicitly tries to acquire caps for an inode.

This is a first step to creating a test suite for cap acquisition/revoke behavior with the MDS.

History

#1 Updated by Greg Farnum 11 months ago

We may also just want to bring the SynClient or do something directly with libcephfs to grab exact sequences instead of going through the ceph-fuse asok.

#2 Updated by Patrick Donnelly 8 months ago

  • Assignee set to Kotresh Hiremath Ravishankar

#3 Updated by Jeff Layton 7 months ago

Do we need an asok interface for this? If you're planning to write testcases that link in libcephfs directly, then you can just add new libcephfs calls that do what you want, and write testcases that just call them.

The main reason to add something like asok interface would be if you want to be able to issue these sorts of requests in conjunction with (e.g.) a FUSE mount or ganesha export. Are you planning to do that?

#4 Updated by Patrick Donnelly 7 months ago

Jeff Layton wrote:

Do we need an asok interface for this? If you're planning to write testcases that link in libcephfs directly, then you can just add new libcephfs calls that do what you want, and write testcases that just call them.

The main reason to add something like asok interface would be if you want to be able to issue these sorts of requests in conjunction with (e.g.) a FUSE mount or ganesha export. Are you planning to do that?

The eventual goal is to test the expected behavior of two clients issuing getattr requests. Yes, we could simulate with UNIX syscalls like `mkdir' but that relies on second order effects -- what caps the `mkdir` operation will try to fetch (which may touch many inodes in the path lookup). It's better to directly test the behavior you're trying to confirm without any extraneous operations.

#5 Updated by Kotresh Hiremath Ravishankar 7 months ago

  • Status changed from New to In Progress

#6 Updated by Kotresh Hiremath Ravishankar 7 months ago

  • Pull request ID set to 35992

#7 Updated by Patrick Donnelly 7 months ago

  • Status changed from In Progress to Fix Under Review

Also available in: Atom PDF