Showing block size added to /proc/scsi_tgt/disk_fileio/disk_fileio
authorvlnb <vlnb@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Thu, 2 Nov 2006 12:03:39 +0000 (12:03 +0000)
committervlnb <vlnb@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Thu, 2 Nov 2006 12:03:39 +0000 (12:03 +0000)
git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@24 d57e44dd-8a1f-0410-8b47-8ef2f437770f

scst/src/dev_handlers/scst_fileio.c

index f5388e1..d78d0b2 100644 (file)
@@ -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;