sapling/eden
Wez Furlong 6db8db6dfd use ENOTTY to report unsupported ioctl, fix listxattr
Summary:
The unix `patch` command attempts to issue an `FS_IOC_GETFLAGS`
ioctl and blows up when we return `ENOSYS`.  The man page for ioctl says:

```
   ENOTTY The specified request does not apply to the kind of object that
   the file descriptor fd references.
```

so let's return that error code to ioctl.

In addition, the integration test I added for this trips up when it calls
`llistxattr` on the file; turns out we don't need to insert the
`fuse_getxattr_out` when we're returning the attribute list and that it
is only needed when measuring up the required length, so let's move
things around to resolve this and make it clearer.

Reviewed By: chadaustin

Differential Revision: D6685568

fbshipit-source-id: 81963ffe9af30db5634e5e96b7a8aa1485859d65
2018-01-09 12:33:20 -08:00
..
cli enable python typechecking from buck 2018-01-08 12:10:19 -08:00
docs add an overview doc for our threading strategy 2017-12-12 12:51:23 -08:00
facebook Migrate TARGETS files from @/ to // 2017-12-20 16:57:41 -08:00
fs use ENOTTY to report unsupported ioctl, fix listxattr 2018-01-09 12:33:20 -08:00
hooks Migrate TARGETS files from @/ to // 2017-12-20 16:57:41 -08:00
integration use ENOTTY to report unsupported ioctl, fix listxattr 2018-01-09 12:33:20 -08:00
py support reading the old .hg/dirstate format 2017-11-07 14:17:37 -08:00
scripts add a script to force unmounting all edenfs mounts 2017-11-15 11:48:38 -08:00
third-party remove dep on libfuse 2018-01-02 16:36:16 -08:00
AUTODEPS Set up arc lint to run autodeps automatically for Eden. 2017-11-21 18:23:41 -08:00
DEFS Migrate TARGETS files from @/ to // 2017-12-20 16:57:41 -08:00