Searched refs:clusters (Results 1 - 6 of 6) sorted by relevance

/haiku/src/add-ons/kernel/file_systems/fat/
H A Dfat.h30 status_t set_fat_chain_length(nspace *vol, vnode *node, uint32 clusters,
H A Dfat.cpp85 // allocate: # clusters in N, returns int32 status/starting cluster
410 // count number of clusters in fat chain starting at given cluster
523 set_fat_chain_length(nspace *vol, vnode *node, uint32 clusters, argument
531 " clusters (%" B_PRIu32 ")\n", node->vnid, clusters, node->cluster));
540 if (clusters == 0) {
567 DPRINTF(1, ("node has no clusters. adding %" B_PRIu32 " clusters\n",
568 clusters));
570 if ((result = allocate_n_fat_entries(vol, clusters,
[all...]
H A Ddir.cpp504 uint32 clusters = (last + vol->bytes_per_sector / 0x20 local
511 if (clusters == 0)
512 clusters = 1;
514 if (clusters * vol->bytes_per_sector * vol->sectors_per_cluster
516 DPRINTF(0, ("shrinking directory to %" B_PRIu32 " clusters\n",
517 clusters));
518 error = set_fat_chain_length(vol, dir, clusters, true);
519 dir->st_size = clusters * vol->bytes_per_sector
677 " clusters\n", dir->st_size / vol->bytes_per_sector
H A Dfile.cpp254 uint32 clusters = (st->st_size + vol->bytes_per_sector local
257 DPRINTF(0, ("setting fat chain length to %" B_PRIu32 " clusters\n",
258 clusters));
259 if ((err = set_fat_chain_length(vol, node, clusters, false))
443 uint32 clusters = (pos + *len + vol->bytes_per_sector*vol->sectors_per_cluster - 1) / vol->bytes_per_sector / vol->sectors_per_cluster; local
444 if (node->st_size <= (clusters - 1) * vol->sectors_per_cluster * vol->bytes_per_sector) {
445 if ((result = set_fat_chain_length(vol, node, clusters, false))
458 " clusters)\n", node->st_size, clusters));
/haiku/src/add-ons/kernel/file_systems/ntfs/libntfs/
H A Dlcnalloc.c196 * ntfs_cluster_alloc - allocate clusters on an ntfs volume
197 * @vol: mounted ntfs volume on which to allocate the clusters
199 * @count: number of clusters to allocate
200 * @start_lcn: starting lcn at which to allocate the clusters (or -1 if none)
201 * @zone: zone from which to allocate the clusters
203 * Allocate @count clusters preferably starting at cluster @start_lcn or at the
205 * @vol. @zone is either DATA_ZONE for allocation of normal clusters and
206 * MFT_ZONE for allocation of clusters for the master file table, i.e. the
242 s64 clusters, br; local
312 /* Loop until all clusters ar
[all...]
/haiku/src/add-ons/kernel/file_systems/ntfs/utils/
H A Dmkntfs.c161 s64 length; /* count of consecutive clusters */
199 static long long g_mft_zone_end = 0; /* Determined from volume_size and mft_zone_multiplier, in clusters */
200 static long long g_num_bad_blocks = 0; /* Number of bad clusters */
201 static long long *g_bad_blocks = NULL; /* Array of bad clusters */
275 * Mark a run of clusters as allocated
327 * (freeing free clusters is not considered as an error)
580 * ntfs_rlwrite - Write to disk the clusters contained in the runlist @rl
757 * @clusters: Amount of clusters to allocate.
759 * Allocate @clusters an
769 allocate_scattered_clusters(s64 clusters) argument
[all...]

Completed in 55 milliseconds