[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
How to check when "raw" format driver uses a "regular" file?
From: |
Philippe Mathieu-Daudé |
Subject: |
How to check when "raw" format driver uses a "regular" file? |
Date: |
Mon, 25 Jan 2021 16:05:59 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 |
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.
- How to check when "raw" format driver uses a "regular" file?,
Philippe Mathieu-Daudé <=