rbfuse 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6a0d1118c9329e3ec753ac6bd9da1ac618948f8a
4
- data.tar.gz: 30ee683619facf6d3db12d37338123226095d9fc
3
+ metadata.gz: aa0f70f5ae0647d619171c916b6ce8f6f879bcc7
4
+ data.tar.gz: 3bcd5a1cc80900b85953af0f5a5e1ed8bb761198
5
5
  SHA512:
6
- metadata.gz: 50b6b556187414ded4435a9d0e8b3f4267e7376b20bf7a4fb940ae5b55c761d7191fa7483071665a59ead6fe5cf15c9050d52d1391e6e97067d09ad6ca397e6c
7
- data.tar.gz: e82dcca262036420062a2d80d6074ed656b3e0dc3aaafd542c7bea75b55e67863966bf58f52c506b89b71c36851e4fd84dfc9886710b2354d16fa36eca79d7c8
6
+ metadata.gz: aea7c7e357073ee0adadf78a0971e4f5b37fabd913e3f53a6f4e62728622cc10c7c86f354728e2069c1afd920fc3e2b8b3f0309baa2992cee0e388125809f2ea
7
+ data.tar.gz: 9f2b2eac7c44ea579f1015099e7fa7cf57bfbee746298a87542dd6d255098cdf67a31687108ca7bf7c6ea9931c1130c1ec70d62369be8d4b35d605909078d673
data/.gitignore CHANGED
@@ -11,4 +11,4 @@
11
11
  mkmf.log
12
12
 
13
13
  *.swp
14
-
14
+ *.gem
data/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  Ruby FUSE, with [FFI](https://github.com/ffi/ffi)
4
4
 
5
+ Support OSX And Linux 64 bit system
6
+
5
7
  ## Require
6
8
 
7
9
  * fuse or osxfuse 2.x
@@ -28,8 +30,9 @@ see examples/hello
28
30
 
29
31
  ## TODO
30
32
 
33
+ * more interface
31
34
  * interface test
32
- * linux testing & fix
35
+ * test 32 bit system
33
36
 
34
37
  ## Contributing
35
38
 
data/README.zh-cn.md CHANGED
@@ -2,7 +2,9 @@
2
2
 
3
3
  简单的使用 [FFI](https://github.com/ffi/ffi) 实现的 FUSE ruby 库
4
4
 
5
- 目前只是一个玩具项目,没有测试,暂时只有 OSX 上可以使用
5
+ 支持 OSX 与 Linux 64bit
6
+
7
+ 目前只是一个玩具项目,没有测试
6
8
 
7
9
  ## Require
8
10
 
@@ -30,8 +32,9 @@ See examples/hello
30
32
 
31
33
  ## TODO
32
34
 
35
+ * 支持更多的接口
33
36
  * 各种接口的测试
34
- * Linux 接口的测试与修复
37
+ * 测试 32 位系统的使用
35
38
 
36
39
  ## Contributing
37
40
 
data/examples/hello CHANGED
@@ -1,8 +1,17 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
+ #
4
+ # Support operations:
5
+ # ls path
6
+ # cd dir
7
+ # touch path
8
+ # echo str > path
9
+ # cat path
10
+ # rm path
11
+ #
12
+
3
13
  require "bundler/setup"
4
14
  require "rbfuse"
5
- require 'pry'
6
15
 
7
16
 
8
17
  default_str = 'hello fuse'
@@ -1,3 +1,3 @@
1
1
  module RBFuse
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -2,13 +2,17 @@ module RBFuse
2
2
  class Stat < FFI::Struct
3
3
 
4
4
  # http://man7.org/linux/man-pages/man2/stat.2.html
5
+ # https://github.com/lattera/glibc/blob/a2f34833b1042d5d8eeb263b4cf4caaea138c4ad/sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h
6
+ #
7
+ # stat64
5
8
  layout(
6
9
  :st_dev, :dev_t,
7
10
  :st_ino, :ino_t,
8
- :st_mode, :mode_t,
9
11
  :st_nlink, :nlink_t,
12
+ :st_mode, :mode_t,
10
13
  :st_uid, :uid_t,
11
14
  :st_gid, :gid_t,
15
+ :__pad0, :uint,
12
16
  :st_rdev, :dev_t,
13
17
  :st_size, :off_t,
14
18
  :st_blksize, :blksize_t,
@@ -16,7 +20,7 @@ module RBFuse
16
20
 
17
21
  :st_atimespec, RBFuse::Timespec,
18
22
  :st_mtimespec, RBFuse::Timespec,
19
- :st_ctimespec, RBFuse::Timespec
23
+ :st_ctimespec, RBFuse::Timespec,
20
24
  )
21
25
 
22
26
  # http://man7.org/linux/man-pages/man2/stat.2.html
data/lib/rbfuse.rb CHANGED
@@ -20,7 +20,6 @@ module RBFuse
20
20
 
21
21
  autoload :FuseEnum, 'rbfuse/fuse_enum'
22
22
 
23
- autoload :Errno, "rbfuse/#{PLATFORM_NAME}/Errno"
24
23
  autoload :Stat, "rbfuse/#{PLATFORM_NAME}/stat"
25
24
  autoload :Statvfs, "rbfuse/#{PLATFORM_NAME}/statvfs"
26
25
  autoload :Utimbuf, "rbfuse/#{PLATFORM_NAME}/utimbuf"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbfuse
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - jiangzhi.xie
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-01 00:00:00.000000000 Z
11
+ date: 2016-01-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler