From 14afc65ad90934fb4d8d1813640c482baed2b138 Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Thu, 2 Nov 2006 12:03:39 +0000 Subject: [PATCH] Showing block size added to /proc/scsi_tgt/disk_fileio/disk_fileio git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@24 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/src/dev_handlers/scst_fileio.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/scst/src/dev_handlers/scst_fileio.c b/scst/src/dev_handlers/scst_fileio.c index f5388e1ab..d78d0b249 100644 --- a/scst/src/dev_handlers/scst_fileio.c +++ b/scst/src/dev_handlers/scst_fileio.c @@ -2301,8 +2301,8 @@ static int disk_fileio_proc(char *buffer, char **start, off_t offset, } if (inout == 0) { /* read */ - size = scnprintf(buffer, length, "%-17s %-12s %-15s %s\n", - "Name", "Size(MB)", "Options", "File name"); + size = scnprintf(buffer, length, "%-17s %-11s %-11s %-15s %s\n", + "Name", "Size(MB)", "Block size", "Options", "File name"); if (fileio_proc_update_size(size, &len, &begin, &pos, &offset)) { res = len; goto out_up; @@ -2313,8 +2313,9 @@ static int disk_fileio_proc(char *buffer, char **start, off_t offset, { int c; size = scnprintf(buffer + len, length - len, - "%-17s %-13d", virt_dev->name, - (uint32_t)(virt_dev->file_size >> 20)); + "%-17s %-11d %-12d", virt_dev->name, + (uint32_t)(virt_dev->file_size >> 20), + virt_dev->block_size); if (fileio_proc_update_size(size, &len, &begin, &pos, &offset)) { res = len;