Displaying 20 results from an estimated 57 matches for "min_size".
Did you mean:
in_size
2023 Apr 16
4
[PATCH net] virtio-net: reject small vring sizes
...et/virtio_net.c b/drivers/net/virtio_net.c
index 2396c28c012..59676252c5c 100644
--- a/drivers/net/virtio_net.c
+++ b/drivers/net/virtio_net.c
@@ -3745,6 +3745,26 @@ static int init_vqs(struct virtnet_info *vi)
return ret;
}
+static int virtnet_validate_vqs(struct virtnet_info *vi)
+{
+ u32 i, min_size = roundup_pow_of_two(MAX_SKB_FRAGS + 2);
+
+ /* Transmit/Receive vring size must be at least MAX_SKB_FRAGS + 2
+ * (fragments + linear part + virtio header)
+ */
+ for (i = 0; i < vi->max_queue_pairs; i++) {
+ if (virtqueue_get_vring_size(vi->sq[i].vq) < min_size ||
+ virtqueue_...
2013 Nov 19
6
[PATCH 2/5] X86 architecture instruction set extension definiation
.../arch/x86/xstate.c
index 9e74929..1fd43c9 100644
--- a/xen/arch/x86/xstate.c
+++ b/xen/arch/x86/xstate.c
@@ -253,7 +253,7 @@ void xstate_free_save_area(struct vcpu *v)
/* Collect the information of processor''s extended state */
void xstate_init(bool_t bsp)
{
- u32 eax, ebx, ecx, edx, min_size;
+ u32 eax, ebx, ecx, edx;
u64 feature_mask;
if ( boot_cpu_data.cpuid_level < XSTATE_CPUID )
@@ -269,12 +269,6 @@ void xstate_init(bool_t bsp)
BUG_ON((eax & XSTATE_YMM) && !(eax & XSTATE_SSE));
feature_mask = (((u64)edx << 32) | eax) & XCNTXT_MA...
2024 Mar 18
0
[PATCH] add option to skip files based on age/mtime
..., so rsync would still
transfer it even though that wasn't what was wanted.
diff --git a/generator.c b/generator.c
index 110db28f..22f0973f 100644
--- a/generator.c
+++ b/generator.c
@@ -70,6 +70,8 @@ extern int ignore_times;
extern int size_only;
extern OFF_T max_size;
extern OFF_T min_size;
+extern int max_age;
+extern int min_age;
extern int io_error;
extern int flist_eof;
extern int allowed_lull;
@@ -1706,6 +1708,23 @@ static void recv_generator(char *fname, struct
file_struct *file, int ndx,
goto cleanup;
}
+ if (max_age > 0 && time(NULL)-file->modtime...
2005 Apr 25
2
How about a --min-size option, next to --max-size
There's a rather old bug report in Debian's bug tracking system
(see http://bugs.debian.org/27126) about wanting to be able to specify
the maximum file size, as well as the minimum file size. Here's the
text:
Sometimes, it's useful to specify a file size range one is
interested in.
For example, I'd like to keep an up-to-date mirror of Debian, but I
currently
2013 Nov 25
0
[PATCH 2/4 V2] X86: enable support for new ISA extensions
.../arch/x86/xstate.c
index 9e74929..7d9b92b 100644
--- a/xen/arch/x86/xstate.c
+++ b/xen/arch/x86/xstate.c
@@ -253,7 +253,7 @@ void xstate_free_save_area(struct vcpu *v)
/* Collect the information of processor''s extended state */
void xstate_init(bool_t bsp)
{
- u32 eax, ebx, ecx, edx, min_size;
+ u32 eax, ebx, ecx, edx;
u64 feature_mask;
if ( boot_cpu_data.cpuid_level < XSTATE_CPUID )
@@ -269,12 +269,6 @@ void xstate_init(bool_t bsp)
BUG_ON((eax & XSTATE_YMM) && !(eax & XSTATE_SSE));
feature_mask = (((u64)edx << 32) | eax) & XCNTXT_MA...
2009 May 28
1
[PATCH node] REPOST Joey's patch missed by previous repost
ACK, pushed.
2012 Jan 05
4
[RFC][PATCH 3/3] Btrfs: improve truncation of btrfs
...e(struct inode *inode)
+static int btrfs_truncate(struct inode *inode, loff_t newsize)
{
struct btrfs_root *root = BTRFS_I(inode)->root;
- struct btrfs_block_rsv *rsv;
int ret;
int err = 0;
struct btrfs_trans_handle *trans;
unsigned long nr;
u64 mask = root->sectorsize - 1;
- u64 min_size = btrfs_calc_trunc_metadata_size(root, 1);
-
- ret = btrfs_truncate_page(inode->i_mapping, inode->i_size);
- if (ret)
- return ret;
-
- btrfs_wait_ordered_range(inode, inode->i_size & (~mask), (u64)-1);
- btrfs_ordered_update_i_size(inode, inode->i_size, NULL);
/*
* Yes ladi...
2008 Jul 10
2
A couple of dovecot issues I've noted recently...
...i_internal_fatal_handler (status=83, fmt=0x0,
args=0x76b95d8 "\020") at failures.c:410
#14508 0x080b1e1e in i_fatal_status (status=83,
format=0x80cdd64 "mem_block_alloc(): Out of memory when allocating %u bytes") at failures.c:201
#14509 0x080b1652 in mem_block_alloc (min_size=0) at data-stack.c:192
#14510 0x080b1811 in t_malloc_real (size=16, permanent=true)
at data-stack.c:244
#14511 0x080b1890 in t_malloc0 (size=16) at data-stack.c:279
#14512 0x080b8715 in pool_datastack_create () at mempool-datastack.c:51
#14513 0x080bda2b in t_str_new (initial_size=512) at str.c...
2010 Apr 26
0
[PATCH V2 11/12] Btrfs: Pre-allocate space for data relocation
...trfs_cont_expand(struct inode *inod
int btrfs_invalidate_inodes(struct btrfs_root *root);
void btrfs_add_delayed_iput(struct inode *inode);
void btrfs_run_delayed_iputs(struct btrfs_root *root);
+int btrfs_prealloc_file_range(struct inode *inode, int mode,
+ u64 start, u64 num_bytes, u64 min_size,
+ loff_t actual_len, u64 *alloc_hint);
extern const struct dentry_operations btrfs_dentry_operations;
/* ioctl.c */
diff -urp 2/fs/btrfs/inode.c 3/fs/btrfs/inode.c
--- 2/fs/btrfs/inode.c 2010-04-26 17:28:20.489839672 +0800
+++ 3/fs/btrfs/inode.c 2010-04-26 17:28:20.500829420 +0800
@@ -...
2007 Mar 19
0
[900] branches/wxruby2/wxwidgets_282/swig/classes: Initial commit of AUI core classes
...tFloatingSize) wxAuiPaneInfo::FloatingSize(int x, int y);
+
+%immutable wxAuiPaneInfo::max_size;
+%rename(GetMaxSize) wxAuiPaneInfo::max_size;
+%rename(SetMaxSize) wxAuiPaneInfo::MaxSize(const wxSize& size);
+%rename(SetMaxSize) wxAuiPaneInfo::MaxSize(int x, int y);
+
+%immutable wxAuiPaneInfo::min_size;
+%rename(GetMinSize) wxAuiPaneInfo::min_size;
+%rename(SetMinSize) wxAuiPaneInfo::MinSize(const wxSize& size);
+%rename(SetMinSize) wxAuiPaneInfo::MinSize(int x, int y);
+
+%immutable wxAuiPaneInfo::name;
+%rename(GetName) wxAuiPaneInfo::name;
+%rename(SetName) wxAuiPaneInfo::Name(const wxStri...
2005 May 20
1
How to specify sample sizes?
...during codec
setup. In Vorbis I, legal frame sizes are powers of two from 64 to 8192
samples. Aside from coupling, Vorbis handles channels as independent
vectors and these frame sizes are in samples per channel."
I want to explicitly specify the sample size, so, how can I do it?
Can I set min_size == max_size?
If so, is there any disadvantage? which ?
Thanks,
Nico
2007 Apr 04
1
wx layout with sugar
I''m sure this will be user error on my part, but I can''t seem to get the
following to layout properly.
Basically, I want the p1 to fill the available space and p2 to be as small
as possible (with the root panel filling all the available space). With
the following code, the buttons in the p2 end up being truncated, (i.e.
the bottom line is missing).
Where am I going
2010 Feb 11
3
[PATCH node] remove ipv4 validation for ntp and rely on actual ntp verification
---
scripts/ovirt-config-networking | 13 ++++++-------
scripts/ovirt-functions | 16 ++++++++++++++++
2 files changed, 22 insertions(+), 7 deletions(-)
diff --git a/scripts/ovirt-config-networking b/scripts/ovirt-config-networking
index ec154c2..40a2d2c 100755
--- a/scripts/ovirt-config-networking
+++ b/scripts/ovirt-config-networking
@@ -414,12 +414,7 @@ function configure_ntp
2015 Nov 28
0
[PATCH] ignore-non-existing-directory: add variant of ignore-non-existing
...s \"%s\"\n",
+ is_dir ? "directory" : "file", fname);
+ }
+ return;
}
- return;
}
if (statret == 0 && !(sx.st.st_mode & S_IWUSR)
@@ -2109,6 +2116,7 @@ void check_for_finished_files(int itemizing, enum logcode code, int check_redo)
min_size = -1;
ignore_existing = -ignore_existing;
ignore_non_existing = -ignore_non_existing;
+ ignore_non_existing_dirs = -ignore_non_existing_dirs;
update_only = -update_only;
always_checksum = -always_checksum;
size_only = -size_only;
@@ -2134,6 +2142,7 @@ void check_for_finished_f...
2016 Jan 16
0
[PATCH v2, resend] ignore-non-existing-directory: add variant of ignore-non-existing
...s \"%s\"\n",
+ is_dir ? "directory" : "file", fname);
+ }
+ return;
}
- return;
}
if (statret == 0 && !(sx.st.st_mode & S_IWUSR)
@@ -2109,6 +2116,7 @@ void check_for_finished_files(int itemizing, enum logcode code, int check_redo)
min_size = -1;
ignore_existing = -ignore_existing;
ignore_non_existing = -ignore_non_existing;
+ ignore_non_existing_dirs = -ignore_non_existing_dirs;
update_only = -update_only;
always_checksum = -always_checksum;
size_only = -size_only;
@@ -2134,6 +2142,7 @@ void check_for_finished_f...
2015 Nov 28
0
[PATCH v2] ignore-non-existing-directory: add variant of ignore-non-existing
...s \"%s\"\n",
+ is_dir ? "directory" : "file", fname);
+ }
+ return;
}
- return;
}
if (statret == 0 && !(sx.st.st_mode & S_IWUSR)
@@ -2109,6 +2116,7 @@ void check_for_finished_files(int itemizing, enum logcode code, int check_redo)
min_size = -1;
ignore_existing = -ignore_existing;
ignore_non_existing = -ignore_non_existing;
+ ignore_non_existing_dirs = -ignore_non_existing_dirs;
update_only = -update_only;
always_checksum = -always_checksum;
size_only = -size_only;
@@ -2134,6 +2142,7 @@ void check_for_finished_f...
2006 Sep 07
7
counting occurences of words in the result set
Hello, I need to be able to count the occurences of certain terms in the
reults.
Currently my setup is Ferret 0.10.1 aaf bleeding edge.
results = VoObject.find_by_contents(query,:offset=>page, :limit=>
20,:sort => sort_fields)
I use results.total_hits for pagination. This all works really nicely.
However i need to be able to know how many occurences of certain
predefined terms occur
2008 Jul 30
0
Halt file upload if maximum size is reached. Is that possible?
...rently possible, but I don''t want to use
flash.
One way to do it is via Apache configuration.
But, is there any other way to stop the transfer?
I considered attachment_fu, which says in its config:
"validates_as_attachment -- This method prevents files outside of the
valid range (:min_size to :max_size, or the :size range) from being
saved. It does not however, halt the upload of such files. They will
be uploaded into memory regardless of size before validation."
So, in attachment_fu, this isn''t possible.
MAX_FILE_SIZE worked for PHP, but for Rails, apparently it doe...
2020 Sep 15
0
[PATCH 17/18] dma-iommu: implement ->alloc_noncoherent
...truct iommu_dma_cookie *cookie = domain->iova_cookie;
struct iova_domain *iovad = &cookie->iovad;
bool coherent = dev_is_dma_coherent(dev);
int ioprot = dma_info_to_prot(DMA_BIDIRECTIONAL, coherent, attrs);
- pgprot_t prot = dma_pgprot(dev, PAGE_KERNEL, attrs);
unsigned int count, min_size, alloc_sizes = domain->pgsize_bitmap;
struct page **pages;
struct sg_table sgt;
@@ -1030,8 +1031,10 @@ static void *iommu_dma_alloc(struct device *dev, size_t size,
gfp |= __GFP_ZERO;
if (IS_ENABLED(CONFIG_DMA_REMAP) && gfpflags_allow_blocking(gfp) &&
- !(attrs &...
2018 Jan 29
1
Panic: data stack: Out of memory when allocating bytes
...ce now is:
>
> --- snip ---
> (gdb) bt full
> #0? 0x00007f73f1386495 in raise () from /lib64/libc.so.6
> No symbol table info available.
> #1? 0x00007f73f1387c75 in abort () from /lib64/libc.so.6
> No symbol table info available.
> #2? 0x00007f73f17ab822 in mem_block_alloc (min_size=520) at
> data-stack.c:356
> ??????? block = <value optimized out>
> ??????? prev_size = <value optimized out>
> ??????? alloc_size = 134217728
> #3? 0x00007f73f17abc18 in t_malloc_real (size=<value optimized out>,
> permanent=true) at data-stack.c:415
>...