Les De Ridder
455b6dec2f
Add install rule to Makefile
2017-10-30 02:44:22 +01:00
Les De Ridder
3cdd941748
Build a shared library instead of a static library
2017-10-30 02:27:33 +01:00
Adam Cozzette
840ee49c5b
Merge pull request #13 from detworam/master
...
add ability to set block size
2017-05-29 13:42:26 -07:00
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
Adam Cozzette
48c8f20d92
Merge pull request #4 from rutsky/fix-when-NDEBUG-defined
...
fix behaviour when BUSE compiled with defined NDEBUG
2016-02-08 21:43:19 -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
198ffee1cb
add help message to busexmp example
2016-02-01 04:08:13 +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
Vladimir Rutsky
45b4ef924b
fix loopback example building with -DNDEBUG
2016-02-01 00:39:48 +03:00
Adam Cozzette
491f7ba326
Fixed a typo in the README
2013-11-11 19:54:20 -08: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
Adam Cozzette
3d47e9d5bf
Converted the README to Markdown
2013-06-30 19:26:35 -07:00
Pete Nelson
3287a9e67b
Merge branch 'master' of https://github.com/acozzette/BUSE
2013-06-29 11:06:36 -04:00
Pete Nelson
c0b948de36
Merge remote-tracking branch 'origin/master'
2013-06-29 11:05:05 -04: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
Adam Cozzette
3d75d50d5a
Merge pull request #1 from petiepooo/gplv2-lic
...
apply GPLv2 license to BUSE project (original author must approve)
2013-06-28 08:31:35 -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
a612b72df8
Merge branch 'bugfixes'
2013-06-27 17:07:56 -04:00
Pete Nelson
6ba3d26042
buse.c: add assertions to avoid null function ptrs
2013-06-27 17:03:10 -04:00
Pete Nelson
e4fd3b729f
loopback.c, busexmp.c: get rid of compiler warnings
2013-06-27 17:03:10 -04:00
Pete Nelson
c322c1035f
loopback.c: fix bug in call to buse_main()
2013-06-27 15:09:17 -04:00
Pete Nelson
8439322930
buse.h: use distro's nbd.h instead of copy/paste
2013-06-27 13:27:53 -04:00
Pete Nelson
36a70c004e
buse.c: conditional defines to work with older nbd versions
2013-06-27 13:27:10 -04:00
comatose
a1e8b08807
* BUSEDevice.cpp:
2012-12-11 16:13:14 +09:00
comatose
892c132b43
* BUSEDevice.cpp:
2012-12-11 16:08:44 +09: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
a1219f920f
Updated the .gitignore file.
2011-12-15 00:40:49 -08:00
Adam Cozzette
9a44badd00
Added a BUSE loopback device for benchmarking purposes.
2011-12-15 00:39:59 -08:00
Adam Cozzette
5c1ba95802
Added instructions on running the example code to the README.
2011-11-23 15:04:58 -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
d1704eb381
Changes to the BUSE memory disk example:
...
* Added a trivial disconnect function.
* Made it large enough to allow placing an ext2 file system with 4K blocks on
it.
2011-11-17 11:19:09 -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
46ce45a571
Removing from the Makefile something specific to my personal configuration.
2011-10-09 23:57:12 -07:00
Adam Cozzette
9a9d2f7325
Edited .gitignore and Makefile to support building BUSE as a shared library.
2011-10-09 23:49:22 -07:00
Adam Cozzette
3b18f42311
Updated the .gitignore file and added a README.
2011-10-09 23:30:39 -07:00
Adam Cozzette
67c7f7c04a
Changed abuse to buse everywhere it appeared.
2011-10-09 23:20:39 -07:00
Adam Cozzette
fa6dc0152c
Committing various changes.
2011-10-09 22:30:30 -07:00
Adam Cozzette
552256907e
Hopefully resolved the byte order issues.
2011-09-27 04:56:36 -07:00