Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PiSCSI/piscsi
/ IsReadOnlyFile
Method
IsReadOnlyFile
cpp/devices/storage_device.cpp:119–122 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
117
}
118
119
bool StorageDevice::IsReadOnlyFile() const
120
{
121
return access(filename.c_str(), W_OK);
122
}
123
124
off_t StorageDevice::GetFileSize() const
125
{
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected