Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(155)

Unified Diff: native_client_sdk/src/libraries/nacl_mounts/mount_node.cc

Issue 9956156: Add mount sources for a MountNode (inode) (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: native_client_sdk/src/libraries/nacl_mounts/mount_node.cc
===================================================================
--- native_client_sdk/src/libraries/nacl_mounts/mount_node.cc (revision 134714)
+++ native_client_sdk/src/libraries/nacl_mounts/mount_node.cc (working copy)
@@ -13,8 +13,8 @@
#include "mount.h"
#include "mount_node.h"
-MountNode::MountNode(Mount* mount, int ino, int dev) :
- mount_(mount) {
+MountNode::MountNode(Mount* mount, int ino, int dev)
+ : mount_(mount) {
memset(&stat_, 0, sizeof(stat_));
stat_.st_ino = ino;
stat_.st_dev = dev;
@@ -23,16 +23,16 @@
MountNode::~MountNode() {
}
-bool MountNode::Init(int mode, short gid, short uid) {
+bool MountNode::Init(int mode, short uid, short gid) {
stat_.st_mode = mode;
stat_.st_gid = gid;
stat_.st_uid = uid;
return true;
}
-void MountNode::Destroy() {
+int MountNode::Close() {
FSync();
- mount_->FreeNode(this);
+ return 0;
}
int MountNode::FSync() {
@@ -113,6 +113,11 @@
return NULL;
}
+int MountNode::ChildCount() {
+ errno = ENOTDIR;
+ return -1;
+}
+
void MountNode::Link() {
Acquire();
stat_.st_nlink++;
« no previous file with comments | « native_client_sdk/src/libraries/nacl_mounts/mount_node.h ('k') | native_client_sdk/src/libraries/nacl_mounts/mount_node_dir.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698