| To: | Tomas Racek <tracek@xxxxxxxxxx> |
|---|---|
| Subject: | Re: [PATCH 3/3] 289: Test that filesystem sends discard requests only on free sectors |
| From: | Rich Johnston <rjohnston@xxxxxxx> |
| Date: | Tue, 30 Oct 2012 15:18:03 -0500 |
| Cc: | <xfs@xxxxxxxxxxx>, <lczerner@xxxxxxxxxx> |
| In-reply-to: | <1350549946-17192-3-git-send-email-tracek@xxxxxxxxxx> |
| References: | <1350549946-17192-1-git-send-email-tracek@xxxxxxxxxx> <1350549946-17192-3-git-send-email-tracek@xxxxxxxxxx> |
| User-agent: | Mozilla/5.0 (X11; Linux i686; rv:13.0) Gecko/20120615 Thunderbird/13.0.1 |
On 10/18/2012 03:45 AM, Tomas Racek wrote: This is done by comparing free sectors reported by some FS utility (dumpe2fs/xfs_db) and actual discard commands sent to device obtained via blk tracer in debugfs. Currently supported FS are ext[34], xfs; device with discard support is not required, the test creates loop device for this purpose. Signed-off-by: Tomas Racek <tracek@xxxxxxxxxx> --- 289 | 169 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 289.out | 5 ++ group | 1 + 3 files changed, 175 insertions(+) create mode 100755 289 create mode 100644 289.out This will not work for 3.x kernels, but they 2.6 and 3.x both use the same path. +debugfs=$($MOUNT_PROG | grep debugfs | cut -d " " -f3) +[ -n $debugfs ] || _notrun "This test requires mounted debugfs" As you use $debugfs quite a bit from here on, suggest doing something like: debugfs=/sys/kernel/debug if [ ! -d $debugfs ]; then _notrun "This test requires mounted debugfs" fi Other than that it looks great. |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH 2/3] Provide dumpe2fs via standard common.config interface, Rich Johnston |
|---|---|
| Next by Date: | Re: Hang in XFS reclaim on 3.7.0-rc3, Torsten Kaiser |
| Previous by Thread: | [PATCH 3/3] 289: Test that filesystem sends discard requests only on free sectors, Tomas Racek |
| Next by Thread: | Re: [PATCH 3/3] 289: Test that filesystem sends discard requests only on free sectors, Dave Chinner |
| Indexes: | [Date] [Thread] [Top] [All Lists] |