summaryrefslogtreecommitdiff
path: root/libstore/ChangeLog
blob: f0eb3d345ea5ef53651bddf8886767a2f44176c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
2001-12-30  Roland McGrath  <roland@frob.com>

	* 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>

	* nbd.c (nbdopen): Fix in last change.
	(nbd_read): Let LEN receive the result count from io_read.

	* 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.

	* 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-26  Roland McGrath  <roland@frob.com>

	* unknown.c: New file.
	* Makefile (SRCS): Add it.
	* store.h (store_unknown_class, store_unknown_decode): Declare them.
	* create.c (store_create): If store_decode fails with EINVAL,
	and we were called with the STORE_NO_FILEIO flag bit set,
	then use store_unknown_decode.

2001-12-23  Roland McGrath  <roland@frob.com>

	* kids.c (store_set_child_flags): Move decrement to avoid ill-defined
	C behavior that gets a warning.
	(store_clear_child_flags): Likewise.

2001-10-14  Roland McGrath  <roland@frob.com>

	* Makefile (SRCS): Add url.c to the list.

	* url.c: New file.
	(store_url_open): New function.
	(store_url_open_class): New const variable.
	* store.h: Declare them.
	* std.c (store_std_classes): Add &store_url_open_class to the list,
	move &store_nbd_class after it.

	* nbd.c (nbd_validate_name): Accept an optional "nbd://" prefix.
	(nbdopen): Likewise.

2001-10-06  Neal H Walfield  <neal@cs.uml.edu>

        * memobj.c: Include "store.h", not <hurd/store.h>.
        * nbd.c: Likewise.
        * part.c: Likewise.

2001-10-01  Marcus Brinkmann  <marcus@gnu.org>

	* part.c: Add const to type.
	Reported by Jeroen Dekkers.

2001-10-01  Marcus Brinkmann  <marcus@gnu.org>

	* 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-30  Roland McGrath  <roland@frob.com>

	* memobj.c: New file.
	* Makefile (SRCS): Add it.
	* store.h (store_memobj_class, store_memobj_create): Declare them.

2001-09-29  Roland McGrath  <roland@frob.com>

	* nbd.c (struct nbd_startup): Replace sizehi, sizelo with just size.
	(nbdopen): Changed use.

2001-09-28  Roland McGrath  <roland@frob.com>

	* decode.c (store_std_leaf_decode): Actually copy data into MISC.
	Don't call malloc for it when MISC_LEN is zero, just store null.

2001-09-27  Roland McGrath  <roland@frob.com>

	* nbd.c (store_nbd_open): Divide reported size by block size.

	* std.c (store_std_classes): Add store_nbd_class.
	* store.h: Declare it.

	* nbd.c: New file.
	* Makefile (SRCS): Add it.
	* store.h (store_nbd_open, _store_nbd_create): Declare them.

2001-09-16  Roland McGrath  <roland@frob.com>

	* std.c (store_std_classes): Only include store_part_class
	if [HAVE_PARTED_PARTED_H].

2001-08-25  Roland McGrath  <roland@frob.com>

	* part.c (store_part_create): Do a run-time check on ped_get_version.

2001-08-25  Neal H Walfield  <neal@cs.uml.edu>

        * part.c: New file.
        * std.c (store_std_classes): Add store_part_class.
        * store.h (store_part_create): New prototype.
        (store_part_open): Likewise.

2001-08-25  Roland McGrath  <roland@frob.com>

	* Makefile (parted.o, parted_pic.o): Pass -nostdlib.

2001-08-25  Neal H Walfield  <neal@cs.uml.edu>

        * Makefile (libstore.so-LDFLAGS): Renamed from LDFLAGS-libstore.so.

2001-08-24  Roland McGrath  <roland@frob.com>

	* Makefile (SRCS): Add part.c here.
	(OBJS): Mutate part.o -> parted.o here.
	(parted.o, parted_p.o, parted_pic.o): New targets.
	(LDFLAGS-libstore.so): Set to $(PARTED_LIBS).

2001-08-12  Neal H Walfield  <neal@cs.uml.edu>

	* copy.c (copy_read): The protocol dictates that *LEN is in
	bytes, not pages.
	(copy_write): Be sure that the buffer passed to vm_read is
	page-aligned.  When determining how much to copy, use LEN, not the
	uninitialized *AMOUNT.
	(copy_clone): Use memcpy, not bcopy.
	* derive.c: Include <sys/types.h> and <mach.h>.
	(_store_derive): Initialize STORE->wrap_src.

	* set.c: Do not include <malloc.h>.
	Include <stdlib.h>, <errno.h> and <mach.h>.
	(store_set_runs): Use memcpy, not bcopy.
	(store_set_name): Use strdup, not a strlen, malloc and strcpy.
	* zero.c (zero_read): When checking if mmap failed, compare
	against MAP_FAILED, not -1.
	Use memset, not bzero.

2001-08-03  Roland McGrath  <roland@frob.com>

	* Makefile (HURDLIBS): Define it so we link in libshouldbeinlibc.

2001-04-26  Marcus Brinkmann  <marcus@gnu.org>

	* set.c: Use explicit comparison to MACH_PORT_NULL.

2001-03-07  Roland McGrath  <roland@frob.com>

	* store.h (store_write, store_write_meth_t): Make buffer arg const*.
	* copy.c (copy_write): Likewise.
	* device.c (dev_write): Likewise.
	* file.c (file_write): Likewise.
	(file_byte_write): Likewise.
	* rdwr.c (store_write): Likewise.
	* remap.c (remap_write): Likewise.
	* stripe.c (stripe_write): Likewise.
	* task.c (task_write): Likewise.
	* zero.c (zero_write): Likewise.
	* mvol.c (zero_write): Likewise.

2001-01-16  Roland McGrath  <roland@frob.com>

	* store.h (struct store_argp_params): Add member `store_optional'.
	* argp.c (parse_opt): If store_optional is set, don't make it an error
	when there are no store arguments and the type doesn't validate that.

2001-01-14  Roland McGrath  <roland@frob.com>

	* encode.c (too_big): New static function.
	(store_std_leaf_encode): Use it to return EOVERFLOW if a run
	does not fit in an off_t.

2001-01-09  Marcus Brinkmann  <marcus@gnu.org>

	* device.c (store_device_create): Protect code of last change with
	#ifdef DEV_GET_RECORDS, and set sizes_len again before second try.
	(enforce): Likewise. Move definition of variable err up to top
	level.

2001-01-09  Marcus Brinkmann  <marcus@gnu.org>

	* device.c (enforce): First try DEV_GET_RECORDS, and only fall
	back to DEV_GET_STORE if this fails with D_INVALID_OPERATION.
	(store_device_create): Likewise, but fall back for any failure.

2001-01-08  Marcus Brinkmann  <marcus@gnu.org>

	* zero.c (zero_remap): Change type of variables length, old_length
	to store_offset_t.
	(zero_decode): Change type of variable size to store_offset_t.
	(zero_open): Likewise. Use strtoull instead strtoul to parse
	size argument from name. Use store_offset_t for max_offs and
	its calculation.
	(store_zero_create): Use store_offset_t type for size argument.

	* derive.c (_store_derive): Use store_offset_t as type for
	variable last_part_base.

	* stripe.c (addr_adj): Change types of addr argument and return
	value to store_offset_t.
	(store_ileave_create): Change type of interleave argument and
	variables min_end and end to store_offset_t, but type of variable
	block_size to size_t.
	(store_concat_create): Change type of variable block_size to
	size_t.

	* make.c (_store_create): Change end argument type to store_offset_t.

	* store.h: New type store_offset_t, define to off64_t.
	(struct store_run): Change type of start and length to
	store_offset_t.
	(struct store): Change type of end, wrap_src, wrap_dst, blocks,
	size to store_offset_t.
	Change type of addr arg in store_read_meth_t and
	store_write_meth_t to store_offset_t, as well as in declarations
	for store_read and store_write.
	Change type of argument end in _store_create declaration to
	store_offset_t.
	Change type of argument size in store_zero_create to
	store_offset_t. Change type of argument interleace in
	store_ileace_create to store_offset_t.

	* rdwr.c (store_find_first_run): Change type of return value, addr
	and *base arguments, and variables wrap_src and run_blocks to
	store_offset_t.
	(store_next_run): Change type of *base argument to store_offset_t.
	(store_write): Change type of addr argument and variable base to
	store_offset_t.
	(store_read): Likewise, also for addr argument of local function seg_read.
	Change type of len argument to size_t.

	* copy.c (copy_read): Change type of addr argument to store_offset_t.
	(copy_write): Likewise.
	* device.c (dev_read): Likewise.
	(dev_write): Likewise.
	* file.c (file_read): Likewise.
	(file_write): Likewise.
	(file_byte_read): Likewise.
	(file_byte_write): Likewise.
	* mvol.c (mvol_read): Likewise.
	(mvol_write): Likewise.
	* remap.c (remap_read): Likewise.
	(remap_write): Likewise.
	* stripe.c (stripe_read): Likewise.
	(stripe_write): Likewise.
	* task.c (task_read): Likewise.
	(task_write): Likewise.
	* zero.c (zero_read): Likewise.
	(zero_write): Likewise.

	* remap.c (store_remap_runs): Change type of addr and len
	arguments of local function add_run and of local variables addr,
	length, baddr, blen and len to store_offset_t.
	(remap_open): Cast -1 to store_offset_t, not off_t.

	* argp.c (struct store_parsed): Change type of interleave from
	off_t to store_offset_t.
	(store_parsed_append_args): Use %Ld instead %ld to print
	interleave value.
	(store_parsed_name): Likewise.

2001-01-07  Marcus Brinkmann  <marcus@gnu.org>

	* copy.c: Include <mach.h>. New macro page_aligned.
	(copy_write): Cast buf to vm_address_t in call to vm_write.
	Dereference amount for memcpy.
	(copy_read): Add len parameter to vm_read, remove redundant following
	len assignment.

2000-12-20  Roland McGrath  <roland@frob.com>

	* zero.c (zero_open): Check for END being null after strtoul call.
	If character following number (*END) is b, multiply size by 512;
	k or K, by 1024; m or M by 1024*1024; g or G by 1024*1024*1024.

	* store.h (struct store_class): Fix typo in comment.

	* copy.c (copy_read): When reading whole aligned pages, use vm_read.
	Use MAP_FAILED in place of (void *) -1.  Use memcpy in place of bcopy.
	(copy_write): When reading whole aligned pages, use vm_write.
	Use memcpy in place of bcopy.

1999-11-20  Roland McGrath  <roland@baalperazim.frob.com>

	* store.h (struct store_class): Add const to type of `name' member.

1999-11-14  Roland McGrath  <roland@baalperazim.frob.com>

	* device.c (dev_error): New static function.
	Translate all expected D_* codes into POSIX codes.
	(dev_read, dev_write, dev_open): Use it.

1999-10-07  Roland McGrath  <roland@baalperazim.frob.com>

	* rdwr.c (store_read, store_write): Fix asserts in last change.

1999-10-03  Roland McGrath  <roland@baalperazim.frob.com>

	* rdwr.c (store_read, store_write): Fix calculations broken in last
	change, so they again properly account for starting intrarun offset.

1999-09-09  Roland McGrath  <roland@baalperazim.frob.com>

	* rdwr.c (store_write, store_read): Carefully avoid scaling run
	lengths from blocks to bytes except when we're already sure the
	run's size in bytes won't overflow size_t.

1999-07-11  Thomas Bushnell, BSG  <tb@mit.edu>

	* argp.c (store_parsed_open): Add more braces to clarify if-else
	structure.

	* encode.c: Include <sys/mman.h>
	* zero.c: Likewise.

	* encode.c (store_encode): Repair syntax.
	* copy.c (copy_read): Likewise.

	* enc.c (store_enc_dealloc): Cast first arg of munmap correctly.

1999-07-10  Roland McGrath  <roland@baalperazim.frob.com>

	* rdwr.c: Add #include <sys/mman.h> for munmap decl.
	* enc.c: Likewise.
	* copy.c: Likewise.
	* gunzip.c: Likewise.
	* bunzip2.c: Likewise.

1999-07-09  Thomas Bushnell, BSG  <tb@mit.edu>

	* bunzip2.c (bunzip2): Use mmap instead of vm_allocate.
	* copy.c (copy_read): Likewise.
	(copy_clone): Likewise.
	* encode.c (store_encode): Likewise.
	* gunzip.c (gunzip): Likewise.
	* rdwr.c (store_read): Likewise.
	* zero.c (zero_read): Likewise.

1999-07-08  Roland McGrath  <roland@baalperazim.frob.com>

	* remap.c (remap_open): Recognize "N+" syntax in block list as from
	block N through the end of the store.

1999-07-03  Thomas Bushnell, BSG  <tb@mit.edu>

	* bunzip2.c (bunzip2): Use munmap instead of vm_deallocate.
	(store_bunzip2_create): Likewise.
	* rdwr.c (store_read): Likewise.
	* gunzip.c (gunzip): Likewise.
	(store_gunzip_create): Likewise.
	* enc.c (store_enc_dealloc): Likewise.
	* copy.c (copy_cleanup): Likewise.

1999-05-23  Roland McGrath  <roland@baalperazim.frob.com>

	* remap.c (remap_open): Don't multiply by 512.  Offsets and sizes are
	in blocks, not bytes.

	* stripe.c (concat_decode): Add __attribute__((unused)) to suppress
	warning.
	(ileave_decode): Likewise.

	* bunzip2.c: Add extern decl for do_bunzip2.

1999-05-16  Roland McGrath  <roland@baalperazim.frob.com>

	* remap.c (remap_decode): Add attribute((unused)) to suppress warning.

1999-05-14  Roland McGrath  <roland@baalperazim.frob.com>

	* remap.c (remap_open, remap_validate_name): New functions, to support
	parsing block lists a la GRUB.
	(store_remap_class): Initialize those slots.

1999-05-01  Mark Kettenis  <kettenis@gnu.org>

	* device.c (store_device_create): Deal with devices that return
	sucessfully from device_get_status, but do not return any sensible
	information.

1998-09-06  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>

	* bunzip2.c: New file.
	* store.h (store_bunzip2_create): New declarations.
	(store_bunzip2_open): Likewise.
	(store_bunzip2_class): Likewise.
	* std.c (store_std_classes): Add store_bunzip2_class.
	* Makefile (SRCS): Add bunzip2.c.
	(UNZIP_OBJS): Add do-bunzip2.o.

1998-12-27  Roland McGrath  <roland@baalperazim.frob.com>

	* store.h: Remove defns of STORAGE_*, now in <hurd/hurd_types.h>.

1998-12-21  Roland McGrath  <roland@baalperazim.frob.com>

	* open.c (store_open): Like file.c:fiopen, catch EACCES or EROFS
	and try to open read-only.

	* file.c (fiopen): Treat EROFS same as EACCES.

1998-10-20  Roland McGrath  <roland@baalperazim.frob.com>

	* flags.c (store_clear_flags): Add braces to silence gcc warning.

1998-10-19  Roland McGrath  <roland@baalperazim.frob.com>

	* rdwr.c (store_read): Add braces to silence gcc warning.
	* flags.c (store_set_flags): Likewise.
	* typed.c (store_typed_open): Likewise.
	* decode.c (store_decode): Likewise.
	* argp.c (store_parsed_append_args): Likewise.
	(store_parsed_name): Likewise.
	(store_parsed_open): Likewise.

1998-09-05  Roland McGrath  <roland@baalperazim.frob.com>

	* argp.c (store_parsed_append_args): Use %d for layer, which is int.
	Cast to int for %* field width arg.

1997-09-22  Miles Bader  <miles@gnu.ai.mit.edu>

	* encode.c (store_encode): Allocate the correct amount of memory
	for the encoding vectors.

	* make.c (_store_create): Initialize NEW->misc_len.

	* mvol.c (store_mvol_class): Set correct members.
	(store_mvol_create): Declare PHYS correctly.
	<stdio.h>: New include.
	* store.h (store_mvol_create): Declare PHYS correctly.
	* Makefile (SRCS): Add mvol.c.

1997-08-11  Miles Bader  <miles@gnu.ai.mit.edu>

	* store.h (store_mvol_create): New declaration.
	(store_mvol_class): New declaration.
	* mvol.c: New file.

1997-07-24  Miles Bader  <miles@gnu.ai.mit.edu>

	* device.c (store_device_create): Treat devices that can't do
	device_get_status as zero-length.
	(dev_map): Pass 0 for OFFSET and SIZE arguments to device_map --
	mach ignores them, and we often can't supply meaningful values.
	* make.c (_store_create): If BLOCK_SIZE is zero, make sure there
	are no runs.
	* derive.c (_store_derive): Let BSIZE be zero.

1997-07-21  Miles Bader  <miles@gnu.ai.mit.edu>

	* argp.c (store_parsed_append_args): Correctly unparse complex
	type names.

1997-07-18  Miles Bader  <miles@gnu.ai.mit.edu>

	* map.c (store_map): If we can't map STORE directly, and it has a
	source file, try to map that instead.
	* remap.c (store_remap): If we are mutating SOURCE, close any
	source port it has.
	* store.h (store_map_source): Declaration removed.

1997-07-17  Miles Bader  <miles@gnu.ai.mit.edu>

	* store.h (store_map): New declaration.
	(struct store_class): Add map field.
	* device.c (dev_map): New function.
	(store_device_class): Use dev_map.
	* zero.c (zero_map): New function.
	(store_zero_class): Use zero_map.
	* file.c (file_map): New function.
	(store_file_class): Use file_map.
	* map.c: New file.
	* Makefile (SRCS): Add map.c.

	* device.c (dev_read, dev_write): Remove debugging grot.

1997-07-07  Miles Bader  <miles@gnu.ai.mit.edu>

	* kids.c (store_open_children): Support factored type notation.

1997-07-05  Miles Bader  <miles@gnu.ai.mit.edu>

	* file.c (file_read, file_write, file_byte_read, file_byte_write):
	Remove debugging noise.

1997-06-30  Miles Bader  <miles@gnu.ai.mit.edu>

	* store.h: Doc fix.

1997-06-27  Miles Bader  <miles@gnu.ai.mit.edu>

	* file.c (store_file_open): Use fiopen to open the file.
	Set name of newly created store.
	(fiopen, ficlose, enforced, file_set_flags, file_clear_flags): New
	functions.
	(store_file_class): Use new functions.
	(store_file_byte_class): Fill in rest of functions.
	* device.c (enforced): Move some checking here from dev_set_flags,
	and correct the check for the number of stores.
	(dev_set_flags): Move enforcement checking code to enforce.

1997-06-26  Miles Bader  <miles@gnu.ai.mit.edu>

	* argp.c (parse_type): Fill in name_prefix field.
	(store_parsed_open): Apply it to any names we open.

1997-06-22  Miles Bader  <miles@gnu.ai.mit.edu>

	* argp.c (parse_type): New function.
	(parse_opt): Use parse_type to parse the -T option.
	(struct store_parsed): Add NAME_PREFIX field.
	(store_parsed_free): Free it.
	(store_parsed_append_args): Emit it.
	(store_parsed_open): Use it in opens.

	* typed.c (store_typed_open): If NAME doesn't contain a `:'
	separator, try to use it as either a class name or a file name.
	Interpret a trailing or leading `:' as unambiguously referring to
	a class-name or a filename, respectively.

1997-06-19  Miles Bader  <miles@gnu.ai.mit.edu>

	* rdwr.c (store_read): Limit reads to the amount available.

	* store.h (store_typed_open_class): Renamed from store_typed_class.
	* std.c (store_std_classes): Use store_typed_open_class instead of
	store_typed_class.

	* Makefile (SRCS): Remove storeread.c & storecat.c.
	(storeread, storecat): Rules removed.
	* storeread.c, storecat.c: Moved to ../utils.

1997-06-18  Miles Bader  <miles@gnu.ai.mit.edu>

	* store.h (struct store): BLOCKS & SIZE are off_t, not size_t.
	(store_zero_create): SIZE is off_t, not size_t.
	* zero.c (store_zero_create, zero_open): Likewise.

	* storecat.c (main): Update use of argp.
	* storeread.c (main): DATA is void *.

	* Makefile (UTILS_OBJS): Variable removed.
	(UNZIP_OBJS): New variable.
	(OBJS): Don't use $(UTILS_OBJS).  Do use $(UNZIP_OBJS).
	(VPATH, CPPFLAGS): Search for stuff in ../exec for unzip junk.

	* derive.c: Include <assert.h>
	(_store_derive): Assert that block_size & blocks_per_page are
	powers of two (which should be enforced elsewhere).

	* make.c (_store_create): Renamed from _make_store.
	Return an error_t code, and add an additional argument STORE to
	return the new store; all uses changed.
	* store.h (_make_store): Likewise.

	* Makefile (SRCS): Add typed.c, copy.c, and gunzip.c.

	* typed.c: New file
	* store.h (store_gunzip_class, store_typed_class): New declarations.
	* std.c (store_std_classes): Add store_copy_class,
	store_gunzip_class, and store_typed_class.

	* kids.c (store_open_children, store_children_name): New functions.
	* stripe.c (store_concat_open): New function.
	(store_concat_create): Set the store name if possible.
	* store.h (store_concat_open, store_children_name,
	store_open_children): New declaration.
	* rdwr.c (store_read): Deallocate memory returned when reading
	part of a multiple-segment read.

1997-06-17  Miles Bader  <miles@gnu.ai.mit.edu>

	* copy.c, gunzip.c: New files.
	* store.h (store_copy_class): New declaration.
	(store_copy_create, store_copy_open, store_buffer_create,
	store_gunzip_create, store_gunzip_open): New declarations.

	* decode.c (store_decode): Pass the original value of CLASSES to
	any decode method, not our search tail.

	* device.c (dopen): If *MOD_FLAGS already contains
	STORE_HARD_READONLY, don't ever try to open for reading.

Fri Feb 21 23:31:34 1997  Miles Bader  <miles@gnu.ai.mit.edu>

	* device.c (dopen): Add MOD_FLAGS param, and detect read-only devices.
	(dev_clear_flags, store_device_open): Use MOD_FLAGS arg to dopen.

Wed Feb 19 15:40:18 1997  Miles Bader  <miles@gnu.ai.mit.edu>

	* storeread.c (doc): Make doc string come after options.

	* device.c (dev_set_flags): Correctly check for unenforcable runs.

	* task.c: New file.
	* Makefile (SRCS): Add task.c.
	* store.h (store_task_class): New declaration.
	(store_task_create, _store_task_create, store_open): New declarations.
	* std.c (store_std_classes): Add &STORE_TASK_CLASS.

	* xinl.c: Renamed from store.c.
	* Makefile (SRCS): Change store.c to xinl.c.

Mon Oct 21 22:03:19 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>

	* store.h: Add extern inline protection.
	* store.c: New file.
	* Makefile (SRCS): Add store.c.

Tue Oct  8 14:31:51 1996  Miles Bader  <miles@gnu.ai.mit.edu>

	* kids.c (store_set_child_flags, store_clear_child_flags): New funcs.
	* store.h (store_set_child_flags, store_clear_child_flags): New decls.
	* stripe.c (stripe_set_flags, stripe_clear_flags): Remove functions.
	* remap.c (store_remap_class): Init set_flags & clear_flags fields.
	* stripe.c (store_ileave_class, store_concat_class): Likewise.

	* clone.c (store_clone): Copy name field.

Mon Oct  7 14:56:27 1996  Miles Bader  <miles@gnu.ai.mit.edu>

	* device.c (dev_set_flags, dev_clear_flags): New functions.
	(store_device_class): Add dev_set_flags & dev_clear_flags.
	(dopen, dclose, enforced): New functions.
	(store_device_open): Use dopen.
	* store.h <fcntl.h>: New include.
	* stripe.c (stripe_set_flags, stripe_clear_flags): New functions.
	(store_ileave_create, store_concat_create): Add common backend
	flags from children to parent's flags.

Sat Oct  5 00:23:45 1996  Miles Bader  <miles@gnu.ai.mit.edu>

	* create.c (store_create): Add special handling of STORE_INACTIVE
	in FLAGS.

Fri Oct  4 23:44:51 1996  Miles Bader  <miles@gnu.ai.mit.edu>

	* create.c (store_create): Free *STORE when store_set_flags fails.

	* store.h (STORE_INNOCUOUS, STORE_INACTIVE): New macros.
	(store_is_securely_returnable): New function.
	* zero.c (store_zero_create): Set STORE_INNOCUOUS flags.

Fri Sep 27 17:01:07 1996  Miles Bader  <miles@gnu.ai.mit.edu>

	* remap.c (store_remap): Zero SOURCE->end before calling _store_derive.
	Turn off STORE_ENFORCED flag in source if munging it.

	* device.c (store_device_open): Set *STORE's name appropriately.

Tue Sep 24 15:15:27 1996  Miles Bader  <miles@gnu.ai.mit.edu>

	* zero.c <limits.h>: New include.
	(zero_open): When no size is specified, use the maximum off_t
	value, not the maximum size_t value.

Mon Sep 23 12:55:43 1996  Miles Bader  <miles@gnu.ai.mit.edu>

	* storecat.c (main): Use new PARAMS var for passing args to STORE_ARGP.

Thu Sep 19 11:12:44 1996  Miles Bader  <miles@gnu.ai.mit.edu>

	* argp.c (parse_opt): Correctly check for non-default type.

	* kids.c (store_decode_children): Change CLASSES to **.
	* encode.c (store_encode): Make CLASS var const.
	* file.c (_store_file_create): Make CLASS arg const.
	* store.h (struct store): Make CLASS field const.
	(_make_store): Make CLASS arg const.
	* make.c (_make_store): Make CLASS arg const.
	* stripe.c (ileave_decode, concat_decode): Make CLASSES arg const.
	* remap.c (remap_decode): Likewise.
	* create.c (store_create): Likewise.

Wed Sep 18 15:14:51 1996  Miles Bader  <miles@gnu.ai.mit.edu>

	* argp.c (struct store_parsed): Change CLASSES field to be a pointer to
	a vector of class pointers.
	(find_class): Change CLASSES to be a vector of class pointers.
	* decode.c (store_decode): Change CLASSES to be a vector of class
	pointers.
	* store.h (struct store_class, struct store_argp_params, store_create,
 	store_open, store_decode, store_decode_children): Change CLASSES args
	to be a pointer to a vector of class pointers.
	(_store_add_std_class): Declaration removed.
	(STORE_STD_CLASS): Macro removed.
	* std.c (store_std_classes): Make an initialized array.
	(_store_add_std_class): Function removed.
	* device.c (store_device_class): Renamed from dev_class; export.
	* file.c (store_file_class): Renamed from file_class; export.
	(store_file_byte_class): Renamed from file_byte_class; export.
	* zero.c (store_zero_class): Renamed from zero_class; export.
	* remap.c (store_remap_class): Renamed from remap_class; export.
	* open.c (store_query_class): Renamed from query_class; export.
	* stripe.c (store_ileave_class): Renamed from ileave_class; export.
	(store_concat_class): Renamed from concat_class; export.

	* zero.c (zero_open, zero_validate_name): New functions.
	(zero_class): Use them.

	* argp.c (store_parsed_open): Remove CLASSES argument.
	(struct store_parsed): Make some fields const.
	* store.h (store_parsed_open): Remove CLASSES argument.

Tue Sep 17 14:48:48 1996  Miles Bader  <miles@gnu.ai.mit.edu>

	* store.h (struct store_class): Add OPEN and PARSE fields.
	(store_open): Make NAME const.
	(struct store_argp_params): New type.
	* device.c (dev_open): New function.
	(dev_class): Point to it.
	* file.c (fhile_open): New function.
	(file_class): Point to it.
	* argp.c (options, parse_opt): Add --store-type/-T & (hidden)
	--machdev/-m options, remove --device/-d option.
	(struct store_parsed): Rmove DEVICE field, add TYPE, DEFAULT_TYPE
	and CLASSES fields.
	(store_parsed_free): Free PARSED->type if it exists.
	(store_parsed_append_args): Use --store-type=... instead of --device.
	(store_parsed_open): When --store-type is specified, search
	CLASSES for that type, and call it's open function.
	* open.c (store_open): Make NAME const.
	(query_class): New variable.

Fri Sep 13 14:33:24 1996  Miles Bader  <miles@gnu.ai.mit.edu>

	* argp.c (store_parsed_append_args, store_parsed_open, struct
	store_parsed): Use `device' instead of `machdev'.

	* encode.c (store_return): Only call store_enc_dealloc upon failure.
	(store_std_leaf_allocate_encoding): NUM_OFFSETS is NUM_RUNS * 2.

	* enc.c (store_enc_return): Don't call store_enc_dealloc.

Thu Sep 12 17:23:35 1996  Miles Bader  <miles@gnu.ai.mit.edu>

	* storecat.c (main): Limit reads to 1M, and iterate until done.
	Use store_parsed_name to get store name for errors.
	Add program description.

	* store.h (STORAGE_REMAP, STORAGE_ZERO): New macros (temporary, to
	avoid touching hurd/hurd_types.h).

1996-09-12  Miles Bader  <miles@gnu.ai.mit.edu>

	* remap.c (store_remap): Call _store_derive after changing runs.

	* argp.c (store_parsed_name): New function.

Wed Sep 11 12:38:44 1996  Miles Bader  <miles@gnu.ai.mit.edu>

	* decode.c (store_with_decoded_runs): New function.
	(store_std_leaf_decode): Call it.
	* store.h (store_with_decoded_runs): New declaration.

	* stripe.c (ileave_class, concat_class): Initialize the REMAP field.
	(stripe_remap): New function.
	* store.h (store_remap_create): New declaration.
	* zero.c (zero_remap): New function.
	(zero_class): Initialize remap field with zero_remap.
	* Makefile (SRCS): Add remap.c.

	* zero.c: New file, from null.c.
	* null.c: File removed.
	* store.h (store_zero_create): Renamed from store_null_create.
	* Makefile (SRCS): Replace null.c by zero.c.

Tue Sep 10 17:05:03 1996  Miles Bader  <miles@gnu.ai.mit.edu>

	* remap.c: New file.
	* store.h (struct store_class): Add remap field.
	(store_remap): New declaration.

	* encode.c (store_return): New function.
	* enc.c (store_enc_return, store_return): New functions.
	* store.h (store_enc_return, store_return): New declarations.

Mon Sep  9 12:32:11 1996  Miles Bader  <miles@gnu.ai.mit.edu>

	* rdwr.c (store_write, store_read): Use void * for buffers, not char *.
	* device.c (dev_write, dev_read): Likewise.
	* file.c (file_read, file_write, file_byte_read, file_byte_write):
	Likewise.
	* stripe.c (stripe_read, stripe_write): Likewise.
	* null.c (null_read, null_write): Likewise.
	* store.h (store_write_meth_t, store_read_meth_t, store_read,
	store_write): Make type of buffer void *, not char *.

