Project

General

Profile

Actions

Bug #1226

closed

kclient can't read newly-created file with a custom layout

Added by Greg Farnum almost 13 years ago. Updated almost 13 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
fs/ceph
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
Severity:
Reviewed:
Affected Versions:
ceph-qa-suite:
Crash signature (v1):
Crash signature (v2):

Description

After using cephfs to set a custom layout on a file, the kernel client can't read that file until the file has been written to. It can write to the file, and you can usually (always?) cancel the read, but any attempted reads will hang.
It doesn't matter if the custom layout is the same as the dir layout. If it inherits a dir layout that is different from the system default layout, it can read it.
Setting a custom layout via the kernel client does not prevent cfuse from reading the empty file. Doing so is insufficient to let the kclient read it, though. Similarly cfuse can write to the file (but I believe leads to the kclient getting substantially more stuck if it tries to access that file).

From a brief glance at logs this doesn't appear to be an MDS problem, since the kclient attempt to open the file succeeds, and cfuse can open it.

Actions

Also available in: Atom PDF