aboutsummaryrefslogtreecommitdiff
path: root/libstore/nbd.c
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright years.Thomas Schwinge2008-07-011-1/+1
|
* * nbd.c (nbd_read): Initialize piecelen.Samuel Thibault2008-03-161-1/+1
|
* doc/Marcus Brinkmann2002-12-031-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-12-03 Marcus Brinkmann <marcus@gnu.org> * hurd.texi (Store I/O): Add store_set_size. libstore/ 2002-10-01 Ludovic Courtès <ludovic.courtes@utbm.fr> * store.h: New type store_set_size_meth_t: New type. New prototype store_set_size. (struct store_class): Added a set_size () method. * rdwr.c (store_set_size): New function. * file.c (file_store_set_size): New function. (store_file_class): Add file_store_set_size. * concat.c (concat_set_size): New function. (store_concat_class): concat_set_size. * copy.c (copy_set_size): New function. (store_copy_class): copy_set_size. * device.c (device_set_size): New function. (store_device_class): device_set_size. * memobj.c (memobj_set_size): New function. (store_memobj_class): memobj_set_size. * mvol.c (mvol_set_size): New function. (store_mvol_class): mvol_set_size. * nbd.c (nbd_set_size): New function. (store_nbd_class): nbd_set_size. * remap.c (remap_set_size): New function. (store_remap_class): remap_set_size. * stripe.c (stripe_set_size): New function. (store_stripe_class): stripe_set_size. * unknown.c (unknown_set_size): New function. (store_unknown_class): unknown_set_size. * zero.c (zero_set_size): New function. (store_zero_class): zero_set_size.
* 2002-02-08 Roland McGrath <roland@frob.com>Roland McGrath2002-03-141-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Makefile (store-types): New variable. (all): Depend on $(store-types:%=libstore_%.a). (libstore_%.so.$(hurd-version)): New pattern rule. ($(store-types:%=libstore_%.a): libstore_%.a): New static pattern rule to create `-lstore_TYPE' pseudo-objects (linker scripts) for each type. (libstore.so-LDLIBS): New variable, adds -ldl. (GUNZIP_OBJS, BUNZIP2_OBJS): New variables. (UNZIP_OBJS): Variable removed, replaced by those two. (OBJS): Update use. (libstore_gunzip.so.$(hurd-version)): Depend on PIC $(GUNZIP_OBJS). (libstore_bunzip2.so.$(hurd-version)): Depend on PIC $(BUNZIP2_OBJS). * unknown.c: Add STORE_STD_CLASS decl. * bunzip2.c: Likewise. * copy.c: Likewise. * device.c: Likewise. * file.c: Likewise. * gunzip.c: Likewise. * memobj.c: Likewise. * module.c: Likewise. * mvol.c: Likewise. * nbd.c: Likewise. * open.c: Likewise. * part.c: Likewise. * remap.c: Likewise. * stripe.c: Likewise. * stripe.c: Likewise. * task.c: Likewise. * typed.c: Likewise. * typed.c: Likewise. * unknown.c: Likewise. * url.c: Likewise. * zero.c: Likewise.
* 2002-01-01 Roland McGrath <roland@frob.com>Roland McGrath2002-01-021-9/+3
| | | | * nbd.c (htonll): Make this a macro using bswap_64 from <byteswap.h>.
* 2001-12-31 Roland McGrath <roland@frob.com>Roland McGrath2001-12-311-0/+1
| | | | | * nbd.c (store_nbd_open): Make sure the store's name always starts with the "nbd://" prefix.
* 2001-12-31 Roland McGrath <roland@frob.com>Roland McGrath2001-12-311-1/+4
| | | | | * nbd.c (store_nbd_open): Make sure the store's name always starts with the "nbd://" prefix.
* restore rev 1.7 change somehow lost in the shuffleRoland McGrath2001-12-311-7/+17
|
* 2001-12-30 Roland McGrath <roland@frob.com>Roland McGrath2001-12-311-14/+87
| | | | | * nbd.c (nbd_read): Request multiple chunks of up to NBD_IO_MAX each. Handle needing multiple io_read calls to receive a single chunk.
* 2001-12-29 Roland McGrath <roland@frob.com>Roland McGrath2001-12-301-1/+1
| | | | | * nbd.c (nbdopen): Fix in last change. (nbd_read): Let LEN receive the result count from io_read.
* 2001-12-29 Roland McGrath <roland@frob.com>Roland McGrath2001-12-301-1/+1
| | | | * nbd.c (nbdopen): Fix in last change.
* 2001-12-29 Roland McGrath <roland@frob.com>Roland McGrath2001-12-301-16/+40
| | | | | | * nbd.c (NBD_IO_MAX): New macro. (nbd_write): Write in chunks no larger than NBD_IO_MAX. (nbd_read): Cap AMOUNT to NBD_IO_MAX.
* 2001-12-29 Roland McGrath <roland@frob.com>Roland McGrath2001-12-301-9/+15
| | | | | | * nbd.c (nbd_validate_name): Skip : before port number. (nbdopen): Fix test after connect loop. Use multiple read calls as needed to get the whole connection header.
* 2001-12-29 Roland McGrath <roland@frob.com>Roland McGrath2001-12-291-18/+8
| | | | * nbd.c (nbd_validate_name): Skip : before port number.
* 2001-10-14 Roland McGrath <roland@frob.com>Roland McGrath2001-12-231-7/+17
| | | | | * nbd.c (nbd_validate_name): Accept an optional "nbd://" prefix. (nbdopen): Likewise.
* 2001-10-06 Neal H Walfield <neal@cs.uml.edu>Roland McGrath2001-10-061-1/+1
| | | | | | * memobj.c: Include "store.h", not <hurd/store.h>. * nbd.c: Likewise. * parted.c: Likewise.
* 2001-10-01 Marcus Brinkmann <marcus@gnu.org>Marcus Brinkmann2001-10-011-1/+2
| | | | | | | | | | | | | | | | | | | | * device.c (dev_error): Add a break to silence gcc warning. (store_device_class): Add const to type. * typed.c (store_typed_open_class): Likewise. * file.c (store_file_class): Likewise. * stripe.c (store_concat_class): Likewise. (store_ileave_class): Likewise. * zero.c (store_zero_class): Likewise. * open.c (store_open_class): Likewise. * remap.c (store_remap_class): Likewise. * task.c (store_task_class): Likewise. * copy.c (store_copy_class): Likewise. * gunzip.c (store_gunzip_class): Likewise. * bunzip2.c (store_bunzip2_class): Likewise. * mvol.c (store_mvol_class): Likewise. * memobj.c (store_memobj_class): Likewise. * nbd.c (store_nbd_class): Likewise. Submitted by Maurizio Boriani <baux@debian.org>.
* 2001-09-29 Roland McGrath <roland@frob.com>Roland McGrath2001-09-291-5/+4
| | | | | * nbd.c (struct nbd_startup): Replace sizehi, sizelo with just size. (nbdopen): Changed use.
* 2001-09-27 Roland McGrath <roland@frob.com>Roland McGrath2001-09-281-0/+1
| | | | * nbd.c (store_nbd_open): Divide reported size by block size.
* Comment fixRoland McGrath2001-09-281-1/+1
|
* 2001-09-27 Roland McGrath <roland@frob.com>Roland McGrath2001-09-281-0/+409
* nbd.c: New file. * Makefile (SRCS): Add it. * store.h (store_nbd_open, _store_nbd_create): Declare them.