Commit Graph

39 Commits (9ed0e374218969558008d63ef37fc03aeef0b5cf)

Author SHA1 Message Date
Michael Stapelberg ae5da07e4c
remove naked returns across the code base (#75)
fixes #73
2020-01-28 10:10:08 +01:00
Ka-Hing Cheung 4898d79241 plumb through Fd in setattr (#67)
this allows us to distinguish between truncate vs ftruncate
2019-12-11 09:49:03 +01:00
Ka-Hing Cheung e7bcad2083 fix getxattr and listxattr (#72)
previously, this will fail if /mnt/file doesn't have an xattr:

```
listxattr("/mnt/file", 0x7fe8b3686830, 256) = -1 EIO (Input/output error)
```

We should be returning the actual size only if the input size is
zero. Related issue is if the filesystem returns ERANGE, we should
propagate that error instead of returning the actual size.

Replaced go-xattr usage with x/sys/unix so we can test this.
2019-12-11 09:41:37 +01:00
Ka-Hing Cheung 4ee1cf7f62 add support for fallocate (#66)
* Fallocate support

* use fallocate wrapper that works on darwin
2019-10-26 10:15:00 +02:00
Michael Stapelberg 659cc51b20
convertAttributes: set S_ISUD bit from os.FileMode’s os.ModeSetuid (#58) 2019-09-19 08:49:04 +02:00
Srdjan Rilak 1b4a34cc7b Add CreateLink implementation 2017-11-24 14:36:15 +01:00
Ka-Hing Cheung d650fe34ba added tests and enhanced comments 2017-05-11 14:45:40 -07:00
Ka-Hing Cheung cbeaa55087 SetXattr support 2017-05-11 14:45:40 -07:00
Ka-Hing Cheung d20c4665c1 GetXattr/ListXattr implementation 2017-05-11 14:45:40 -07:00
Ka-Hing Cheung 8aade5c71f RemoveXattr implementation 2017-05-11 14:45:40 -07:00
Ben Sidhom 025868ecf2 Add direct io option for file operations 2017-05-09 07:47:28 +10:00
Aaron Jacobs 95e4d8b12e conversions.go: use the new buffer API. 2016-12-19 13:17:49 +11:00
Aaron Jacobs f5dc8c356e Added conversion support. 2015-12-14 23:34:09 +00:00
Andrew Gaul 1dcc6791f0 Report physical blocks used
Tools like du and ls -l use this value to calculate the space used.
Force block size to 512 bytes for simplicity and compatibility with
Mac OS X which uses an older FUSE.
2015-10-22 18:57:08 -07:00
Aaron Jacobs 33a476cafc Attempt to do what the documentation now says. 2015-09-10 13:43:12 +10:00
Aaron Jacobs c96d308a7a Set f_frsize, fixing free space calculation by `df` on OS X. 2015-09-09 22:04:10 +10:00
Aaron Jacobs 5921525aab Removed special handling of statfs. 2015-09-09 09:49:54 +10:00
Aaron Jacobs 81de9fb6cc Made the message shrinking API less confusing. 2015-08-10 15:45:46 +10:00
Aaron Jacobs 9a7512aac0 Improved debug logging for unknownOp. 2015-08-06 16:25:43 +10:00
Aaron Jacobs 1e2d4abaf9 Don't send error responses to the kernel for forget and interrupt.
It's not expecting them.
2015-08-04 12:28:08 +10:00
Aaron Jacobs d205df3144 Don't return long error responses to ReadDir and ReadFile. 2015-08-04 12:21:34 +10:00
Aaron Jacobs a88ad8dbf2 Added support for KeepPageCache. 2015-07-29 05:53:46 +00:00
Aaron Jacobs ab0580a452 Fixed a very dumb bug. 2015-07-29 11:14:17 +10:00
Aaron Jacobs ea97708e20 Read directly into out messages for directories. 2015-07-29 11:03:27 +10:00
Aaron Jacobs bbb262ee48 Read directly into out messages for files. 2015-07-29 11:02:29 +10:00
Aaron Jacobs d903c709d3 Refactored allocation out OutMessage structs.
In preparation for allocating them up-front for ReadFile and ReadDir.
2015-07-29 10:47:41 +10:00
Aaron Jacobs c08043788a Fixed conversions.go. 2015-07-29 09:49:28 +10:00
Aaron Jacobs 384f32c2a3 Connection.kernelResponseForOp 2015-07-28 16:17:06 +10:00
Aaron Jacobs 0becfa3df2 Began fixing Connection. 2015-07-28 16:13:18 +10:00
Aaron Jacobs 5c332f767b Moved the kernel response functions to a more appropriate place. 2015-07-27 15:55:14 +10:00
Aaron Jacobs 95a6177c0c Fixed redundant internal op names. 2015-07-27 15:52:13 +10:00
Aaron Jacobs 3755e3c1a1 Fixed package fuse. 2015-07-27 15:43:41 +10:00
Aaron Jacobs 35d5c4c3fe Fixed conversions.go. 2015-07-27 14:38:18 +10:00
Aaron Jacobs 7035b69b93 Fixed a bunch more errors. 2015-07-27 14:35:26 +10:00
Aaron Jacobs 2b8c659517 Fixed several more build errors. 2015-07-27 14:33:19 +10:00
Aaron Jacobs b78e8f91d7 Fixed several build errors. 2015-07-27 14:32:29 +10:00
Aaron Jacobs f93dfe355f Fixed the signature for Convert. 2015-07-27 14:30:34 +10:00
Aaron Jacobs 6389e8773f Fixed package name. 2015-07-27 14:21:36 +10:00
Aaron Jacobs cf97f40c33 Moved over convert.go. 2015-07-27 14:20:54 +10:00