| Index: native_client_sdk/src/libraries/nacl_mounts/mount_node_mem.cc
|
| diff --git a/native_client_sdk/src/libraries/nacl_mounts/mount_node_mem.cc b/native_client_sdk/src/libraries/nacl_mounts/mount_node_mem.cc
|
| index 07adb9d03c16765796f4b87b8f67b7c647ff9f37..7cb01b53d98f50b2cc6e43de656aed56e8d9fb75 100644
|
| --- a/native_client_sdk/src/libraries/nacl_mounts/mount_node_mem.cc
|
| +++ b/native_client_sdk/src/libraries/nacl_mounts/mount_node_mem.cc
|
| @@ -13,22 +13,17 @@
|
| #define BLOCK_SIZE (1 << 16)
|
| #define BLOCK_MASK (BLOCK_SIZE - 1)
|
|
|
| -MountNodeMem::MountNodeMem(Mount *mount, int ino, int dev)
|
| - : MountNode(mount, ino, dev),
|
| +MountNodeMem::MountNodeMem(Mount *mount)
|
| + : MountNode(mount),
|
| data_(NULL),
|
| capacity_(0) {
|
| + stat_.st_mode |= S_IFREG;
|
| }
|
|
|
| MountNodeMem::~MountNodeMem() {
|
| free(data_);
|
| }
|
|
|
| -bool MountNodeMem::Init(int mode, short uid, short gid) {
|
| - bool ok = MountNode::Init(mode, uid, gid);
|
| - stat_.st_mode |= S_IFREG;
|
| - return ok;
|
| -}
|
| -
|
| int MountNodeMem::Read(size_t offs, void *buf, size_t count) {
|
| AutoLock lock(&lock_);
|
| if (count == 0) return 0;
|
|
|