Project

General

Profile

Actions

Bug #41753

closed

avoid page cache for krbd discard round off tests

Added by Yang Dongsheng over 4 years ago. Updated over 4 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
nautilus
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

When I am testing my krbd journaling code with teuthology, I found some case about krbd_discard.t failed. Then I reverted my code to do a verify, it still fail.

So I create a simple test case to test it as below:
(1) rbd create test s 4M --image-feature layering
(2) rbd map test
(3) cat truncate.t
$ xfs_io -c 'pwrite -w 0 4M' /dev/rbd0 >/dev/null
$ blkdiscard -o 512 -l 4193792 /dev/rbd0
$ hexdump /dev/rbd0 <---------
hexdump first time
0000000 cdcd cdcd cdcd cdcd cdcd cdcd cdcd cdcd *
0010000 0000 0000 0000 0000 0000 0000 0000 0000 *
0400000
$ hexdump /dev/rbd0 <---------- hexdump second time
0000000 cdcd cdcd cdcd cdcd cdcd cdcd cdcd cdcd *
0010000 0000 0000 0000 0000 0000 0000 0000 0000 *
0400000

(4) for i in `seq 1 200`; do cram -v truncate.t ; done

I can reproduce it with this steps easily and I found the fail are mostly happend at first hexdump.


Files

truncate_output (757 KB) truncate_output Yang Dongsheng, 09/16/2019 04:12 AM

Related issues 1 (0 open1 closed)

Copied to rbd - Backport #41915: nautilus: avoid page cache for krbd discard round off testsResolvedNathan CutlerActions
Actions

Also available in: Atom PDF