Home
last modified time | relevance | path

Searched refs:hammer2_blockref_t (Results 1 – 25 of 28) sorted by relevance

12

/dragonfly/sbin/fsck_hammer2/
HDdestroy.c56 hammer2_blockref_t *, hammer2_blockref_t *);
57 static int modify_inode(const hammer2_blockref_t *,
59 static int modify_dirent_embedded(int, hammer2_blockref_t *);
60 static int modify_dirent(int, hammer2_blockref_t *, const hammer2_blockref_t *,
77 hammer2_blockref_t broot; in destroy_blockref()
111 read_media(const hammer2_blockref_t *bref, hammer2_media_data_t *media, in read_media()
161 write_media(const hammer2_blockref_t *bref, const hammer2_media_data_t *media, in write_media()
223 hammer2_blockref_t *bref, hammer2_blockref_t *prev_bref) in modify_blockref()
226 hammer2_blockref_t *bscan; in modify_blockref()
248 bcount = bytes / sizeof(hammer2_blockref_t); in modify_blockref()
[all …]
HDreconstruct.c57 const hammer2_blockref_t *);
59 hammer2_blockref_t *, hammer2_blockref_t *, int);
60 static int modify_check(int, hammer2_blockref_t *, const hammer2_blockref_t *,
73 hammer2_blockref_t broot; in reconstruct_volume_header()
113 hammer2_blockref_t broot; in reconstruct_blockref()
149 const hammer2_blockref_t *bref) in modify_volume_header()
228 read_media(const hammer2_blockref_t *bref, hammer2_media_data_t *media, in read_media()
278 write_media(const hammer2_blockref_t *bref, const hammer2_media_data_t *media, in write_media()
340 hammer2_blockref_t *bref, hammer2_blockref_t *prev_bref, int depth) in modify_blockref()
343 hammer2_blockref_t *bscan; in modify_blockref()
[all …]
HDtest.c65 hammer2_blockref_t bref;
136 static int read_media(const hammer2_blockref_t *, hammer2_media_data_t *,
138 static int verify_blockref(const hammer2_blockref_t *, bool, blockref_stats_t *,
142 static int init_pfs_blockref(const hammer2_blockref_t *,
145 static void print_media(FILE *, int, const hammer2_blockref_t *,
183 tprintf_zone(int tab, int i, const hammer2_blockref_t *bref) in tprintf_zone()
191 init_root_blockref(int i, uint8_t type, hammer2_blockref_t *bref) in init_root_blockref()
210 hammer2_blockref_t best; in find_best_zone()
217 hammer2_blockref_t broot; in find_best_zone()
255 hammer2_blockref_t broot; in test_volume_header()
[all …]
/dragonfly/sbin/hammer2/
HDcmd_info.c36 typedef void (*cmd_callback)(const void *, hammer2_blockref_t *, int);
39 static void h2pfs_check(int fd, hammer2_blockref_t *bref,
42 static void info_callback1(const void *, hammer2_blockref_t *, int);
43 static void info_callback2(const void *, hammer2_blockref_t *, int);
156 info_callback1(const void *path, hammer2_blockref_t *bref, int fd) in info_callback1()
178 hammer2_blockref_t *bref __unused, int fd __unused) in info_callback2()
214 static void mount_callback1(const void *, hammer2_blockref_t *, int);
215 static void mount_callback2(const void *, hammer2_blockref_t *, int);
261 mount_callback1(const void *devpath, hammer2_blockref_t *bref, int fd) in mount_callback1()
274 hammer2_blockref_t *bref __unused, int fd) in mount_callback2()
[all …]
HDcmd_recover.c102 hammer2_blockref_t bref;
126 static int check_filename(hammer2_blockref_t *bref,
134 hammer2_blockref_t *bref);
135 static void enter_inode(hammer2_blockref_t *bref);
139 static int find_neg(hammer2_blockref_t *bref);
140 static void enter_neg(hammer2_blockref_t *bref);
148 hammer2_blockref_t *base, int count,
151 hammer2_blockref_t *bref, int count);
152 static int validate_crc(hammer2_blockref_t *bref, void *data, size_t bytes);
239 hammer2_blockref_t *bref; in cmd_recover()
[all …]
HDcmd_debug.c387 int bi, hammer2_blockref_t *bref, int norecurse);
415 hammer2_blockref_t broot; in cmd_show()
733 hammer2_blockref_t *bref, int norecurse) in show_bref()
736 hammer2_blockref_t *bscan; in show_bref()
826 bcount = bytes / sizeof(hammer2_blockref_t); in show_bref()
839 bcount = bytes / sizeof(hammer2_blockref_t); in show_bref()
/dragonfly/stand/lib/
HDhammer2.c70 static hammer2_blockref_t saved_base;
75 hammer2_blockref_t sroot;
135 blockoff(hammer2_blockref_t *bref) in blockoff()
142 blocksize(hammer2_blockref_t *bref) in blocksize()
274 h2lookup(struct hammer2_fs *hfs, hammer2_blockref_t *base, in h2lookup()
276 hammer2_blockref_t *bref_ret, void **pptr) in h2lookup()
278 hammer2_blockref_t *bref; in h2lookup()
279 hammer2_blockref_t best; in h2lookup()
308 count = blocksize(base) / sizeof(hammer2_blockref_t); in h2lookup()
435 hammer2_blockref_t *bref, hammer2_inode_data_t **inop) in h2resolve()
[all …]
/dragonfly/sys/vfs/hammer2/
HDhammer2_chain.c73 hammer2_blockref_t *obref);
76 hammer2_blockref_t *base, int count,
79 hammer2_blockref_t **brefp);
179 hammer2_blockref_t *bref) in hammer2_chain_alloc()
922 hammer2_blockref_t *bref; in hammer2_chain_load_data()
1208 hammer2_blockref_t *
1211 hammer2_blockref_t *base; in hammer2_chain_base_and_count()
1223 count = parent->bytes / sizeof(hammer2_blockref_t); in hammer2_chain_base_and_count()
1247 count = parent->bytes / sizeof(hammer2_blockref_t); in hammer2_chain_base_and_count()
1291 hammer2_blockref_t *base, int count) in hammer2_chain_countbrefs()
[all …]
HDhammer2_disk.h117 sizeof(hammer2_blockref_t))
119 sizeof(hammer2_blockref_t))
121 sizeof(hammer2_blockref_t))
699 typedef struct hammer2_blockref hammer2_blockref_t; typedef
783 hammer2_blockref_t blockref[HAMMER2_SET_COUNT];
1316 hammer2_blockref_t npdata[HAMMER2_IND_COUNT_MAX];
HDhammer2.h327 hammer2_blockref_t bref;
1525 hammer2_blockref_t *bref);
1551 hammer2_blockref_t *bref, int how);
1567 hammer2_blockref_t *bref,
1584 hammer2_blockref_t *base, int count);
1594 hammer2_blockref_t *base, int count,
1596 hammer2_blockref_t *obref);
1598 hammer2_blockref_t *base, int count,
1600 hammer2_blockref_t *elm);
1631 void hammer2_io_dedup_set(hammer2_dev_t *hmp, hammer2_blockref_t *bref);
[all …]
HDhammer2_bulkfree.c90 hammer2_blockref_t *bref, int pri, int saved_error);
102 hammer2_blockref_t *bref), in hammer2_bulkfree_scan()
105 hammer2_blockref_t bref; in hammer2_bulkfree_scan()
448 hammer2_blockref_t *bref);
792 h2_bulkfree_callback(hammer2_bulkfree_info_t *cbinfo, hammer2_blockref_t *bref) in h2_bulkfree_callback()
1363 h2_bulkfree_test(hammer2_bulkfree_info_t *cbinfo, hammer2_blockref_t *bref, in h2_bulkfree_test()
HDhammer2_freemap.c55 hammer2_blockref_t *bref, int radix,
80 hammer2_blockref_t *bref = &chain->bref; in hammer2_freemap_reserve()
186 hammer2_blockref_t *bref = &chain->bref; in hammer2_freemap_alloc()
274 hammer2_blockref_t *bref, int radix, in hammer2_freemap_try_alloc()
921 hammer2_freemap_adjust(hammer2_dev_t *hmp, hammer2_blockref_t *bref, in hammer2_freemap_adjust()
HDhammer2_flush.c999 hammer2_blockref_t *base; in hammer2_flush_core()
1094 count = parent->bytes / sizeof(hammer2_blockref_t); in hammer2_flush_core()
HDhammer2_cluster.c137 hammer2_cluster_bref(hammer2_cluster_t *cluster, hammer2_blockref_t *bref) in hammer2_cluster_bref()
HDhammer2_vfsops.c2026 hammer2_blockref_t bref; in hammer2_vfs_statfs()
2081 hammer2_blockref_t bref; in hammer2_vfs_statvfs()
2214 hammer2_blockref_t bref; in hammer2_recovery_scan()
/dragonfly/usr.sbin/makefs/hammer2/
HDhammer2_chain.c77 hammer2_blockref_t *obref);
80 hammer2_blockref_t *base, int count,
83 hammer2_blockref_t **brefp);
185 hammer2_blockref_t *bref) in hammer2_chain_alloc()
928 hammer2_blockref_t *bref; in hammer2_chain_load_data()
1214 hammer2_blockref_t *
1217 hammer2_blockref_t *base; in hammer2_chain_base_and_count()
1229 count = parent->bytes / sizeof(hammer2_blockref_t); in hammer2_chain_base_and_count()
1253 count = parent->bytes / sizeof(hammer2_blockref_t); in hammer2_chain_base_and_count()
1297 hammer2_blockref_t *base, int count) in hammer2_chain_countbrefs()
[all …]
HDhammer2.h366 hammer2_blockref_t bref;
1572 hammer2_blockref_t *bref);
1598 hammer2_blockref_t *bref, int how);
1614 hammer2_blockref_t *bref,
1631 hammer2_blockref_t *base, int count);
1641 hammer2_blockref_t *base, int count,
1643 hammer2_blockref_t *obref);
1645 hammer2_blockref_t *base, int count,
1647 hammer2_blockref_t *elm);
1692 void hammer2_io_dedup_set(hammer2_dev_t *hmp, hammer2_blockref_t *bref);
[all …]
HDhammer2_bulkfree.c95 hammer2_blockref_t *bref, int pri, int saved_error);
107 hammer2_blockref_t *bref), in hammer2_bulkfree_scan()
110 hammer2_blockref_t bref; in hammer2_bulkfree_scan()
453 hammer2_blockref_t *bref);
803 h2_bulkfree_callback(hammer2_bulkfree_info_t *cbinfo, hammer2_blockref_t *bref) in h2_bulkfree_callback()
1374 h2_bulkfree_test(hammer2_bulkfree_info_t *cbinfo, hammer2_blockref_t *bref, in h2_bulkfree_test()
HDhammer2_freemap.c59 hammer2_blockref_t *bref, int radix,
84 hammer2_blockref_t *bref = &chain->bref; in hammer2_freemap_reserve()
190 hammer2_blockref_t *bref = &chain->bref; in hammer2_freemap_alloc()
278 hammer2_blockref_t *bref, int radix, in hammer2_freemap_try_alloc()
925 hammer2_freemap_adjust(hammer2_dev_t *hmp, hammer2_blockref_t *bref, in hammer2_freemap_adjust()
HDhammer2_flush.c1003 hammer2_blockref_t *base; in hammer2_flush_core()
1098 count = parent->bytes / sizeof(hammer2_blockref_t); in hammer2_flush_core()
HDhammer2_cluster.c142 hammer2_cluster_bref(hammer2_cluster_t *cluster, hammer2_blockref_t *bref) in hammer2_cluster_bref()
HDhammer2_vfsops.c1992 hammer2_blockref_t bref; in hammer2_vfs_statfs()
2047 hammer2_blockref_t bref; in hammer2_vfs_statvfs()
2180 hammer2_blockref_t bref; in hammer2_recovery_scan()
HDhammer2_io.c704 hammer2_io_dedup_set(hammer2_dev_t *hmp, hammer2_blockref_t *bref) in hammer2_io_dedup_set()
/dragonfly/sbin/newfs_hammer2/
HDmkfs_hammer2.c59 static void alloc_direct(hammer2_off_t *basep, hammer2_blockref_t *bref,
313 hammer2_blockref_t *sroot_blockrefp, in format_hammer2_inode()
318 hammer2_blockref_t sroot_blockref; in format_hammer2_inode()
319 hammer2_blockref_t root_blockref[MAXLABELS]; in format_hammer2_inode()
637 alloc_direct(hammer2_off_t *basep, hammer2_blockref_t *bref, size_t bytes) in alloc_direct()
661 const hammer2_blockref_t *bref1 = b1; in blkrefary_cmp()
662 const hammer2_blockref_t *bref2 = b2; in blkrefary_cmp()
689 assert(sizeof(hammer2_blockref_t) == HAMMER2_BLOCKREF_BYTES); in hammer2_mkfs()
/dragonfly/usr.sbin/fstyp/
HDhammer2.c126 read_media(FILE *fp, const hammer2_blockref_t *bref, size_t *media_bytes) in read_media()
185 find_pfs(FILE *fp, const hammer2_blockref_t *bref, const char *pfs, bool *res) in find_pfs()
189 hammer2_blockref_t *bscan; in find_pfs()
226 bcount = bytes / sizeof(hammer2_blockref_t); in find_pfs()
280 hammer2_blockref_t broot, best, *bref; in read_label()

12