Bug 1352061
Summary: | btrfs: stat reports the st_blocks with delay (data loss in archivers) | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Pavel Raiskup <praiskup> | ||||
Component: | kernel | Assignee: | Kernel Maintainer List <kernel-maint> | ||||
Status: | CLOSED UPSTREAM | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | unspecified | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 24 | CC: | aschorr, gansalmon, itamar, jonathan, kdudka, kernel-maint, madhu.chinakonda, mchehab | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | If docs needed, set a value | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2016-07-01 15:23:23 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Pavel Raiskup
2016-07-01 14:10:54 UTC
Created attachment 1174941 [details]
Reproducer.
$ make
gcc main.c -O0 -g3 -o binary
test `stat --file-system --format '%T' main.c` = btrfs
while : ; do ./reproducer; done
stat reported zero blocks!
still zero blocks
(mostly?) synced
stat reported zero blocks!
(mostly?) synced
stat reported zero blocks!
still zero blocks
still zero blocks
still zero blocks
still zero blocks
still zero blocks
still zero blocks
still zero blocks
still zero blocks
still zero blocks
still zero blocks
still zero blocks
still zero blocks
still zero blocks
still zero blocks
still zero blocks
still zero blocks
still zero blocks
still zero blocks
still zero blocks
still zero blocks
still zero blocks
still zero blocks
still zero blocks
(mostly?) synced
....
Expected output:
gcc main.c -O0 -g3 -o binary
test `stat --file-system --format '%T' main.c` = btrfs
while : ; do ./reproducer; done
(busy loop here)
Please report this directly to the upstream btrfs maintainers: Chris Mason <clm> (maintainer:BTRFS FILE SYSTEM) Josef Bacik <jbacik> (maintainer:BTRFS FILE SYSTEM) David Sterba <dsterba> (maintainer:BTRFS FILE SYSTEM) linux-btrfs.org (open list:BTRFS FILE SYSTEM) linux-kernel.org (open list) Upstream thread: https://mail-archive.com/linux-btrfs@vger.kernel.org/msg55383.html |