Searched refs:clusters (Results 1 - 10 of 10) sorted by relevance
/haiku-fatelf/src/add-ons/kernel/file_systems/fat/ |
H A D | fat.h | 29 status_t set_fat_chain_length(nspace *vol, vnode *node, uint32 clusters);
|
H A D | fat.c | 85 // allocate: # clusters in N, returns int32 status/starting cluster 406 // count number of clusters in fat chain starting at given cluster 511 set_fat_chain_length(nspace *vol, vnode *node, uint32 clusters) argument 516 DPRINTF(1, ("set_fat_chain_length: %Lx to %ld clusters (%ld)\n", node->vnid, 517 clusters, node->cluster)); 526 if (clusters == 0) { 553 DPRINTF(1, ("node has no clusters. adding %ld clusters\n", clusters)); 555 if ((result = allocate_n_fat_entries(vol, clusters, [all...] |
H A D | dir.c | 514 uint32 clusters = (last + vol->bytes_per_sector / 0x20 local 521 if (clusters == 0) 522 clusters = 1; 524 if (clusters * vol->bytes_per_sector * vol->sectors_per_cluster < dir->st_size) { 525 DPRINTF(0, ("shrinking directory to %lx clusters\n", clusters)); 526 error = set_fat_chain_length(vol, dir, clusters); 527 dir->st_size = clusters*vol->bytes_per_sector*vol->sectors_per_cluster; 683 DPRINTF(0, ("expanding directory from %Lx to %lx clusters\n",
|
H A D | file.c | 234 uint32 clusters = (st->st_size + vol->bytes_per_sector*vol->sectors_per_cluster - 1) / vol->bytes_per_sector / vol->sectors_per_cluster; local 235 DPRINTF(0, ("setting fat chain length to %lx clusters\n", clusters)); 236 if ((err = set_fat_chain_length(vol, node, clusters)) == B_OK) { 551 uint32 clusters = (pos + *len + vol->bytes_per_sector*vol->sectors_per_cluster - 1) / vol->bytes_per_sector / vol->sectors_per_cluster; local 552 if (node->st_size <= (clusters - 1) * vol->sectors_per_cluster * vol->bytes_per_sector) { 553 if ((result = set_fat_chain_length(vol, node, clusters)) != B_OK) { 564 DPRINTF(0, ("setting file size to %Lx (%lx clusters)\n", node->st_size, clusters));
|
/haiku-fatelf/src/tests/add-ons/kernel/file_systems/dos/r5/ |
H A D | fat.h | 25 status_t set_fat_chain_length(nspace *vol, vnode *node, uint32 clusters);
|
H A D | fat.c | 76 // allocate: # clusters in N, returns int32 status/starting cluster 346 // count number of clusters in fat chain starting at given cluster 439 status_t set_fat_chain_length(nspace *vol, vnode *node, uint32 clusters) argument 444 DPRINTF(1, ("set_fat_chain_length: %Lx to %lx clusters (%lx)\n", node->vnid, clusters, node->cluster)); 451 if (clusters == 0) { 477 DPRINTF(1, ("node has no clusters. adding %lx clusters\n", clusters)); 479 if ((result = allocate_n_fat_entries(vol, clusters, [all...] |
H A D | dir.c | 495 uint32 clusters = (last + vol->bytes_per_sector / 0x20 * vol->sectors_per_cluster - 1) / (vol->bytes_per_sector / 0x20) / vol->sectors_per_cluster; local 500 if (clusters == 0) clusters = 1; 502 if (clusters * vol->bytes_per_sector * vol->sectors_per_cluster < dir->st_size) { 503 DPRINTF(0, ("shrinking directory to %lx clusters\n", clusters)); 504 error = set_fat_chain_length(vol, dir, clusters); 505 dir->st_size = clusters*vol->bytes_per_sector*vol->sectors_per_cluster; 648 DPRINTF(0, ("expanding directory from %Lx to %lx clusters\n", dir->st_size/vol->bytes_per_sector/vol->sectors_per_cluster, clusters_needed));
|
H A D | file.c | 218 uint32 clusters = (st->st_size + vol->bytes_per_sector*vol->sectors_per_cluster - 1) / vol->bytes_per_sector / vol->sectors_per_cluster; local 219 DPRINTF(0, ("setting fat chain length to %lx clusters\n", clusters)); 220 if ((err = set_fat_chain_length(vol, node, clusters)) == B_OK) { 540 uint32 clusters = (pos + *len + vol->bytes_per_sector*vol->sectors_per_cluster - 1) / vol->bytes_per_sector / vol->sectors_per_cluster; local 541 if (node->st_size <= (clusters - 1) * vol->sectors_per_cluster * vol->bytes_per_sector) { 542 if ((result = set_fat_chain_length(vol, node, clusters)) != B_OK) { 553 DPRINTF(0, ("setting file size to %Lx (%lx clusters)\n", node->st_size, clusters));
|
/haiku-fatelf/src/add-ons/kernel/file_systems/ntfs/libntfs/ |
H A D | lcnalloc.c | 196 * 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-fatelf/src/add-ons/kernel/file_systems/ntfs/utils/ |
H A D | mkntfs.c | 161 s64 length; /* count of consecutive clusters */ 186 static long long g_mft_zone_end = 0; /* Determined from volume_size and mft_zone_multiplier, in clusters */ 187 static long long g_num_bad_blocks = 0; /* Number of bad clusters */ 188 static long long *g_bad_blocks = NULL; /* Array of bad clusters */ 215 * Mark a run of clusters as allocated 267 * (freeing free clusters is not considered as an error) 520 * ntfs_rlwrite - Write to disk the clusters contained in the runlist @rl 697 * @clusters: Amount of clusters to allocate. 699 * Allocate @clusters an 709 allocate_scattered_clusters(s64 clusters) argument [all...] |
Completed in 80 milliseconds