gtfs: Support intra-directory rename
authorBarret Rhoden <brho@cs.berkeley.edu>
Wed, 27 Jun 2018 18:48:31 +0000 (14:48 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Wed, 27 Jun 2018 18:48:31 +0000 (14:48 -0400)
commit94fd376914eea7ba30ceab9d6034f75bdf46e87f
tree5c11c614495e1bfb948ab8aecdf0281717b4deaa
parentd65501242d94c5841e8720a7655f60b8c46fd00b
gtfs: Support intra-directory rename

9p can handle it.  This actually has a couple benefits apart from passing a
Go test:
- No needless copies for large files
- Atomic rename for intra-directory files, which is a common pattern for
  updating a file atomically.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/drivers/dev/gtfs.c