Sun Sep  8 14:14:05 1996  Miles Bader  <miles@gnu.ai.mit.edu>

	* device.c (dev_read, dev_write): Don't print debugging messages.
	* argp.c (options, parse_opt): Change short option names around.

Wed Sep  4 13:01:19 1996  Miles Bader  <miles@gnu.ai.mit.edu>

	* argp.c (parse_opt): --layer isn't implemented, so say so.

	* storeread.c (main): Add new args to store_*_create calls.
	* storecat.c (main): Use new interface to store_argp.

Wed Sep  3 11:00:00 1996  Miles Bader  <miles@gnu.ai.mit.edu>

	* argp.c (struct store_parsed): New type.
	(store_parsed_free, store_parsed_append_args, store_parsed_open):
	New functions.
	(parse_opt): Use new store_parsed structure instead of the old
	store_pars_hook, and just fill in the names rather than doing the
	open here.  Don't take a struct store_argp_params as input any
	more; instead just take the address of a location in which to
	return a store_parsed structure.
	(struct store_parse_hook): Type removed.
	(free_hook, open_file): Functions removed.
	<assert.h>: New include.
	<stdlib.h>, <fcntl.h>: Includes removed.
	(options): --machdev/-m renamed to --device/-D.
	* store.h (struct store): Make log2_* fields unsigned.
	(STORE_NO_FILEIO): New macro.
	(STORE_HARD_READONLY, STORE_ENFORCED): Values changed.
	(STORE_GENERIC_FLAGS): Add STORE_NO_FILEIO.
	(struct store_argp_params): Type removed.
	(store_parsed_Free, store_parsed_open, store_parsed_append_args):
	New declarations.
	(struct store_parsed): New incomplete type.

Mon Sep  2 18:56:26 1996  Miles Bader  <miles@gnu.ai.mit.edu>

	* store.h (store_open): New declaration.
	* open.c: New file.
	* Makefile (SRCS): Add open.c.

Wed Aug 21 14:40:15 1996  Miles Bader  <miles@gnu.ai.mit.edu>

	* device.c (store_device_open): Don't call store_device_create if
	device_open fails.

Tue Aug 20 14:37:33 1996  Miles Bader  <miles@gnu.ai.mit.edu>

	* argp.c (free_hook): Free H->params->args if necessary.
	(parse_opt): Initialize and fill in H->params->args when appropriate.
	<argz.h>: New include.

Mon Aug 19 14:31:33 1996  Miles Bader  <miles@gnu.ai.mit.edu>

	* store.h (struct store_argp_params): Add return_args, args, &
	args_len fields.

Fri Jul 19 16:16:46 1996  Miles Bader  <miles@gnu.ai.mit.edu>

	* decode.c (store_std_leaf_decode): Decode name too.
	Deal with NAME_LENGTH being 0.

Sun Jun 16 22:49:55 1996  Miles Bader  <miles@gnu.ai.mit.edu>

	* argp.c (parse_opt): Use argp_failure.

Thu May 23 10:54:06 1996  Miles Bader  <miles@gnu.ai.mit.edu>

	* argp.c (parse_opt): Honor ARGP_NO_ERRS.
	<error.h>: New include.

Wed May 22 00:14:18 1996  Miles Bader  <miles@gnu.ai.mit.edu>

	* argp.c (parse_opt): Use error instead of ERR for non-parsing errors.
	Rename ERR to PERR.

