[PATCH 2.6.12-rc1-mm2] relayfs: properly handle oversized events

2005-03-24 Thread Tom Zanussi
This patch fails writes larger than the sub-buffer size and prints a warning and stack trace when it happens. I chose this over BUG_ON() or silently failing since while it could probably be considered a bug for an application to let this happen, it's not fatal and the user would probably want to

[PATCH 2.6.12-rc1-mm2] relayfs: properly handle oversized events

2005-03-24 Thread Tom Zanussi
This patch fails writes larger than the sub-buffer size and prints a warning and stack trace when it happens. I chose this over BUG_ON() or silently failing since while it could probably be considered a bug for an application to let this happen, it's not fatal and the user would probably want to