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 +4 -4
- data/.gitignore +1 -1
- data/README.md +4 -1
- data/README.zh-cn.md +5 -2
- data/examples/hello +10 -1
- data/lib/rbfuse/version.rb +1 -1
- data/lib/rbfuse/x86_64-linux/stat.rb +6 -2
- data/lib/rbfuse.rb +0 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aa0f70f5ae0647d619171c916b6ce8f6f879bcc7
|
4
|
+
data.tar.gz: 3bcd5a1cc80900b85953af0f5a5e1ed8bb761198
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aea7c7e357073ee0adadf78a0971e4f5b37fabd913e3f53a6f4e62728622cc10c7c86f354728e2069c1afd920fc3e2b8b3f0309baa2992cee0e388125809f2ea
|
7
|
+
data.tar.gz: 9f2b2eac7c44ea579f1015099e7fa7cf57bfbee746298a87542dd6d255098cdf67a31687108ca7bf7c6ea9931c1130c1ec70d62369be8d4b35d605909078d673
|
data/.gitignore
CHANGED
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
|
-
*
|
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
|
-
|
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
|
-
*
|
37
|
+
* 测试 32 位系统的使用
|
35
38
|
|
36
39
|
## Contributing
|
37
40
|
|
data/examples/hello
CHANGED
data/lib/rbfuse/version.rb
CHANGED
@@ -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.
|
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-
|
11
|
+
date: 2016-01-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|