Commit Graph

25 Commits

Author SHA1 Message Date
detworam 220843fb6a add ability to set block size 2017-05-24 13:09:37 -04:00
Adam Cozzette 5192bb933b Merge pull request #7 from rutsky/verbose-messages
handle errors in verbose user friendly way
2016-02-08 21:59:20 -08:00
Adam Cozzette 83b24c843e Merge pull request #8 from rutsky/make-buse_operations-optional
make buse_operations fields optional
2016-02-08 21:58:56 -08:00
Vladimir Rutsky 688038b583 make buse_operations fields optional
Not implemented read or write operation returns EPERM to the client,
however I failed to receive any "permission errors" on client using
nbd-client.
2016-02-01 04:11:11 +03:00
Vladimir Rutsky 0b2d3e5052 handle typical permission denied error in user friendly way
This is the first (and the only) error that will occur if user will
try to access /dev/nbd0 without proper permissions.
2016-02-01 04:08:05 +03:00
Vladimir Rutsky 2abde7a3f3 fix use of assert() when NDEBUG is defined
assert() body is not executed if NDEBUG is defined.
2016-02-01 00:39:54 +03:00
Adam Cozzette 8b37d93f7d Fixed #ifdefs in buse.c
A couple #ifdefs were broken because the identifiers they were testing are
defined as members of an enum, not as macros. This commit changes them to use
actual macros that ought to serve the intended purpose of feature checking.
2013-11-03 10:19:58 -08:00
comatose 0ab67ea733 Merge pull request #1 from petiepooo/bugfixes
Bugfixes
2013-06-28 13:54:38 -07:00
comatose 934a1e31ec Merge pull request #2 from petiepooo/gplv2-lic
apply GPLv2 license to BUSE project (original author must approve)
2013-06-28 13:52:57 -07:00
Pete Nelson 9b16fb354e apply GPLv2 license to BUSE project (original author must approve) 2013-06-28 10:50:13 -04:00
Pete Nelson 6ba3d26042 buse.c: add assertions to avoid null function ptrs 2013-06-27 17:03:10 -04:00
Pete Nelson 36a70c004e buse.c: conditional defines to work with older nbd versions 2013-06-27 13:27:10 -04:00
comatose 897f21e4d3 * buse.c: Fixed a bug in read op. 2012-12-07 20:58:26 +09:00
comatose 9e9f31bf90 * buse.h: Added extern "C" keyword. 2012-12-07 15:13:43 +09:00
comatose 18c7ede4fb Merge branch 'master' of https://github.com/comatose/BUSE
Conflicts:
	buse.c
	buse.h
	busexmp.c
2012-12-03 08:29:18 +09:00
comatose ce8145de67 . 2012-12-03 08:25:06 +09:00
comatose 408c99ba0b Added some error handling. 2012-12-02 01:08:13 +09:00
comatose 44b2f13ad4 Add trim support. 2012-12-01 14:35:46 +09:00
comatose 01919ef8a1 initial trim support 2012-12-01 00:42:29 +09:00
Adam Cozzette 9a44badd00 Added a BUSE loopback device for benchmarking purposes. 2011-12-15 00:39:59 -08:00
Adam Cozzette e49ded9330 Cleaned up the README. Copied some constants and struct definitions to buse.h so
that the code doesn't rely on a hard-coded location of nbd.h.
2011-11-23 14:34:43 -08:00
Adam Cozzette b6722defc5 Fixed a bug in buse.c where I was mistakenly relying on read and write syscalls
to complete an entire request in one call.
2011-11-17 11:17:53 -08:00
Adam Cozzette 28eb460f25 Various changes:
* Changed the Makefile to do static linking instead of dynamic.
 * Fixed a bug in buse.c where I was passing &chunk instead of just chunk.
 * Changed busexmp.c to correctly act as an in-memory disk instead of just
   returning zeros.
 * Other miscellaneous stuff
2011-11-15 14:44:38 -08:00
Adam Cozzette 3426987066 Adding a more correct trim function prototype to the struct of block device
operations.
2011-10-13 15:17:06 -07:00
Adam Cozzette 67c7f7c04a Changed abuse to buse everywhere it appeared. 2011-10-09 23:20:39 -07:00