Home
last modified time | relevance | path

Searched refs:volume (Results 1 – 25 of 149) sorted by relevance

123456

/dragonfly/sbin/hammer/
HDondisk.c40 static void check_volume(volume_info_t volume);
42 static __inline int readhammervol(volume_info_t volume);
44 static __inline int writehammervol(volume_info_t volume);
72 volume_info_t volume; in find_buffer() local
76 volume = get_volume(HAMMER_VOL_DECODE(zone2_offset)); in find_buffer()
77 assert(volume); in find_buffer()
80 TAILQ_FOREACH(buffer, &volume->buffer_lists[hi], entry) { in find_buffer()
91 volume_info_t volume; in __alloc_volume() local
94 volume = calloc(1, sizeof(*volume)); in __alloc_volume()
95 volume->vol_no = -1; in __alloc_volume()
[all …]
HDcmd_strip.c44 volume_info_t volume; in hammer_cmd_strip() local
59 volume = get_root_volume(); in hammer_cmd_strip()
60 if (volume == NULL) { in hammer_cmd_strip()
65 rootmap = &volume->ondisk->vol0_blockmap[zone]; in hammer_cmd_strip()
115 volume = get_volume(i); in hammer_cmd_strip()
116 if (volume) { in hammer_cmd_strip()
117 bzero(volume->ondisk, sizeof(*volume->ondisk)); in hammer_cmd_strip()
118 memcpy(&volume->ondisk->vol_signature, "STRIPPED", 8); in hammer_cmd_strip()
119 printf("Stripped volume header %s\n", volume->name); in hammer_cmd_strip()
181 volume_info_t volume; in hammer_ask_yn() local
[all …]
HDblockmap.c44 bootstrap_bigblock(volume_info_t volume) in bootstrap_bigblock() argument
48 assert_volume_offset(volume); in bootstrap_bigblock()
49 result_offset = volume->vol_free_off; in bootstrap_bigblock()
51 volume->vol_free_off += HAMMER_BIGBLOCK_SIZE; in bootstrap_bigblock()
60 alloc_undo_bigblock(volume_info_t volume) in alloc_undo_bigblock() argument
72 assert(volume->vol_no == HAMMER_ROOT_VOLNO); in alloc_undo_bigblock()
74 result_offset = bootstrap_bigblock(volume); in alloc_undo_bigblock()
75 freemap = &volume->ondisk->vol0_blockmap[HAMMER_ZONE_FREEMAP_INDEX]; in alloc_undo_bigblock()
101 --volume->ondisk->vol0_stat_freebigblocks; in alloc_undo_bigblock()
117 volume_info_t volume; in alloc_blockmap() local
[all …]
HDhammer_util.h107 volume_info_t volume; member
130 int is_regfile(const volume_info_t volume);
131 void assert_volume_offset(const volume_info_t volume);
143 int64_t initialize_freemap(volume_info_t volume);
144 int64_t count_freemap(const volume_info_t volume);
146 void print_blockmap(const volume_info_t volume);
148 void flush_volume(volume_info_t volume);
153 hammer_off_t bootstrap_bigblock(volume_info_t volume);
154 hammer_off_t alloc_undo_bigblock(volume_info_t volume);
HDcmd_volume.c55 volume_info_t volume; in hammer_cmd_volume_add() local
76 volume = init_volume(device, O_RDONLY, -1); in hammer_cmd_volume_add()
77 assert(volume->vol_no == -1); in hammer_cmd_volume_add()
78 if (is_regfile(volume)) { in hammer_cmd_volume_add()
82 close(volume->fd); in hammer_cmd_volume_add()
89 ioc.vol_size = volume->size; in hammer_cmd_volume_add()
HDcmd_recover.c126 volume_info_t volume; in hammer_cmd_recover() local
201 volume = get_volume(i); in hammer_cmd_recover()
202 if (volume == NULL) in hammer_cmd_recover()
206 volume->vol_no, sizetostr(volume->size)); in hammer_cmd_recover()
207 off = HAMMER_ENCODE_RAW_BUFFER(volume->vol_no, 0); in hammer_cmd_recover()
208 off_end = off + HAMMER_VOL_BUF_SIZE(volume->ondisk); in hammer_cmd_recover()
758 volume_info_t volume; in scan_raw_limit() local
771 volume = get_root_volume(); in scan_raw_limit()
772 rootmap = &volume->ondisk->vol0_blockmap[zone]; in scan_raw_limit()
824 volume_info_t volume; in scan_bigblocks() local
[all …]
HDhammer.c595 volume_info_t volume = NULL; in __hammer_parse_blkdevs() local
615 volume = load_volume(volname, oflags, verify_volume); in __hammer_parse_blkdevs()
616 assert(volume); in __hammer_parse_blkdevs()
623 assert(volume); in __hammer_parse_blkdevs()
625 if (vol_count != volume->ondisk->vol_count) { in __hammer_parse_blkdevs()
627 volume->ondisk->vol_count, vol_count); in __hammer_parse_blkdevs()
/dragonfly/sys/vfs/hammer/
HDhammer_ondisk.c47 static void hammer_free_volume(hammer_volume_t volume);
48 static int hammer_load_volume(hammer_volume_t volume);
113 hammer_volume_t volume; in hammer_install_volume() local
130 volume = kmalloc(sizeof(*volume), hmp->m_misc, M_WAITOK|M_ZERO); in hammer_install_volume()
131 volume->vol_name = kstrdup(volname, hmp->m_misc); in hammer_install_volume()
132 volume->io.hmp = hmp; /* bootstrap */ in hammer_install_volume()
133 hammer_io_init(&volume->io, volume, HAMMER_IOTYPE_VOLUME); in hammer_install_volume()
134 volume->io.offset = 0LL; in hammer_install_volume()
135 volume->io.bytes = HAMMER_BUFSIZE; in hammer_install_volume()
141 error = nlookup_init(&nd, volume->vol_name, UIO_SYSSPACE, NLC_FOLLOW); in hammer_install_volume()
[all …]
HDhammer_volume.c53 hammer_format_freemap(hammer_transaction_t trans, hammer_volume_t volume);
56 hammer_free_freemap(hammer_transaction_t trans, hammer_volume_t volume);
59 hammer_count_bigblocks(hammer_mount_t hmp, hammer_volume_t volume,
69 hammer_volume_t volume; in hammer_ioc_volume_add() local
114 volume = hammer_get_volume(hmp, free_vol_no, &error); in hammer_ioc_volume_add()
115 KKASSERT(volume != NULL && error == 0); in hammer_ioc_volume_add()
117 error = hammer_format_freemap(trans, volume); in hammer_ioc_volume_add()
120 error = hammer_count_bigblocks(hmp, volume, in hammer_ioc_volume_add()
125 hammer_rel_volume(volume, 0); in hammer_ioc_volume_add()
154 hammer_volume_t volume; in hammer_ioc_volume_del() local
[all …]
HDhammer_io.c61 static __inline void hammer_io_flush_mark(hammer_volume_t volume);
74 io1_offset = HAMMER_ENCODE(0, io1->volume->vol_no, io1->offset); in hammer_mod_rb_compare()
75 io2_offset = HAMMER_ENCODE(0, io2->volume->vol_no, io2->offset); in hammer_mod_rb_compare()
91 hammer_io_init(hammer_io_t io, hammer_volume_t volume, hammer_io_type_t type) in hammer_io_init() argument
93 io->volume = volume; in hammer_io_init()
94 io->hmp = volume->io.hmp; in hammer_io_init()
489 hammer_io_inval(hammer_volume_t volume, hammer_off_t zone2_offset) in hammer_io_inval() argument
497 hmp = volume->io.hmp; in hammer_io_inval()
505 phys_offset = hammer_xlate_to_phys(volume->ondisk, zone2_offset); in hammer_io_inval()
506 if ((bp = findblk(volume->devvp, phys_offset, 0)) != NULL) in hammer_io_inval()
[all …]
HDhammer_recover.c1034 hammer_volume_t volume; in hammer_recover_undo() local
1081 volume = hammer_get_volume(hmp, vol_no, &error); in hammer_recover_undo()
1082 if (volume == NULL) { in hammer_recover_undo()
1087 hammer_modify_volume_noundo(NULL, volume); in hammer_recover_undo()
1090 (char *)volume->ondisk + offset, in hammer_recover_undo()
1092 hammer_modify_volume_done(volume); in hammer_recover_undo()
1101 if (volume->io.recovered == 0) in hammer_recover_undo()
1102 volume->io.recovered = 1; in hammer_recover_undo()
1104 hammer_rel_volume(volume, 0); in hammer_recover_undo()
1481 hammer_recover_flush_volume_callback(hammer_volume_t volume, void *data) in hammer_recover_flush_volume_callback() argument
[all …]
HDhammer_disk.h818 #define hammer_xlate_to_phys(volume, zone2_offset) \ argument
819 ((volume)->vol_buf_beg + HAMMER_OFF_SHORT_ENCODE(zone2_offset))
827 #define hammer_xlate_to_undo(volume, zone3_offset) \ argument
828 ((volume)->vol0_undo_array[HAMMER_UNDO_INDEX(zone3_offset)] + \
834 #define HAMMER_VOL_BUF_SIZE(volume) \ argument
835 ((volume)->vol_buf_end - (volume)->vol_buf_beg)
/dragonfly/sbin/newfs_hammer/
HDnewfs_hammer.c42 static int trim_volume(volume_info_t volume);
43 static void format_volume(volume_info_t volume, int nvols,const char *label);
46 static void print_volume(const volume_info_t volume);
71 volume_info_t volume; in main() local
191 volume = init_volume(av[i], O_RDWR, i); in main()
193 volume->vol_no, volume->type, volume->name, in main()
194 sizetostr(volume->size)); in main()
197 if (trim_volume(volume) == -1 && ForceOpt == 0) { in main()
202 total += volume->size; in main()
244 print_volume(const volume_info_t volume) in print_volume() argument
[all …]
/dragonfly/usr.sbin/fstyp/
HDbefs.c50 struct disk_super_block *volume; in fstyp_befs() local
52 volume = read_buf(fp, BEFS_BLOCK_OFFSET, sizeof(*volume)); in fstyp_befs()
54 if (volume == NULL) { in fstyp_befs()
58 if (volume->magic1 == BEFS_SUPER_BLOCK_MAGIC1) { in fstyp_befs()
59 strlcpy(label, volume->name, size); in fstyp_befs()
60 free(volume); in fstyp_befs()
65 free(volume); in fstyp_befs()
HDcd9660.c46 char *sector, *volume; in fstyp_cd9660() local
55 volume = sector + 0x28; in fstyp_cd9660()
57 strlcpy(label, volume, MIN(size, VOLUME_LEN)); in fstyp_cd9660()
/dragonfly/usr.sbin/mptutil/
HDmpt_volume.c44 MPT_TABLE(top, volume);
191 MPT_COMMAND(volume, status, volume_status);
196 CONFIG_PAGE_RAID_VOL_0 *volume; in volume_cache() local
229 volume = mpt_vol_info(fd, VolumeBus, VolumeID, NULL); in volume_cache()
230 if (volume == NULL) in volume_cache()
233 Settings = volume->VolumeSettings.Settings; in volume_cache()
247 volume->VolumeSettings.Settings = NewSettings; in volume_cache()
249 VolumeBus, VolumeID, 0, *(U32 *)&volume->VolumeSettings, NULL, 0, in volume_cache()
257 MPT_COMMAND(volume, cache, volume_cache);
/dragonfly/sbin/mount_hammer2/
HDmount_hammer2.c50 static int cluster_connect(const char *volume);
178 info.volume = devpath; in main()
185 info.volume, mountpt); in main()
188 info.volume); in main()
192 info.volume); in main()
216 cluster_connect(const char *volume __unused) in cluster_connect()
/dragonfly/sbin/fsck_hammer2/
HDtest.c104 } volume; member
121 } volume; member
591 (uintmax_t)bstats->volume.total_inode, in print_blockref_stats()
592 (uintmax_t)bstats->volume.total_indirect, in print_blockref_stats()
593 (uintmax_t)bstats->volume.total_data, in print_blockref_stats()
594 (uintmax_t)bstats->volume.total_dirent, in print_blockref_stats()
711 bstats->volume.total_inode += dstats->volume.total_inode; in load_delta_stats()
712 bstats->volume.total_indirect += dstats->volume.total_indirect; in load_delta_stats()
713 bstats->volume.total_data += dstats->volume.total_data; in load_delta_stats()
714 bstats->volume.total_dirent += dstats->volume.total_dirent; in load_delta_stats()
[all …]
/dragonfly/sys/vfs/hammer2/
HDFREEMAP9 block #0 is reserved for a volume header in the first four zones. Most
14 ensure that any of the four volume headers can be used by the mount code
19 - Four copies, one for each of the four volume headers which H2 sequences
21 volume headers is handed a consistent freemap topology.
24 the state of the freemap topology pointed to by older volume headers
25 which are still valid. Note that the freemap for volume headers
45 If an older volume header is explicitly selected by the mount code, any
46 newer (presumably corrupt since the mount code didn't select it) volume
49 the newer (but not selected) volume headers. For a RW mount, this means
50 that if an older volume header is selected, the newer ones that were
[all …]
/dragonfly/sys/dev/raid/vinum/
HDvinum.c93 struct volume *vol; in vinumattach()
149 vol = &vinum_conf.volume[i]; in vinumattach()
248 struct volume *vol = &vinum_conf.volume[i]; in free_vinum()
274 VOL = (struct volume *) Malloc(sizeof(struct volume) * INITIAL_VOLUMES); in vinum_initconf()
276 bzero(VOL, sizeof(struct volume) * INITIAL_VOLUMES); in vinum_initconf()
377 struct volume *vol; in vinumopen()
484 struct volume *vol; in vinumclose()
562 struct volume *vol; in vinumsize()
HDvinumext.h75 int volume_index(struct volume *volume);
221 struct volume *validvol(int volno, struct _ioctl_reply *);
232 int lockvol(struct volume *vol);
233 void unlockvol(struct volume *vol);
HDvinumvar.h226 unsigned volume:8; /* up to 256 volumes */
321 struct volume *volume; member
351 #define VOL vinum_conf.volume
598 struct volume { struct
/dragonfly/sys/dev/video/cxm/
HDcxm_msp34xxx.c401 unsigned char volume[2]; in cxm_msp_is_muted() local
404 0x0000, volume, sizeof(volume)) != sizeof(volume)) in cxm_msp_is_muted()
407 return volume[0] == 0x00 || volume[0] == 0xff ? 1 : 0; in cxm_msp_is_muted()
/dragonfly/contrib/lvm2/dist/udev/
HD11-dm-lvm.rules11 # DM_LV_NAME - logical volume name
12 # DM_VG_NAME - volume group name
13 # DM_LV_LAYER - logical volume layer (blank if not set)
/dragonfly/contrib/file/magic/Magdir/
HDdump18 >0 belong 5 end of volume,
37 >0 belong 5 end of volume,
56 >0 belong 5 end of volume,
94 >0 leshort 5 end of volume.

123456