Home | History | Annotate | Download | only in udf

Lines Matching defs:vat

1927 	 * that its OK to have an open logical volume integrity here. The VAT
2148 * Note that it doesn't update the VAT structure!
2597 const char *extstr = "*UDF VAT LVExtension";
2627 DPRINTF(VOLUMES, ("VAT LVExtension size doesn't compute\n"));
2632 * we have found our "VAT LVExtension attribute. BUT due to a
2636 DPRINTF(VOLUMES, ("Found VAT LVExtension attr\n"));
2646 DPRINTF(VOLUMES, ("VAT LVExtension out of date\n"));
2647 /* replace VAT LVExt by free space EA */
2664 const char *extstr = "*UDF VAT LVExtension";
2693 DPRINTF(VOLUMES, ("VAT LVExtension bad on update\n"));
2699 * we have found our "VAT LVExtension attribute. BUT due to a
2703 DPRINTF(VOLUMES, ("Updating VAT LVExtension attr\n"));
2737 /* extent VAT allocation if needed */
2745 printf("udf_vat_write: can't extent VAT, out of mem\n");
2759 /* TODO support previous VAT location writeout */
2767 struct udf_vat *vat;
2794 /* allocate piece to process head or tail of VAT file */
2799 * Update "*UDF VAT LVExtension" extended attribute from the
2818 vat = (struct udf_vat *) raw_vat;
2824 impl_use_len = udf_rw16(vat->impl_use_len);
2831 memmove(vat->logvol_id, ump->logical_vol->logvol_id, 128);
2832 vat->prev_vat = udf_rw32(0xffffffff);
2833 vat->num_files = lvinfo->num_files;
2834 vat->num_directories = lvinfo->num_directories;
2835 vat->min_udf_readver = lvinfo->min_udf_readver;
2836 vat->min_udf_writever = lvinfo->min_udf_writever;
2837 vat->max_udf_writever = lvinfo->max_udf_writever;
2841 memset(vat->data, 0, impl_use_len);
2842 regid = (struct regid *) vat->data;
2847 memset(vat->data, 0, impl_use_len);
2848 vat->impl_use_len = 0;
2872 /* write out the VAT contents ; TODO intelligent writing */
2877 printf("udf_writeout_vat: failed to write out VAT contents\n");
2889 printf("udf_writeout_vat: error writing VAT node!\n");
2897 * Read in relevant pieces of VAT file and check if its indeed a VAT file
2898 * descriptor. If OK, read in complete VAT file.
2907 struct udf_vat *vat;
2922 DPRINTF(VOLUMES, ("Checking for VAT\n"));
2955 DPRINTF(VOLUMES, ("\tPossible VAT length %d\n", vat_length));
2963 printf("allocation of %d bytes failed for VAT\n",
2968 /* allocate piece to read in head or tail of VAT file */
2972 * check contents of the file if its the old 1.50 VAT table format.
2994 /* check 1.50 VAT */
2999 DPRINTF(VOLUMES, ("VAT format 1.50 rejected\n"));
3005 VAT LVExtension" extended attribute
3020 vat = (struct udf_vat *) raw_vat;
3021 vat_offset = udf_rw16(vat->header_len);
3025 lvinfo->num_files = vat->num_files;
3026 lvinfo->num_directories = vat->num_directories;
3027 lvinfo->min_udf_readver = vat->min_udf_readver;
3028 lvinfo->min_udf_writever = vat->min_udf_writever;
3029 lvinfo->max_udf_writever = vat->max_udf_writever;
3031 udf_update_logvolname(ump, vat->logvol_id);
3034 /* read in complete VAT file */
3041 printf("read in of complete VAT file failed (error %d)\n",
3046 DPRINTF(VOLUMES, ("VAT format accepted, marking it closed\n"));
3085 DPRINTF(VOLUMES, ("Searching VAT\n"));
3088 * Start reading forward in blocks from the first possible vat
3102 DPRINTF(VOLUMES, ("\t\tChecking for VAT at sector %d\n",
3115 ("VAT candidate accepted at %d\n",
3134 /* keep our last accepted VAT node around */
3299 /* search and load VAT */
3763 * we writeout the VAT to get a self-sustained session
3768 /* write out the VAT data and all its descriptors */
3811 /* writeout/update lvint or write out VAT */
3821 /* write out the VAT data and all its descriptors */
3826 * For bug-compatibility with Windows, the last VAT sector
3852 /* pad space with VAT ICBs */
3857 /* write out a number of VAT nodes */