mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-22 21:21:28 +00:00
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
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user