Bug 213479 - Fix ggatec; Return EOPNOTSUPP for operations other than BIO_READ / BIO_WRITE
Summary: Fix ggatec; Return EOPNOTSUPP for operations other than BIO_READ / BIO_WRITE
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-bugs (Nobody)
URL:
Keywords: needs-qa, patch
Depends on:
Blocks:
 
Reported: 2016-10-14 15:56 UTC by kikuchan98
Modified: 2018-11-23 03:22 UTC (History)
0 users

See Also:


Attachments
a workaround for the problem (399 bytes, patch)
2016-10-14 15:56 UTC, kikuchan98
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description kikuchan98 2016-10-14 15:56:55 UTC
Created attachment 175746 [details]
a workaround for the problem

When G_GATE_CMD_START ioctl require some operations other than BIO_READ / BIO_WRITE, current implementation of ggatec sometimes stops working because it uses uninitialized hdr.gh_cmd variable confuses ggated.

A patch try to solve this situation by returning EOPNOTSUPP, like ggatel does.

Maybe BIO_FLUSH and BIO_DELETE should be supported on ggate protocol by assigning GGATE_CMD_FLUSH and GGATE_CMD_DELETE commands respectively, in the future.