• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/fs/hfsplus/

Lines Matching defs:vhdr

26 	struct hfsplus_vh *vhdr;
46 vhdr = HFSPLUS_SB(inode->i_sb).s_vhdr;
51 hfsplus_inode_read_fork(inode, &vhdr->ext_file);
55 hfsplus_inode_read_fork(inode, &vhdr->cat_file);
59 hfsplus_inode_read_fork(inode, &vhdr->alloc_file);
63 hfsplus_inode_read_fork(inode, &vhdr->start_file);
66 hfsplus_inode_read_fork(inode, &vhdr->attr_file);
81 struct hfsplus_vh *vhdr;
89 vhdr = HFSPLUS_SB(inode->i_sb).s_vhdr;
95 if (vhdr->ext_file.total_size != cpu_to_be64(inode->i_size)) {
99 hfsplus_inode_write_fork(inode, &vhdr->ext_file);
103 if (vhdr->cat_file.total_size != cpu_to_be64(inode->i_size)) {
107 hfsplus_inode_write_fork(inode, &vhdr->cat_file);
111 if (vhdr->alloc_file.total_size != cpu_to_be64(inode->i_size)) {
115 hfsplus_inode_write_fork(inode, &vhdr->alloc_file);
118 if (vhdr->start_file.total_size != cpu_to_be64(inode->i_size)) {
122 hfsplus_inode_write_fork(inode, &vhdr->start_file);
125 if (vhdr->attr_file.total_size != cpu_to_be64(inode->i_size)) {
129 hfsplus_inode_write_fork(inode, &vhdr->attr_file);
147 struct hfsplus_vh *vhdr = HFSPLUS_SB(sb).s_vhdr;
155 vhdr->free_blocks = cpu_to_be32(HFSPLUS_SB(sb).free_blocks);
156 vhdr->next_alloc = cpu_to_be32(HFSPLUS_SB(sb).next_alloc);
157 vhdr->next_cnid = cpu_to_be32(HFSPLUS_SB(sb).next_cnid);
158 vhdr->folder_count = cpu_to_be32(HFSPLUS_SB(sb).folder_count);
159 vhdr->file_count = cpu_to_be32(HFSPLUS_SB(sb).file_count);
174 vhdr = (struct hfsplus_vh *)(bh->b_data + offset);
175 if (be16_to_cpu(vhdr->signature) == HFSPLUS_VOLHEAD_SIG) {
176 memcpy(vhdr, HFSPLUS_SB(sb).s_vhdr, sizeof(*vhdr));
193 struct hfsplus_vh *vhdr = HFSPLUS_SB(sb).s_vhdr;
195 vhdr->modify_date = hfsp_now2mt();
196 vhdr->attributes |= cpu_to_be32(HFSPLUS_VOL_UNMNT);
197 vhdr->attributes &= cpu_to_be32(~HFSPLUS_VOL_INCNSTNT);
234 struct hfsplus_vh *vhdr = HFSPLUS_SB(sb).s_vhdr;
242 if (!(vhdr->attributes & cpu_to_be32(HFSPLUS_VOL_UNMNT))) {
249 } else if (vhdr->attributes & cpu_to_be32(HFSPLUS_VOL_SOFTLOCK)) {
253 } else if (vhdr->attributes & cpu_to_be32(HFSPLUS_VOL_JOURNALED)) {
277 struct hfsplus_vh *vhdr;
316 vhdr = HFSPLUS_SB(sb).s_vhdr;
320 if (be16_to_cpu(vhdr->version) < HFSPLUS_MIN_VERSION ||
321 be16_to_cpu(vhdr->version) > HFSPLUS_CURRENT_VERSION) {
325 HFSPLUS_SB(sb).total_blocks = be32_to_cpu(vhdr->total_blocks);
326 HFSPLUS_SB(sb).free_blocks = be32_to_cpu(vhdr->free_blocks);
327 HFSPLUS_SB(sb).next_alloc = be32_to_cpu(vhdr->next_alloc);
328 HFSPLUS_SB(sb).next_cnid = be32_to_cpu(vhdr->next_cnid);
329 HFSPLUS_SB(sb).file_count = be32_to_cpu(vhdr->file_count);
330 HFSPLUS_SB(sb).folder_count = be32_to_cpu(vhdr->folder_count);
331 HFSPLUS_SB(sb).data_clump_blocks = be32_to_cpu(vhdr->data_clump_sz) >> HFSPLUS_SB(sb).alloc_blksz_shift;
334 HFSPLUS_SB(sb).rsrc_clump_blocks = be32_to_cpu(vhdr->rsrc_clump_sz) >> HFSPLUS_SB(sb).alloc_blksz_shift;
342 if (!(vhdr->attributes & cpu_to_be32(HFSPLUS_VOL_UNMNT))) {
353 } else if (vhdr->attributes & cpu_to_be32(HFSPLUS_VOL_SOFTLOCK)) {
356 } else if (vhdr->attributes & cpu_to_be32(HFSPLUS_VOL_JOURNALED)) {
410 vhdr->last_mount_vers = cpu_to_be32(HFSP_MOUNT_VERSION);
411 vhdr->modify_date = hfsp_now2mt();
412 vhdr->write_count = cpu_to_be32(be32_to_cpu(vhdr->write_count) + 1);
413 vhdr->attributes &= cpu_to_be32(~HFSPLUS_VOL_UNMNT);
414 vhdr->attributes |= cpu_to_be32(HFSPLUS_VOL_INCNSTNT);