Fix VFS clone_fdt bug
authorBarret Rhoden <brho@cs.berkeley.edu>
Fri, 29 Apr 2016 20:31:14 +0000 (16:31 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Mon, 2 May 2016 21:11:15 +0000 (17:11 -0400)
commit61c8ea96180884ea3a2ea139388b944eafdf2033
tree191c1ce7605b6471882646fabdc19f25219c80ce
parentf99f6781c61a6d7f2b7f4aa494022b494ccb1bd2
Fix VFS clone_fdt bug

If we attempted to clone an FDT that had grown beyond its initial limit
(32) and still had open files for the high FDs, then we'd trip an assert.
The fix is to grow the destination's FDT to correspond to the source's.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/src/vfs.c
user/utest/file-posix.c