Tue May 21 00:01:02 1996  Miles Bader  <miles@gnu.ai.mit.edu>

	* storecat.c (main): Delete most everything and use store arg parsing.
	(options, doc, args_doc): Variables removed.

	* create.c (store_create): Add FLAGS & CLASSES params.
	* rdwr.c (store_write): Return an error if STORE is readonly.
	* decode.c (store_decode): Add CLASSES param, use it instead of big
	hardwired switch statement.
	(store_default_leaf_decode): Use typedef for CREATE param.  Pass in
	FLAGS arg when calling it.
	* encode.c (store_std_leaf_allocate_encoding): Renamed from
	store_default_leaf_allocate_encoding.  Make STORE const.
	(store_std_leaf_encode): Renamed from store_default_leaf_encode.
	Make STORE const.  Get class id from store->class->id.
	(store_encode): Use CLASS field instead of METHS field.
	* clone.c (store_clone): Copy the flags by passing them to _make_store.
	Use CLASS field instead of METHS field.
	* file.c (store_file_open, file_decode): New functions.
	(store_file_create): Always set STORE_ENFORCED.
	(file_class): Renamed from file_meths.  Add more fields.  Make std
	with _STORE_STD_CLASS.
	(file_byte_class): Renamed from file_byte_meths.
	<fcntl.h>, <hurd.h>: New includes.
	* device.c (store_device_open, dev_decode): New functions.
	(store_device_create): Always set STORE_ENFORCED.
	(device_class): Renamed from device_meths.  Add more fields.  Make std
	with _STORE_STD_CLASS.
	<hurd.h>: New include.
	* stripe.c (ileave_allocate_encoding, ileave_encode, ileave_decode,
	concat_allocate_encoding, concat_encode, concat_decode): New functions.
	(concat_class): New variable.
	(ileave_class): Renamed from stripe_class.  More fields added.
	* store.h (struct store): Remove CLASS field.  METHS field renamed
	CLASS.
	(STORE_IMMUTABLE_FLAGS, STORE_GENERIC_FLAGS, STORE_BACKEND_SPEC_BASE,
	STORE_BACKEND_FLAGS, STORE_READONLY, STORE_HARD_READONLY,
	STORE_ENFORCED): New macros.
	(struct store_class): Renamed from store_meths; all uses changed.
	Add ID, NAME, DECODE, SET_FLAGS, CLEAR_FLAGS, and NEXT fields.
	(store_std_leaf_decode): Renamed from store_default_leaf_decode.
	(store_std_leaf_create_t): New type.
	(_STORE_STD_CLASS): New macro.
	(struct store_argp_params): READONLY field deleted, FLAGS field added.
	(store_allocate_child_encodings, store_encode_children,
 	store_decode_children, store_set_flags, store_clear_flags,
 	store_file_open, store_device_open, store_null_create,
 	store_std_classes, _store_add_std_class,
 	store_allocate_child_encodings, store_encode_children,
 	store_decode_children): New declarations
	(store_decode, store_create, store_device_create, _store_device_create,
 	store_file_create, _store_file_create, store_ileave_create,
	store_concat_create, _make_store): Declarations updated.
	* make.c (_make_store): CLASS param removed, METHS param renamed
	CLASS; all callers changed.  FLAGS param added.
	* stripe.c (store_ileave_create, store_concat_create): Likewise.
	* file.c (store_file_create, _store_file_create): Likewise.
	* device.c (store_device_create, _store_device_create): Likewise.
	* argp.c (open_machdev): Function removed.
	(parse_opt): Use store_device_open instead of open_machdev.
	(open_file, parse_opt): Add FLAGS arg to various function calls.
	* set.c (store_set_children): Function moved to kids.c.
	* null.c, flags.c, std.c, kids.c: New files.
	* Makefile (SRCS): Add null.c, flags.c, std.c, & kids.c.

Sun May 12 10:12:24 1996  Miles Bader  <miles@gnu.ai.mit.edu>

	* argp.c (store_parse_opt): Put result in the passed-in params struct.
	Pass hook to open_{file,machdev}.
	(open_machdev): Use params to determine readonly-ness.
	(open_file): New function.
	* store.h (store_argp): New declaration.
	(struct store_argp_params): New type.
	* Makefile (SRCS): Add argp.c.

	* create.c (store_create): Steal SOURCE instead of cloning it.

Sat May 11 01:17:39 1996  Miles Bader  <miles@gnu.ai.mit.edu>

	* argp.c: New file.

	* storeread.c (parse_opt): Use ARGP_ERR_UNKNOWN instead of EINVAL.
	* storecat.c (parse_opt): Likewise.

Fri May 10 13:23:36 1996  Miles Bader  <miles@gnu.ai.mit.edu>

	* store.h (struct store_run): New type.
	(struct store): RUNS is a vector of runs, not offsets.
	(_store_device_create, _store_file_create, _make_store,
	store_set_runs, store_default_leaf_decode): Update declaration.
	* rdwr.c (store_find_first_run, store_next_run, store_write,
	store_read): Use store_run, not off_t, vectors; tweak accordingly.
	Rename variables called `RUNS' to `RUN', because although they're
	always vectors, they're used more often for their first element.
	* derive.c (_store_derive): Use store_run, not off_t, vectors; tweak
	accordingly.
	* device.c (store_device_create, _store_device_create): Likewise.
	* set.c (store_set_runs): Likewise.
	* storecat.c (main): Likewise.
	* storeread.c (main): Likewise.
	* make.c (_make_store): Likewise.
	* stripe.c (store_ileave_create, store_concat_create): Likewise.
	* file.c (store_file_create, _store_file_create): Likewise.
	* decode.c (store_default_leaf_decode): Convert the slice of the
	offset vector we're using into a vector of store_runs to pass to
	CREATE.  Change type of CREATE accordingly.
	* encode.c (store_default_leaf_encode): Convert from the store_run
	vector to a off_t vector for encoding.

	* create.c (store_create): Use the real file_get_storage_info.
	(fgsi): Function removed.

	* store.h (struct store): Add CHILDREN & NUM_CHILDREN fields.
	Rename RUNS_LEN to NUM_RUNS (all uses changed).
	(store_set_children): New declaration.
	* make.c (_make_store): Initialize CHILDREN & NUM_CHILDREN.
	(store_free): Free all children too.
	* clone.c (store_clone): Clone children too.
	* set.c (store_set_children): New function.
	* stripe.c (store_ileave_create, store_concat_create): Use
	store_set_children.
	(stripe_clone): Function removed.
	(stripe_read, stripe_write): Get stripes from CHILDREN, not HOOK.

	* Makefile (storeread, storecat): Remove explicit dependency on
	program object file.
	Put include of ../Makeconf before dependencies.

Mon May  6 15:20:53 1996  Miles Bader  <miles@gnu.ai.mit.edu>

	* store.h: Move big comment describing file_get_storage_info
	encoding to <hurd/hurd_types.h>.