Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix inconsistent sector size between block and fs #81

Merged
merged 1 commit into from
Nov 21, 2019

Conversation

ehirdoy
Copy link

@ehirdoy ehirdoy commented Apr 9, 2019

let page = alloc 4096 in seems to force read 4KiB
but its unit should be FAT sector size.

This fixes "mirage-skeleton/device-usage/kv_ro",
configured with hvt && --kv_ro=fat.

Signed-off-by: Hiroshi Doyu hiroshi.doyu@ericsson.com

`let page = alloc 4096 in` seems to force read 4KiB
but its unit should be FAT sector size.

This fixes "mirage-skeleton/device-usage/kv_ro",
configured with hvt && --kv_ro=fat.

Signed-off-by: Hiroshi Doyu <hiroshi.doyu@ericsson.com>
@ehirdoy ehirdoy changed the title fix inconsistency sector size between block and fs fix inconsistent sector size between block and fs Apr 9, 2019
ehirdoy pushed a commit to ehirdoy/light_actor that referenced this pull request Apr 12, 2019
Here's a branch of this:
https://github.com/ehirdoy/light_actor/tree/bi-tcp%2Bfrag%2Bstorage2

This requires some patch:
mirage/ocaml-fat#81 from ocaml-fat

$ cd light_actor/test/mirage
$ wget http://yann.lecun.com/exdb/mnist/train-images-idx3-ubyte.gz
$ wget http://yann.lecun.com/exdb/mnist/train-labels-idx1-ubyte.gz
$ ./split-mnist-data
$ mirage clean ; mirage configure -t unix --kv_ro=direct && make depend && make

On 3 terminals repectively run:
$ ./lwae
$ ./lwae --uuid=w0
$ ./lwae --uuid=w1 --port=6001

And
$ mirage clean ; mirage configure -t hvt --kv_ro=fat && make depend && make

Signed-off-by: Hiroshi Doyu <hiroshi.doyu@ericsson.com>
ehirdoy pushed a commit to ehirdoy/light_actor that referenced this pull request Apr 12, 2019
Here's a branch of this:
https://github.com/ehirdoy/light_actor/tree/bi-tcp%2Bfrag%2Bstorage2

This requires some patch:
mirage/ocaml-fat#81 from ocaml-fat

$ cd light_actor/test/mirage
$ wget http://yann.lecun.com/exdb/mnist/train-images-idx3-ubyte.gz
$ wget http://yann.lecun.com/exdb/mnist/train-labels-idx1-ubyte.gz
$ ./split-mnist-data
$ mirage clean ; mirage configure -t unix --kv_ro=direct && make depend && make

On 3 terminals repectively run:
$ ./lwae
$ ./lwae --uuid=w0
$ ./lwae --uuid=w1 --port=6001

Or for Unikernrel:
$ mirage clean ; mirage configure -t hvt --kv_ro=fat && make depend && make

On 3 terminals repectively run:
$ ./start-actor server
$ ./start-actor w0
$ ./start-actor w1

Signed-off-by: Hiroshi Doyu <hiroshi.doyu@ericsson.com>
ehirdoy pushed a commit to ehirdoy/light_actor that referenced this pull request Apr 12, 2019
Here's a branch of this:
https://github.com/ehirdoy/light_actor/tree/bi-tcp%2Bfrag%2Bstorage2

This requires some patch:
mirage/ocaml-fat#81 from ocaml-fat

$ cd light_actor/test/mirage
$ wget http://yann.lecun.com/exdb/mnist/train-images-idx3-ubyte.gz
$ wget http://yann.lecun.com/exdb/mnist/train-labels-idx1-ubyte.gz
$ ./split-mnist-data
$ mirage clean ; mirage configure -t unix --kv_ro=direct && make depend && make

On 3 terminals repectively run:
$ ./lwae
$ ./lwae --uuid=w0
$ ./lwae --uuid=w1 --port=6001

Or for Unikernrel:
NOTE: MirageOS requires opam2

$ mirage clean ; mirage configure -t hvt --kv_ro=fat && make depend && make

On 3 terminals repectively run:
$ ./start-actor server
$ ./start-actor w0
$ ./start-actor w1

Signed-off-by: Hiroshi Doyu <hiroshi.doyu@ericsson.com>
ehirdoy pushed a commit to ehirdoy/light_actor that referenced this pull request Apr 17, 2019
Here's a branch of this:
https://github.com/ehirdoy/light_actor/tree/bi-tcp%2Bfrag%2Bstorage2

This requires some patch:
mirage/ocaml-fat#81 from ocaml-fat

$ cd light_actor/test/mirage
$ wget http://yann.lecun.com/exdb/mnist/train-images-idx3-ubyte.gz
$ wget http://yann.lecun.com/exdb/mnist/train-labels-idx1-ubyte.gz
$ ./split-mnist-data
$ mirage clean ; mirage configure -t unix --kv_ro=direct && make depend && make

On 3 terminals repectively run:
$ ./lwae
$ ./lwae --uuid=w0
$ ./lwae --uuid=w1 --port=6001

Or for Unikernrel:
NOTE: MirageOS requires opam2

$ mirage clean ; mirage configure -t hvt --kv_ro=fat && make depend && make

On 3 terminals repectively run:
$ ./start-actor server
$ ./start-actor w0
$ ./start-actor w1

Signed-off-by: Hiroshi Doyu <hiroshi.doyu@ericsson.com>
ehirdoy pushed a commit to ehirdoy/light_actor that referenced this pull request Apr 25, 2019
This requires some patch:
mirage/ocaml-fat#81 from ocaml-fat

On 3 terminals repectively run:
$ ./lwae
$ ./lwae --uuid=w0
$ ./lwae --uuid=w1 --port=6001

Or for Unikernrel:
NOTE: MirageOS requires opam2

$ mirage clean ; mirage configure -t hvt --kv_ro=fat && make depend && make
$ ./runall

Signed-off-by: Hiroshi Doyu <hiroshi.doyu@ericsson.com>
@hannesm
Copy link
Member

hannesm commented Oct 25, 2019

would someone with more knowledge than me about FAT (@avsm @djs55) be willing to review this? imho this looks fine and should be merged :)

@samoht samoht merged commit 93e6fef into mirage:master Nov 21, 2019
@samoht
Copy link
Member

samoht commented Nov 21, 2019

Thanks!

samoht added a commit to samoht/opam-repository that referenced this pull request Nov 21, 2019
CHANGES:

- fix inconsistent sector size between block and fs (mirage/ocaml-fat#81, @ehirdoy)
- adapt to newer MirageOS 3.7.1 interfaces (mirage/ocaml-fat#82, @hannesm)
- Handle special dot and dotdot files (mirage/ocaml-fat#76, @ricarkol)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants