Skip to content

Commit

Permalink
Fix a typo in README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
dsp committed Jul 29, 2014
1 parent fa9ea5b commit d21fd15
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ $ mkdir /mnt/simplefs
$ ./simplefs /mnt/simplefs
```

## Implementing a filesystems
## Implementing a filesystem
dfuse provides a high level interface for libfuse. To implement a filesystem, extend the *Operations* class in the *dfuse.fuse* module:
```D
import dfuse.fuse;
Expand All @@ -42,7 +42,7 @@ class MyFS : Operations
}
```

A minimal filesystem implements *Operations.getattr*, *Operations.readdir*, *Operations.read*. See [dfuse/fuse.d](https://github.com/facebook/dfuse/blob/master/dfuse/fuse.d) for implementation specific details.
A minimal filesystem implements `Operations.getattr()`, `Operations.readdir()`, `Operations.read()`. See [dfuse/fuse.d](https://github.com/facebook/dfuse/blob/master/dfuse/fuse.d) for implementation specific details.

To mount a filesystem use a Fuse object and call mount:
```D
Expand All @@ -56,6 +56,8 @@ int main(string[] args)
}
```

Error conditions are handled by throwin a *FuseException* with the appropriate error number. See `man 3 errno` for more information about errno.

## Requirements
dfuse requires:
* Mac OS X or Linux
Expand Down

0 comments on commit d21fd15

Please sign in to comment.