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

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 131457)
+++ native_client_sdk/src/libraries/nacl_mounts/mount_node.cc (working copy)
@@ -30,9 +30,9 @@
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++;

Powered by Google App Engine
This is Rietveld 408576698