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

Side by Side Diff: native_client_sdk/src/libraries/nacl_io/fusefs/fuse_fs.h

Issue 565763002: Plumbing though mode parameter to open, since fusefs can make use of it. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixes Created 6 years, 3 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #ifndef LIBRARIES_NACL_IO_FUSEFS_FUSE_FS_H_ 5 #ifndef LIBRARIES_NACL_IO_FUSEFS_FUSE_FS_H_
6 #define LIBRARIES_NACL_IO_FUSEFS_FUSE_FS_H_ 6 #define LIBRARIES_NACL_IO_FUSEFS_FUSE_FS_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "nacl_io/filesystem.h" 10 #include "nacl_io/filesystem.h"
11 #include "nacl_io/fuse.h" 11 #include "nacl_io/fuse.h"
12 #include "nacl_io/node.h" 12 #include "nacl_io/node.h"
13 13
14 namespace nacl_io { 14 namespace nacl_io {
15 15
16 class FuseFs : public Filesystem { 16 class FuseFs : public Filesystem {
17 protected: 17 protected:
18 FuseFs(); 18 FuseFs();
19 19
20 virtual Error Init(const FsInitArgs& args); 20 virtual Error Init(const FsInitArgs& args);
21 virtual void Destroy(); 21 virtual void Destroy();
22 22
23 public: 23 public:
24 virtual Error Open(const Path& path, int mode, ScopedNode* out_node); 24 virtual Error OpenWithMode(const Path& path, int open_flags, mode_t mode,
25 ScopedNode* out_node);
25 virtual Error Unlink(const Path& path); 26 virtual Error Unlink(const Path& path);
26 virtual Error Mkdir(const Path& path, int perm); 27 virtual Error Mkdir(const Path& path, int perm);
27 virtual Error Rmdir(const Path& path); 28 virtual Error Rmdir(const Path& path);
28 virtual Error Remove(const Path& path); 29 virtual Error Remove(const Path& path);
29 virtual Error Rename(const Path& path, const Path& newpath); 30 virtual Error Rename(const Path& path, const Path& newpath);
30 31
31 private: 32 private:
32 struct fuse_operations* fuse_ops_; 33 struct fuse_operations* fuse_ops_;
33 void* fuse_user_data_; 34 void* fuse_user_data_;
34 35
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 off_t off); 112 off_t off);
112 113
113 private: 114 private:
114 friend class FuseFs; 115 friend class FuseFs;
115 DISALLOW_COPY_AND_ASSIGN(DirFuseFsNode); 116 DISALLOW_COPY_AND_ASSIGN(DirFuseFsNode);
116 }; 117 };
117 118
118 } // namespace nacl_io 119 } // namespace nacl_io
119 120
120 #endif // LIBRARIES_NACL_IO_FUSEFS_FUSE_FS_H_ 121 #endif // LIBRARIES_NACL_IO_FUSEFS_FUSE_FS_H_
OLDNEW
« no previous file with comments | « native_client_sdk/src/libraries/nacl_io/filesystem.cc ('k') | native_client_sdk/src/libraries/nacl_io/fusefs/fuse_fs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698