Hi, Is it possible to restrict a block driver to a particular set of options? In my case I'd like to restrict the raw driver to regular files.
I noticed the NFS driver does it locally in nfs_client_open(), and FUSE has is_regular_file() -- which is POSIX specific however. When a backend is a SCSI drive, the block layer provide the blk_is_sg() method to test it. 1/ Should I provide a similar blk_is_regular_file()? 2/ There is no oslib function to check for regular file, should I add one too? Thanks, Phil.