search for: num_blocks

Displaying 20 results from an estimated 29 matches for "num_blocks".

2010 Jul 22
4
[PATCH 1/3] ext3/ext4: Factor out disk addressability check
...72..b969648 100644 --- a/fs/libfs.c +++ b/fs/libfs.c @@ -955,6 +955,38 @@ int generic_file_fsync(struct file *file, int datasync) } EXPORT_SYMBOL(generic_file_fsync); +/** + * generic_check_addressable - Check addressability of file system + * @blocksize_bits: log of file system block size + * @num_blocks: number of blocks in file system + * + * Determine whether a file system with @num_blocks blocks (and a + * block size of 2**@blocksize_bits) is addressable by the sector_t + * and page cache of the system. Return 0 if so and -EFBIG otherwise. + */ +int generic_check_addressable(unsigned blocksiz...
2007 Nov 16
8
[PATCH 0/6] Add online resize for ocfs2-tools,take 1
Add online resize in tunefs.ocfs2 so that user can increase the volume when it is mounted.
2010 Sep 16
0
improvements to plm fitting
...rough a massive tapply() ) I have modified the function to process things in chunks. By still using tapply we do not give up too much efficiency and gain the ability to fit much larger models. Here is the down-and-dirty code, set at the moment to do everything in one go, but controllable via 'num_blocks' or 'block_size'. A nice way to handle this would be for it to be left as a parameter that, by default, is set to do the entire data set at once. Tapply.default <- function (x, effect, func, ...) { na.x <- is.na(x) effect_unique <- unique(effect) n_effects <- l...
2009 Jan 21
0
[PATCH] Progs: update convert for uninitialized block groups
..., + path.slots[0]); + btrfs_release_path(root, &path); + goto recow; + } btrfs_item_key_to_cpu(leaf, &key, path.slots[0]); if (key.objectid != objectid || key.type != BTRFS_EXTENT_DATA_KEY) @@ -2048,7 +2070,7 @@ static int relocate_one_reference(struct if (data.num_blocks > 0) { ret = record_file_blocks(trans, root, objectid, &inode, data.first_block, data.disk_block, - data.num_blocks, 0); + data.num_blocks, datacsum); if (ret) goto fail; } @@ -2218,7 +2240,7 @@ next: ret = btrfs_commit_transaction(trans, cur_root); BUG_ON(re...
2009 Apr 07
0
[PATCH 1/1] OCFS2: use i_size_read() instead of direct accessing inode->i_size
...u\n", (unsigned long long)inode->i_blocks); mlog(0, "inode->ip_clusters = %u\n", OCFS2_I(inode)->ip_clusters); @@ -1120,7 +1120,7 @@ static int ocfs2_force_read_journal(struct inode *inode) memset(bhs, 0, sizeof(struct buffer_head *) * CONCURRENT_JOURNAL_FILL); - num_blocks = ocfs2_blocks_for_bytes(inode->i_sb, inode->i_size); + num_blocks = ocfs2_blocks_for_bytes(inode->i_sb, i_size_read(inode)); v_blkno = 0; while (v_blkno < num_blocks) { status = ocfs2_extent_map_get_blocks(inode, v_blkno, diff --git a/fs/ocfs2/quota_global.c b/fs/ocfs2/quota_glo...
2016 Mar 17
1
Questions regarding hostdev scsi
...pe>disk</drive_type> <model>Samsung SSD 850</model> <vendor>ATA</vendor> <serial>Samsung_SSD_850_PRO_256GB_S251NXAGB42213R</serial> <size>256060514304</size> <logical_block_size>512</logical_block_size> <num_blocks>500118192</num_blocks> </capability> </device> <device> <name>scsi_generic_sg1</name> <path>/sys/devices/pci0000:00/0000:00:1f.2/ata5/host4/target4:0:0/4:0:0:0/scsi_generic/sg1</path> <parent>scsi_4_0_0_0</parent> <capabil...
2008 Jan 07
1
[PATCH]Add rollback support for the converter
...m = 1, .errcode = 0, }; + + if (inode_flags & BTRFS_INODE_NODATASUM) + data.checksum = 0; err = ext2fs_block_iterate2(ext2_fs, ext2_ino, BLOCK_FLAG_DATA_ONLY, NULL, __block_iterate_proc, &data); @@ -495,7 +502,7 @@ static int create_file_extents(struct bt } else if (data.num_blocks > 0) { ret = record_file_blocks(trans, root, objectid, btrfs_inode, data.first_block, data.disk_block, - data.num_blocks, 1); + data.num_blocks, data.checksum); if (ret) goto fail; } @@ -504,7 +511,7 @@ static int create_file_extents(struct bt if (last_block > d...
2009 Aug 24
0
[PATCH] Btrfs: proper metadata -ENOSPC handling
...k); root->fs_info->running_transaction = cur_trans; spin_unlock(&root->fs_info->new_trans_lock); @@ -164,50 +208,265 @@ static void wait_current_trans(struct btrfs_root *root) } } -static struct btrfs_trans_handle *start_transaction(struct btrfs_root *root, - int num_blocks, int wait) +static int init_trans_handle(struct btrfs_root *root, + struct btrfs_trans_handle *h) { - struct btrfs_trans_handle *h = - kmem_cache_alloc(btrfs_trans_handle_cachep, GFP_NOFS); + struct btrfs_transaction *cur_trans; int ret; - mutex_lock(&root->fs_info->trans_mut...
2006 Dec 23
1
Bug in FLAC++ Stream::set_metadata()
...FLAC__stream_encoder_set_metadata() are being passed arguments that point to local stack data (specifically the 'm' parameter which is a table that points to metadata objects). The code inside FLAC__stream_encoder_set_metadata() does nothing but store the given args ('m' and 'num_blocks'). When Stream::set_metadata() exits, those stack objects go out of scope (or alternatively in the MSVC case, they're explicitly deleted). Later inside the encoder's init() function, those destroyed data members are accessed and causes a fault. I'm new to the mailing list so if...
2007 Jun 19
0
[PATCH 0/4] VHD Support addition
...ing, and converting vhd files. Like libvdisk, it is designed with future support of additional formats in mind, but currently only supports vhd. Usage: vdisk_tool OPTIONS -# <format-specific options> <filename> OPTIONS: [-f <format>] [-C] [-H] [-M] [-D <block> [-b <num_blocks>] -o outfile]] -C Create a vdisk -H Read vdisk headers from file -M Modify a vdisk -D Dump a vhd block first block to read (required) num_blocks number of blocks to read. If not specified, whole file will be read...
2014 Sep 11
0
trying but failing - pass-through scsi/sata
...<drive_type>disk</drive_type> <model>OCZ-VERTEX4</model> <vendor>ATA</vendor> <serial>OCZ-VERTEX4_OCZ-352C77TZVQF1Y3SX</serial> <size>128035676160</size> <logical_block_size>512</logical_block_size> <num_blocks>250069680</num_blocks> </capability> </device> how do I pass-through sata drives? any help much appreciated, thanks!
2005 Jul 12
1
HAL and mounting volume
...; (string) volume.policy.mount_filesystem = 'vfat' (string) volume.policy.should_mount = true (bool) info.udi = '/org/freedesktop/Hal/devices/block_4223-CC71' (string) volume.size = 130023424 (0x7c00000) (uint64) volume.block_size = 512 (0x200) (int) volume.num_blocks = 253952 (0x3e000) (int) volume.is_disc = false (bool) volume.is_mounted = true (bool) volume.mount_point = '/media/usbdisk' (string) volume.label = '' (string) volume.uuid = '4223-CC71' (string) volume.fsversion = 'FAT12' (string) volume...
2014 Sep 26
4
Patch to add buffering to decoding too
..._VALUE) { + if (GetFileType(fh) == FILE_TYPE_DISK) { + LARGE_INTEGER size; + size.QuadPart = d->total_samples * d->channels * ((d->bps+7)/8) + 512; + if(d->foreign_metadata) { + size_t i; + for(i = d->format==FORMAT_RF64?2:1; i < d->foreign_metadata->num_blocks; i++) { + if(i != d->foreign_metadata->format_block && i != d->foreign_metadata->audio_block) + size.QuadPart += d->foreign_metadata->blocks[i].size; + } + } + + if(SetFilePointerEx(fh, size, NULL, FILE_CURRENT)) /* tell filesystem the expected fi...
2007 May 01
1
contstant bittrate mode - block size - packet size
...a block for encode #define READ 882 (20ms) struct ovectl_ratemanage2_arg rma; fp_infile = fopen(infile,"rb"); fp_outfile = fopen(outfile,"wb"); fp_enc_info = fopen("enc_info.txt","w"); printf("%s %s\n",infile,outfile); num_blocks = 0; num_bytes = 0; num_packets = 0; //num_mseconds = 0; rma.management_active = 1; rma.bitrate_limit_max_kbps = 3*128000; rma.bitrate_limit_min_kbps = 3*128000; rma.bitrate_limit_reservoir_bits = 0; rma.bitrate_limit_reservoir_bias = 0; rma.bitrate_average_kbps = 3*128000;...
2004 Sep 10
2
usage of C++ StreamMetadata interface
Josh Coalson wrote: > [...] > why do you need one? all the fields are available though method > calls. just an example: I created an object of the type "FLAC::Metadata::VorbisComment". How will this find it's way to "FLAC::Stream::Encoder.set_metadata()" ??? Thomas
2014 Sep 27
0
Patch to add buffering to decoding too
...LARGE_INTEGER size; + size.QuadPart = d->total_samples * d->channels * ((d->bps+7)/8); + if(d->format != FORMAT_RAW) { + size.QuadPart += 512; + if(d->foreign_metadata) { + size_t i; + for(i = d->format==FORMAT_RF64?2:1; i < d->foreign_metadata->num_blocks; i++) { + if(i != d->foreign_metadata->format_block && i != d->foreign_metadata->audio_block) + size.QuadPart += d->foreign_metadata->blocks[i].size; + } + } + } + + if(SetFilePointerEx(fh, size, NULL, FILE_CURRENT)) /* tell filesystem the expec...
2008 Dec 04
1
How to enable offline bit in SAMBA
We have a SAMBA built from source code, and we want to enable offline bit in SAMBA, Can anybody can give some advices on this? Thanks. Vincent
2014 Sep 26
0
Patch to add buffering to decoding too
...{ + if (GetFileType(fh) == FILE_TYPE_DISK) { + LARGE_INTEGER size, pos; + + size.QuadPart = d->total_samples * d->channels * ((d->bps+7)/8) + 512; + if(d->foreign_metadata) { + size_t i; + for(i = d->format==FORMAT_RF64?2:1; i < d->foreign_metadata->num_blocks; i++) { + if(i != d->foreign_metadata->format_block && i != d->foreign_metadata->audio_block) + size.QuadPart += d->foreign_metadata->blocks[i].size; + } + } + + if(SetFilePointerEx(fh, size, NULL, FILE_CURRENT)) /* tell filesystem the expected fi...
2017 Dec 21
2
[bug report] null ptr deref in nouveau_platform_probe (tegra186-p2771-0000)
...303] W> Return default slot: _a [0000.307] I> A/B: bin_type (16) slot 0 [0000.310] I> Select partition: bpmp-fw [0000.314] I> Loading partition bpmp-fw at 0xf7600000 [0000.319] I> Reading two headers - addr:0xf7600000 blocks:1 [0000.324] I> Addr: 0xf7600000, start-block: 58739717, num_blocks: 1 [0000.339] I> Binary(16) of size 524480 is loaded @ 0xf7600000 [0000.345] W> No valid slot number is found in scratch register [0000.351] W> Return default slot: _a [0000.354] I> A/B: bin_type (17) slot 0 [0000.358] I> Select partition: bpmp-fw-dtb [0000.362] I> Loading partiti...
2006 Aug 21
1
[PATCH] Memory issue and cast causing failures when adding metadata
Hi, We are using the libFLAC++ library to encode FLAC files with Vorbis comments in them and have had the FLAC 1.1.2 version fail consistently (access violation or segmentation fault) on both Windows and Linux. We tracked this down to the metadata code in the C++ API. The problem is in src/libFLAC++/file_encoder.cpp. There are two problems - firstly, a C-style cast is hiding a bad conversion