mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-19 21:56:31 +00:00
scst: set file size for NULLIO in PROCFS build
The file size wasn't getting set for NULLIO with /proc support Signed-off-by: David Butterfield <dab21774@gmail.com> git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7141 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -1700,6 +1700,11 @@ next:
|
||||
|
||||
dev->dev_rd_only = virt_dev->rd_only;
|
||||
|
||||
#ifdef CONFIG_SCST_PROC
|
||||
if (virt_dev->nullio && !virt_dev->file_size)
|
||||
virt_dev->file_size = VDISK_NULLIO_SIZE;
|
||||
#endif
|
||||
|
||||
res = vdisk_reexamine(virt_dev);
|
||||
if (res < 0)
|
||||
goto out;
|
||||
|
||||
Reference in New Issue
Block a user