* fs_write() is optional for read-only file systems. This fixes bug #3062 and
also #3083 (although I could not reproduce the latter). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28881 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
f5c4a08357
commit
fbb7d4cd57
@ -5221,6 +5221,8 @@ file_write(struct file_descriptor *descriptor, off_t pos, const void *buffer,
|
||||
|
||||
if (S_ISDIR(vnode->type))
|
||||
return B_IS_A_DIRECTORY;
|
||||
if (!HAS_FS_CALL(vnode, write))
|
||||
return EROFS;
|
||||
|
||||
return FS_CALL(vnode, write, descriptor->cookie, pos, buffer, length);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user