]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/stored/acquire.c
c287b555219e7279bc5dd8726a4f118a4c6f196d
[bacula/bacula] / bacula / src / stored / acquire.c
1 /*
2  *  Routines to acquire and release a device for read/write
3  *
4  *   Kern Sibbald, August MMII
5  *
6  *   Version $Id$
7  */
8 /*
9    Copyright (C) 2002-2005 Kern Sibbald
10
11    This program is free software; you can redistribute it and/or
12    modify it under the terms of the GNU General Public License as
13    published by the Free Software Foundation; either version 2 of
14    the License, or (at your option) any later version.
15
16    This program is distributed in the hope that it will be useful,
17    but WITHOUT ANY WARRANTY; without even the implied warranty of
18    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19    General Public License for more details.
20
21    You should have received a copy of the GNU General Public
22    License along with this program; if not, write to the Free
23    Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
24    MA 02111-1307, USA.
25
26  */
27
28 #include "bacula.h"                   /* pull in global headers */
29 #include "stored.h"                   /* pull in Storage Deamon headers */
30
31 static int can_reserve_drive(DCR *dcr);
32
33 /*
34  * Create a new Device Control Record and attach
35  *   it to the device (if this is a real job).
36  */
37 DCR *new_dcr(JCR *jcr, DEVICE *dev)
38 {
39    if (jcr && jcr->dcr) {
40       return jcr->dcr;
41    }
42    DCR *dcr = (DCR *)malloc(sizeof(DCR));
43    memset(dcr, 0, sizeof(DCR));
44    if (jcr) {
45       jcr->dcr = dcr;
46    }
47    dcr->jcr = jcr;
48    dcr->dev = dev;
49    if (dev) {
50       dcr->device = dev->device;
51    }
52    dcr->block = new_block(dev);
53    dcr->rec = new_record();
54    dcr->spool_fd = -1;
55    dcr->max_spool_size = dev->device->max_spool_size;
56    /* Attach this dcr only if dev is initialized */
57    if (dev->fd != 0 && jcr && jcr->JobType != JT_SYSTEM) {
58       dev->attached_dcrs->append(dcr);  /* attach dcr to device */
59 //    jcr->dcrs->append(dcr);         /* put dcr in list for Job */
60    }
61    return dcr;
62 }
63
64 /*
65  * Search the dcrs list for the given dcr. If it is found,
66  *  as it should be, then remove it. Also zap the jcr pointer
67  *  to the dcr if it is the same one.
68  */
69 #ifdef needed
70 static void remove_dcr_from_dcrs(DCR *dcr)
71 {
72    JCR *jcr = dcr->jcr;
73    if (jcr->dcrs) {
74       int i = 0;
75       DCR *ldcr;
76       int num = jcr->dcrs->size();
77       for (i=0; i < num; i++) {
78          ldcr = (DCR *)jcr->dcrs->get(i);
79          if (ldcr == dcr) {
80             jcr->dcrs->remove(i);
81             if (jcr->dcr == dcr) {
82                jcr->dcr = NULL;
83             }
84          }
85       }
86    }
87 }
88 #endif
89
90 /*
91  * Free up all aspects of the given dcr -- i.e. dechain it,
92  *  release allocated memory, zap pointers, ...
93  */
94 void free_dcr(DCR *dcr)
95 {
96    JCR *jcr = dcr->jcr;
97    DEVICE *dev = dcr->dev;
98
99    /*
100     * If we reserved the device, we must decrement the
101     *  number of writers.
102     */
103    if (dcr->reserved_device) {
104       lock_device(dev);
105       dev->num_writers--;
106       if (dev->num_writers < 0) {
107          Jmsg1(dcr->jcr, M_ERROR, 0, _("Hey! num_writers=%d!!!!\n"), dev->num_writers);
108          dev->num_writers = 0;
109          dcr->reserved_device = false;
110       }
111       unlock_device(dev);
112    }
113
114    /* Detach this dcr only if the dev is initialized */
115    if (dev->fd != 0 && jcr && jcr->JobType != JT_SYSTEM) {
116       dev->attached_dcrs->remove(dcr);  /* detach dcr from device */
117 //    remove_dcr_from_dcrs(dcr);      /* remove dcr from jcr list */
118    }
119    if (dcr->block) {
120       free_block(dcr->block);
121    }
122    if (dcr->rec) {
123       free_record(dcr->rec);
124    }
125    if (dcr->jcr) {
126       dcr->jcr->dcr = NULL;
127    }
128    free(dcr);
129 }
130
131
132 /*
133  * We "reserve" the drive by setting the ST_READ bit. No one else
134  *  should touch the drive until that is cleared.
135  *  This allows the DIR to "reserve" the device before actually
136  *  starting the job. 
137  */
138 bool reserve_device_for_read(DCR *dcr)
139 {
140    DEVICE *dev = dcr->dev;
141    JCR *jcr = dcr->jcr;
142    bool ok = false;
143
144    ASSERT(dcr);
145
146    dev->block(BST_DOING_ACQUIRE);
147
148    if (device_is_unmounted(dev)) {             
149       Mmsg(jcr->errmsg, _("Device %s is BLOCKED due to user unmount.\n"),
150            dev->print_name());
151       goto bail_out;
152    }
153
154    if (dev->is_busy()) {
155       Mmsg1(jcr->errmsg, _("Device %s is busy.\n"),
156             dev->print_name());
157       goto bail_out;
158    }
159
160    dev->clear_append();
161    dev->set_read();
162    ok = true;
163
164 bail_out:
165    dev->unblock();
166    return ok;
167 }
168
169
170 /*********************************************************************
171  * Acquire device for reading. 
172  *  The drive should have previously been reserved by calling 
173  *  reserve_device_for_read(). We read the Volume label from the block and
174  *  leave the block pointers just after the label.
175  *
176  *  Returns: NULL if failed for any reason
177  *           dcr  if successful
178  */
179 DCR *acquire_device_for_read(DCR *dcr)
180 {
181    DEVICE *dev = dcr->dev;
182    JCR *jcr = dcr->jcr;
183    bool vol_ok = false;
184    bool tape_previously_mounted;
185    bool tape_initially_mounted;
186    VOL_LIST *vol;
187    bool try_autochanger = true;
188    int i;
189    int vol_label_status;
190    
191    dev->block(BST_DOING_ACQUIRE);
192
193    if (dev->num_writers > 0) {
194       Jmsg2(jcr, M_FATAL, 0, _("Num_writers=%d not zero. Job %d canceled.\n"), 
195          dev->num_writers, jcr->JobId);
196       goto get_out;
197    }
198
199    /* Find next Volume, if any */
200    vol = jcr->VolList;
201    if (!vol) {
202       Jmsg(jcr, M_FATAL, 0, _("No volumes specified. Job %d canceled.\n"), jcr->JobId);
203       goto get_out;
204    }
205    jcr->CurVolume++;
206    for (i=1; i<jcr->CurVolume; i++) {
207       vol = vol->next;
208    }
209    if (!vol) {
210       goto get_out;                   /* should not happen */   
211    }
212    bstrncpy(dcr->VolumeName, vol->VolumeName, sizeof(dcr->VolumeName));
213
214    init_device_wait_timers(dcr);
215
216    tape_previously_mounted = dev->can_read() ||
217                              dev->can_append() ||
218                              dev->is_labeled();
219    tape_initially_mounted = tape_previously_mounted;
220
221
222    /* Volume info is always needed because of VolParts */
223    Dmsg0(200, "dir_get_volume_info\n");
224    if (!dir_get_volume_info(dcr, GET_VOL_INFO_FOR_READ)) {
225       Jmsg1(jcr, M_WARNING, 0, "%s", jcr->errmsg);
226    }
227    
228    dev->num_parts = dcr->VolCatInfo.VolCatParts;
229    
230    for (i=0; i<5; i++) {
231       dev->clear_labeled();              /* force reread of label */
232       if (job_canceled(jcr)) {
233          Mmsg1(dev->errmsg, _("Job %d canceled.\n"), jcr->JobId);
234          goto get_out;                /* error return */
235       }
236       /*
237        * This code ensures that the device is ready for
238        * reading. If it is a file, it opens it.
239        * If it is a tape, it checks the volume name
240        */
241       for ( ; !dev->is_open(); ) {
242          Dmsg1(120, "bstored: open vol=%s\n", dcr->VolumeName);
243          if (open_dev(dev, dcr->VolumeName, OPEN_READ_ONLY) < 0) {
244             if (dev->dev_errno == EIO) {   /* no tape loaded */
245               Jmsg3(jcr, M_WARNING, 0, _("Open device %s Volume \"%s\" failed: ERR=%s\n"),
246                     dev->print_name(), dcr->VolumeName, strerror_dev(dev));
247                goto default_path;
248             }
249             
250             /* If we have a dvd that requires mount, 
251              * we need to try to open the label, so the info can be reported
252              * if a wrong volume has been mounted. */
253             if (dev->is_dvd() && (dcr->VolCatInfo.VolCatParts > 0)) {
254                break;
255             }
256             
257             Jmsg3(jcr, M_FATAL, 0, _("Open device %s Volume \"%s\" failed: ERR=%s\n"),
258                 dev->print_name(), dcr->VolumeName, strerror_dev(dev));
259             goto get_out;
260          }
261          Dmsg1(129, "open_dev %s OK\n", dev->print_name());
262       }
263       
264       if (dev->is_dvd()) {
265          vol_label_status = read_dev_volume_label_guess(dcr, 0);
266       } else {
267          vol_label_status = read_dev_volume_label(dcr);
268       }
269       
270       Dmsg0(200, "calling read-vol-label\n");
271       switch (vol_label_status) {
272       case VOL_OK:
273          vol_ok = true;
274          memcpy(&dev->VolCatInfo, &dcr->VolCatInfo, sizeof(dev->VolCatInfo));
275          break;                    /* got it */
276       case VOL_IO_ERROR:
277          /*
278           * Send error message generated by read_dev_volume_label()
279           *  only we really had a tape mounted. This supresses superfluous
280           *  error messages when nothing is mounted.
281           */
282          if (tape_previously_mounted) {
283             Jmsg(jcr, M_WARNING, 0, "%s", jcr->errmsg);
284          }
285          goto default_path;
286       case VOL_NAME_ERROR:
287          if (tape_initially_mounted) {
288             tape_initially_mounted = false;
289             goto default_path;
290          }
291          /* Fall through */
292       default:
293          Jmsg1(jcr, M_WARNING, 0, "%s", jcr->errmsg);
294 default_path:
295          tape_previously_mounted = true;
296          
297          /* If the device requires mount, close it, so the device can be ejected.
298           * FIXME: This should perhaps be done for all devices. */
299          if (dev_cap(dev, CAP_REQMOUNT)) {
300             force_close_dev(dev);
301          }
302          
303          /* Call autochanger only once unless ask_sysop called */
304          if (try_autochanger) {
305             int stat;
306             Dmsg2(200, "calling autoload Vol=%s Slot=%d\n",
307                dcr->VolumeName, dcr->VolCatInfo.Slot);
308             stat = autoload_device(dcr, 0, NULL);
309             if (stat > 0) {
310                try_autochanger = false;
311                continue;              /* try reading volume mounted */
312             }
313          }
314          
315          /* Mount a specific volume and no other */
316          Dmsg0(200, "calling dir_ask_sysop\n");
317          if (!dir_ask_sysop_to_mount_volume(dcr)) {
318             goto get_out;             /* error return */
319          }
320          try_autochanger = true;      /* permit using autochanger again */
321          continue;                    /* try reading again */
322       } /* end switch */
323       break;
324    } /* end for loop */
325    if (!vol_ok) {
326       Jmsg1(jcr, M_FATAL, 0, _("Too many errors trying to mount device %s.\n"),
327             dev->print_name());
328       goto get_out;
329    }
330
331    dev->clear_append();
332    dev->set_read();
333    set_jcr_job_status(jcr, JS_Running);
334    dir_send_job_status(jcr);
335    Jmsg(jcr, M_INFO, 0, _("Ready to read from volume \"%s\" on device %s.\n"),
336       dcr->VolumeName, dev->print_name());
337
338 get_out:
339    dev->unblock();
340    if (!vol_ok) {
341       free_dcr(dcr);
342       dcr = NULL;
343    }
344    return dcr;
345 }
346
347 /*
348  * We reserve the device for appending by incrementing the 
349  *  reserved_device. We do virtually all the same work that
350  *  is done in acquire_device_for_append(), but we do
351  *  not attempt to mount the device. This routine allows
352  *  the DIR to reserve multiple devices before *really* 
353  *  starting the job. It also permits the SD to refuse 
354  *  certain devices (not up, ...).
355  *
356  * Note, in reserving a device, if the device is for the
357  *  same pool and the same pool type, then it is acceptable.
358  *  The Media Type has already been checked. If we are
359  *  the first tor reserve the device, we put the pool
360  *  name and pool type in the device record.
361  */
362 bool reserve_device_for_append(DCR *dcr)
363 {
364    JCR *jcr = dcr->jcr;
365    DEVICE *dev = dcr->dev;
366    bool ok = false;
367
368    ASSERT(dcr);
369
370    dev->block(BST_DOING_ACQUIRE);
371
372    if (dev->can_read()) {
373       Mmsg1(jcr->errmsg, _("Device %s is busy reading.\n"), dev->print_name());
374       goto bail_out;
375    }
376
377    if (device_is_unmounted(dev)) {
378       Mmsg(jcr->errmsg, _("Device %s is BLOCKED due to user unmount.\n"), dev->print_name());
379       goto bail_out;
380    }
381
382    Dmsg1(190, "reserve_append device is %s\n", dev->is_tape()?"tape":"disk");
383
384    if (can_reserve_drive(dcr) != 1) {
385       Mmsg1(jcr->errmsg, _("Device %s is busy writing on another Volume.\n"), dev->print_name());
386       goto bail_out;
387    }
388
389    dev->reserved_device++;
390    dcr->reserved_device = true;
391    ok = true;
392
393 bail_out:
394    dev->unblock();
395    return ok;
396 }
397
398 /*
399  * Returns: 1 if drive can be reserved
400  *          0 if we should wait
401  *         -1 on error
402  */
403 static int can_reserve_drive(DCR *dcr) 
404 {
405    DEVICE *dev = dcr->dev;
406    JCR *jcr = dcr->jcr;
407    /*
408     * First handle the case that the drive is not yet in append mode
409     */
410    if (!dev->can_append() && dev->num_writers == 0) {
411       /* Now check if there are any reservations on the drive */
412       if (dev->reserved_device) {           
413          /* Yes, now check if we want the same Pool and pool type */
414          if (strcmp(dev->pool_name, dcr->pool_name) == 0 &&
415              strcmp(dev->pool_type, dcr->pool_type) == 0) {
416             /* OK, compatible device */
417          } else {
418             /* Drive not suitable for us */
419             return 0;                 /* wait */
420          }
421       } else {
422          /* Device is available but not yet reserved, reserve it for us */
423          bstrncpy(dev->pool_name, dcr->pool_name, sizeof(dev->pool_name));
424          bstrncpy(dev->pool_type, dcr->pool_type, sizeof(dev->pool_type));
425       }
426       return 1;                       /* reserve drive */
427    }
428
429    /*
430     * Check if device in append mode with no writers (i.e. available)
431     */
432    if (dev->can_append() && dev->num_writers == 0) {
433       /* Device is available but not yet reserved, reserve it for us */
434       bstrncpy(dev->pool_name, dcr->pool_name, sizeof(dev->pool_name));
435       bstrncpy(dev->pool_type, dcr->pool_type, sizeof(dev->pool_type));
436       return 1;
437    }
438
439    /*
440     * Now check if the device is in append mode with writers (i.e.
441     *  available if pool is the same).
442     */
443    if (dev->can_append() || dev->num_writers > 0) {
444       Dmsg0(190, "device already in append.\n");
445       /* Yes, now check if we want the same Pool and pool type */
446       if (strcmp(dev->pool_name, dcr->pool_name) == 0 &&
447           strcmp(dev->pool_type, dcr->pool_type) == 0) {
448          /* OK, compatible device */
449       } else {
450          /* Drive not suitable for us */
451          Jmsg(jcr, M_WARNING, 0, _("Device %s is busy writing on another Volume.\n"), dev->print_name());
452          return 0;                    /* wait */
453       }
454    } else {
455       Pmsg0(000, "Logic error!!!! Should not get here.\n");
456       Jmsg0(jcr, M_FATAL, 0, _("Logic error!!!! Should not get here.\n"));
457       return -1;                      /* error, should not get here */
458    }
459    return 1;                          /* reserve drive */
460 }
461
462 /*
463  * Acquire device for writing. We permit multiple writers.
464  *  If this is the first one, we read the label.
465  *
466  *  Returns: NULL if failed for any reason
467  *           dcr if successful.
468  *   Note, normally reserve_device_for_append() is called
469  *   before this routine.
470  */
471 DCR *acquire_device_for_append(DCR *dcr)
472 {
473    bool release = false;
474    bool recycle = false;
475    bool do_mount = false;
476    DEVICE *dev = dcr->dev;
477    JCR *jcr = dcr->jcr;
478
479    init_device_wait_timers(dcr);
480
481    dev->block(BST_DOING_ACQUIRE);
482    Dmsg1(190, "acquire_append device is %s\n", dev->is_tape()?"tape":"disk");
483
484    if (dcr->reserved_device) {
485       dev->reserved_device--;
486       dcr->reserved_device = false;
487    }
488
489    /*
490     * With the reservation system, this should not happen
491     */
492    if (dev->can_read()) {
493       Jmsg(jcr, M_FATAL, 0, _("Device %s is busy reading.\n"), dev->print_name());
494       goto get_out;
495    }
496
497    if (dev->can_append()) {
498       Dmsg0(190, "device already in append.\n");
499       /*
500        * Device already in append mode
501        *
502        * Check if we have the right Volume mounted
503        *   OK if current volume info OK
504        *   OK if next volume matches current volume
505        *   otherwise mount desired volume obtained from
506        *    dir_find_next_appendable_volume
507        */
508       bstrncpy(dcr->VolumeName, dev->VolHdr.VolName, sizeof(dcr->VolumeName));
509       if (!dir_get_volume_info(dcr, GET_VOL_INFO_FOR_WRITE) &&
510           !(dir_find_next_appendable_volume(dcr) &&
511             strcmp(dev->VolHdr.VolName, dcr->VolumeName) == 0)) { /* wrong tape mounted */
512          Dmsg0(190, "Wrong tape mounted.\n");
513          if (dev->num_writers != 0 || dev->reserved_device) {
514             Jmsg(jcr, M_FATAL, 0, _("Device %s is busy writing on another Volume.\n"), dev->print_name());
515             goto get_out;
516          }
517          /* Wrong tape mounted, release it, then fall through to get correct one */
518          Dmsg0(190, "Wrong tape mounted, release and try mount.\n");
519          release = true;
520          do_mount = true;
521       } else {
522          /*
523           * At this point, the correct tape is already mounted, so
524           *   we do not need to do mount_next_write_volume(), unless
525           *   we need to recycle the tape.
526           */
527           recycle = strcmp(dcr->VolCatInfo.VolCatStatus, "Recycle") == 0;
528           Dmsg1(190, "Correct tape mounted. recycle=%d\n", recycle);
529           if (recycle && dev->num_writers != 0) {
530              Jmsg(jcr, M_FATAL, 0, _("Cannot recycle volume \"%s\""
531                   " on device %s because it is in use by another job.\n"),
532                   dev->VolHdr.VolName, dev->print_name());
533              goto get_out;
534           }
535           if (dev->num_writers == 0) {
536              memcpy(&dev->VolCatInfo, &dcr->VolCatInfo, sizeof(dev->VolCatInfo));
537           }
538        }
539    } else {
540       /* Not already in append mode, so mount the device */
541       Dmsg0(190, "Not in append mode, try mount.\n");
542       ASSERT(dev->num_writers == 0);
543       do_mount = true;
544    }
545
546    if (do_mount || recycle) {
547       Dmsg0(190, "Do mount_next_write_vol\n");
548       bool mounted = mount_next_write_volume(dcr, release);
549       if (!mounted) {
550          if (!job_canceled(jcr)) {
551             /* Reduce "noise" -- don't print if job canceled */
552             Jmsg(jcr, M_FATAL, 0, _("Could not ready device %s for append.\n"),
553                dev->print_name());
554          }
555          goto get_out;
556       }
557    }
558
559    dev->num_writers++;                /* we are now a writer */
560    if (jcr->NumVolumes == 0) {
561       jcr->NumVolumes = 1;
562    }
563    goto ok_out;
564
565 /*
566  * If we jump here, it is an error return because
567  *  rtn_dev will still be NULL
568  */
569 get_out:
570    free_dcr(dcr);
571    dcr = NULL;
572 ok_out:
573    dev->unblock();
574    return dcr;
575 }
576
577 /*
578  * This job is done, so release the device. From a Unix standpoint,
579  *  the device remains open.
580  *
581  */
582 bool release_device(DCR *dcr)
583 {
584    JCR *jcr = dcr->jcr;
585    DEVICE *dev = dcr->dev;
586    bool ok = true;
587
588    lock_device(dev);
589    Dmsg1(100, "release_device device is %s\n", dev->is_tape()?"tape":"disk");
590
591    /* if device is reserved, job never started, so release the reserve here */
592    if (dcr->reserved_device) {
593       dev->reserved_device--;
594       dcr->reserved_device = false;
595    }
596
597    if (dev->can_read()) {
598       dev->clear_read();              /* clear read bit */
599
600       /******FIXME**** send read volume usage statistics to director */
601
602    } else if (dev->num_writers > 0) {
603       /* 
604        * Note if WEOT is set, we are at the end of the tape
605        *   and may not be positioned correctly, so the
606        *   job_media_record and update_vol_info have already been
607        *   done, which means we skip them here.
608        */
609       dev->num_writers--;
610       Dmsg1(100, "There are %d writers in release_device\n", dev->num_writers);
611       if (dev->is_labeled()) {
612          Dmsg0(100, "dir_create_jobmedia_record. Release\n");
613          if (!dev->at_weot() && !dir_create_jobmedia_record(dcr)) {
614             Jmsg(jcr, M_FATAL, 0, _("Could not create JobMedia record for Volume=\"%s\" Job=%s\n"),
615                dcr->VolCatInfo.VolCatName, jcr->Job);
616          }
617          /* If no more writers, write an EOF */
618          if (!dev->num_writers && dev->can_write()) {
619             weof_dev(dev, 1);
620             write_ansi_ibm_labels(dcr, ANSI_EOF_LABEL, dev->VolHdr.VolName);
621          }
622          if (!dev->at_weot()) {
623             dev->VolCatInfo.VolCatFiles = dev->file;   /* set number of files */
624             dev->VolCatInfo.VolCatJobs++;              /* increment number of jobs */
625             /* Note! do volume update before close, which zaps VolCatInfo */
626             Dmsg0(100, "dir_update_vol_info. Release0\n");
627             dir_update_volume_info(dcr, false); /* send Volume info to Director */
628          }
629       }
630
631    } else {
632       /*                
633        * If we reach here, it is most likely because the job
634        *   has failed, since the device is not in read mode and
635        *   there are no writers. It was probably reserved.
636        */
637    }
638
639    /* If no writers, close if file or !CAP_ALWAYS_OPEN */
640    if (dev->num_writers == 0 && (!dev->is_tape() || !dev_cap(dev, CAP_ALWAYSOPEN))) {
641       offline_or_rewind_dev(dev);
642       close_dev(dev);
643    }
644
645    /* Fire off Alert command and include any output */
646    if (!job_canceled(jcr) && dcr->device->alert_command) {
647       POOLMEM *alert;
648       int status = 1;
649       BPIPE *bpipe;
650       char line[MAXSTRING];
651       alert = get_pool_memory(PM_FNAME);
652       alert = edit_device_codes(dcr, alert, dcr->device->alert_command, "");
653       bpipe = open_bpipe(alert, 0, "r");
654       if (bpipe) {
655          while (fgets(line, sizeof(line), bpipe->rfd)) {
656             Jmsg(jcr, M_ALERT, 0, _("Alert: %s"), line);
657          }
658          status = close_bpipe(bpipe);
659       } else {
660          status = errno;
661       }
662       if (status != 0) {
663          berrno be;
664          Jmsg(jcr, M_ALERT, 0, _("3997 Bad alert command: %s: ERR=%s.\n"),
665               alert, be.strerror(status));
666       }
667
668       Dmsg1(400, "alert status=%d\n", status);
669       free_pool_memory(alert);
670    }
671    unlock_device(dev);
672    free_dcr(dcr);
673    jcr->dcr = NULL;
674    pthread_cond_broadcast(&wait_device_release);
675    return ok;
676 }