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

Side by Side Diff: native_client_sdk/src/libraries/nacl_io/mount.cc

Issue 12194030: Rename mount (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix whitespace Created 7 years, 10 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 * Use of this source code is governed by a BSD-style license that can be 2 * Use of this source code is governed by a BSD-style license that can be
3 * found in the LICENSE file. 3 * found in the LICENSE file.
4 */ 4 */
5 #include "nacl_mounts/mount.h" 5 #include "nacl_io/mount.h"
6 6
7 #include <errno.h> 7 #include <errno.h>
8 #include <fcntl.h> 8 #include <fcntl.h>
9 #include <string> 9 #include <string>
10 10
11 #include "nacl_mounts/mount_node.h" 11 #include "nacl_io/mount_node.h"
12 #include "nacl_mounts/mount_node_dir.h" 12 #include "nacl_io/mount_node_dir.h"
13 #include "nacl_mounts/mount_node_mem.h" 13 #include "nacl_io/mount_node_mem.h"
14 #include "nacl_mounts/osstat.h" 14 #include "nacl_io/osstat.h"
15 #include "nacl_mounts/path.h" 15 #include "nacl_io/path.h"
16 #include "utils/auto_lock.h" 16 #include "utils/auto_lock.h"
17 #include "utils/ref_object.h" 17 #include "utils/ref_object.h"
18 18
19 #if defined(WIN32) 19 #if defined(WIN32)
20 #include <windows.h> 20 #include <windows.h>
21 #endif 21 #endif
22 22
23 Mount::Mount() 23 Mount::Mount()
24 : dev_(0) { 24 : dev_(0) {
25 } 25 }
(...skipping 30 matching lines...) Expand all
56 56
57 57
58 void Mount::OnNodeCreated(MountNode* node) { 58 void Mount::OnNodeCreated(MountNode* node) {
59 node->stat_.st_ino = inode_pool_.Acquire(); 59 node->stat_.st_ino = inode_pool_.Acquire();
60 node->stat_.st_dev = dev_; 60 node->stat_.st_dev = dev_;
61 } 61 }
62 62
63 void Mount::OnNodeDestroyed(MountNode* node) { 63 void Mount::OnNodeDestroyed(MountNode* node) {
64 if (node->stat_.st_ino) inode_pool_.Release(node->stat_.st_ino); 64 if (node->stat_.st_ino) inode_pool_.Release(node->stat_.st_ino);
65 } 65 }
OLDNEW
« no previous file with comments | « native_client_sdk/src/libraries/nacl_io/mount.h ('k') | native_client_sdk/src/libraries/nacl_io/mount_dev.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698