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" |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 public: | 48 public: |
49 virtual bool CanOpen(int open_flags); | 49 virtual bool CanOpen(int open_flags); |
50 virtual Error GetStat(struct stat* stat); | 50 virtual Error GetStat(struct stat* stat); |
51 virtual Error VIoctl(int request, va_list args); | 51 virtual Error VIoctl(int request, va_list args); |
52 virtual Error Tcflush(int queue_selector); | 52 virtual Error Tcflush(int queue_selector); |
53 virtual Error Tcgetattr(struct termios* termios_p); | 53 virtual Error Tcgetattr(struct termios* termios_p); |
54 virtual Error Tcsetattr(int optional_actions, | 54 virtual Error Tcsetattr(int optional_actions, |
55 const struct termios* termios_p); | 55 const struct termios* termios_p); |
56 virtual Error GetSize(off_t* out_size); | 56 virtual Error GetSize(off_t* out_size); |
57 virtual Error Futimens(const struct timespec times[2]); | 57 virtual Error Futimens(const struct timespec times[2]); |
| 58 virtual Error Fchmod(mode_t mode); |
58 | 59 |
59 protected: | 60 protected: |
60 struct fuse_operations* fuse_ops_; | 61 struct fuse_operations* fuse_ops_; |
61 struct fuse_file_info info_; | 62 struct fuse_file_info info_; |
62 std::string path_; | 63 std::string path_; |
63 }; | 64 }; |
64 | 65 |
65 class FileFuseFsNode : public FuseFsNode { | 66 class FileFuseFsNode : public FuseFsNode { |
66 public: | 67 public: |
67 FileFuseFsNode(Filesystem* filesystem, | 68 FileFuseFsNode(Filesystem* filesystem, |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 off_t off); | 114 off_t off); |
114 | 115 |
115 private: | 116 private: |
116 friend class FuseFs; | 117 friend class FuseFs; |
117 DISALLOW_COPY_AND_ASSIGN(DirFuseFsNode); | 118 DISALLOW_COPY_AND_ASSIGN(DirFuseFsNode); |
118 }; | 119 }; |
119 | 120 |
120 } // namespace nacl_io | 121 } // namespace nacl_io |
121 | 122 |
122 #endif // LIBRARIES_NACL_IO_FUSEFS_FUSE_FS_H_ | 123 #endif // LIBRARIES_NACL_IO_FUSEFS_FUSE_FS_H_ |
OLD | NEW |