| OLD | NEW |
| 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 Access(const Path& path, int a_mode); | |
| 25 virtual Error Open(const Path& path, int mode, ScopedNode* out_node); | 24 virtual Error Open(const Path& path, int mode, ScopedNode* out_node); |
| 26 virtual Error Unlink(const Path& path); | 25 virtual Error Unlink(const Path& path); |
| 27 virtual Error Mkdir(const Path& path, int perm); | 26 virtual Error Mkdir(const Path& path, int perm); |
| 28 virtual Error Rmdir(const Path& path); | 27 virtual Error Rmdir(const Path& path); |
| 29 virtual Error Remove(const Path& path); | 28 virtual Error Remove(const Path& path); |
| 30 virtual Error Rename(const Path& path, const Path& newpath); | 29 virtual Error Rename(const Path& path, const Path& newpath); |
| 31 | 30 |
| 32 private: | 31 private: |
| 33 struct fuse_operations* fuse_ops_; | 32 struct fuse_operations* fuse_ops_; |
| 34 void* fuse_user_data_; | 33 void* fuse_user_data_; |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 off_t off); | 111 off_t off); |
| 113 | 112 |
| 114 private: | 113 private: |
| 115 friend class FuseFs; | 114 friend class FuseFs; |
| 116 DISALLOW_COPY_AND_ASSIGN(DirFuseFsNode); | 115 DISALLOW_COPY_AND_ASSIGN(DirFuseFsNode); |
| 117 }; | 116 }; |
| 118 | 117 |
| 119 } // namespace nacl_io | 118 } // namespace nacl_io |
| 120 | 119 |
| 121 #endif // LIBRARIES_NACL_IO_FUSEFS_FUSE_FS_H_ | 120 #endif // LIBRARIES_NACL_IO_FUSEFS_FUSE_FS_H_ |
| OLD | NEW |