• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/router/busybox/util-linux/volume_id/

Lines Matching refs:vs

125 	struct vfat_super_block *vs;
145 vs = volume_id_get_buffer(id, fat_partition_off, 0x200);
146 if (vs == NULL)
152 if (memcmp(vs->sysid, "NTFS", 4) == 0)
155 if (memcmp(vs->type.fat32.magic, "MSWIN", 5) == 0)
158 if (memcmp(vs->type.fat32.magic, "FAT32 ", 8) == 0)
161 if (memcmp(vs->type.fat.magic, "FAT16 ", 8) == 0)
164 if (memcmp(vs->type.fat.magic, "MSDOS", 5) == 0)
167 if (memcmp(vs->type.fat.magic, "FAT12 ", 8) == 0)
176 if ((vs->boot_jump[0] != 0xeb || vs->boot_jump[2] != 0x90)
177 && vs->boot_jump[0] != 0xe9
183 if (vs->heads == 0)
187 if (vs->sectors_per_cluster == 0
188 || (vs->sectors_per_cluster & (vs->sectors_per_cluster-1))
194 if (vs->media < 0xf8 && vs->media != 0xf0)
198 if (vs->fats != 2)
203 sector_size_bytes = le16_to_cpu(vs->sector_size_bytes);
211 dbg("sectors_per_cluster 0x%x", vs->sectors_per_cluster);
213 reserved_sct = le16_to_cpu(vs->reserved_sct);
216 sect_count = le16_to_cpu(vs->sectors);
218 sect_count = le32_to_cpu(vs->total_sect);
221 fat_size_sct = le16_to_cpu(vs->fat_length);
223 fat_size_sct = le32_to_cpu(vs->type.fat32.fat32_length);
224 fat_size_sct *= vs->fats;
227 dir_entries = le16_to_cpu(vs->dir_entries);
233 cluster_count /= vs->sectors_per_cluster;
259 vs = volume_id_get_buffer(id, fat_partition_off, 0x200);
260 if (vs == NULL)
266 } else if (memcmp(vs->type.fat.label, "NO NAME ", 11) != 0) {
267 // volume_id_set_label_raw(id, vs->type.fat.label, 11);
268 volume_id_set_label_string(id, vs->type.fat.label, 11);
270 volume_id_set_uuid(id, vs->type.fat.serno, UUID_DOS);
275 buf_size = vs->sectors_per_cluster * sector_size_bytes;
276 root_cluster = le32_to_cpu(vs->type.fat32.root_cluster);
288 next_off_sct = (uint64_t)(next_cluster - 2) * vs->sectors_per_cluster;
320 vs = volume_id_get_buffer(id, fat_partition_off, 0x200);
321 if (vs == NULL)
327 } else if (memcmp(vs->type.fat32.label, "NO NAME ", 11) != 0) {
328 // volume_id_set_label_raw(id, vs->type.fat32.label, 11);
329 volume_id_set_label_string(id, vs->type.fat32.label, 11);
331 volume_id_set_uuid(id, vs->type.fat32.serno, UUID_DOS);