[fs][devmgr] Avoid using inequality operators on ordinals
Although there is still heavy reliance on ordinals as constants outside generated FIDL code, this patch removes the filesystem dependence on relative ordering of FIDL ordinals by instead utilizing the "try_dispatch" family of functions. Rather than routing to the appropriate dispatch function, the FIDL handler will now "try_dispatch" to all possible interfaces, checking against ERR_NOT_SUPPORTED until something else is returned or the list is exhausted. This is less efficient, but acts as a workaround for FTP-20. ZX-3063 #done Test: CQ Change-Id: Iff1736757417e2b44765ae0083fc6d16022102fe
Showing
- system/core/devmgr/devhost/devhost.cpp 1 addition, 5 deletionssystem/core/devmgr/devhost/devhost.cpp
- system/core/devmgr/devhost/rpc-server.cpp 18 additions, 16 deletionssystem/core/devmgr/devhost/rpc-server.cpp
- system/fidl/fuchsia-io/io.fidl 32 additions, 32 deletionssystem/fidl/fuchsia-io/io.fidl
- system/fidl/fuchsia-minfs/minfs.fidl 2 additions, 2 deletionssystem/fidl/fuchsia-minfs/minfs.fidl
- system/ulib/fs/connection.cpp 16 additions, 15 deletionssystem/ulib/fs/connection.cpp
- system/ulib/minfs/vnode.cpp 1 addition, 7 deletionssystem/ulib/minfs/vnode.cpp
Loading
Please register or sign in to comment