Displaying 20 results from an estimated 44 matches for "nblock".
Did you mean:
block
2017 Jul 26
2
[PATCH] virtio_blk: fix incorrect message when disk is resized
.../block/virtio_blk.c
+++ b/drivers/block/virtio_blk.c
@@ -381,6 +381,7 @@ static void virtblk_config_changed_work(struct work_struct *work)
struct request_queue *q = vblk->disk->queue;
char cap_str_2[10], cap_str_10[10];
char *envp[] = { "RESIZE=1", NULL };
+ unsigned long long nblocks;
u64 capacity;
/* Host must always specify the capacity. */
@@ -393,16 +394,19 @@ static void virtblk_config_changed_work(struct work_struct *work)
capacity = (sector_t)-1;
}
- string_get_size(capacity, queue_logical_block_size(q),
+ nblocks = DIV_ROUND_UP_ULL(capacity, queue_logical_...
2017 Jul 26
2
[PATCH] virtio_blk: fix incorrect message when disk is resized
.../block/virtio_blk.c
+++ b/drivers/block/virtio_blk.c
@@ -381,6 +381,7 @@ static void virtblk_config_changed_work(struct work_struct *work)
struct request_queue *q = vblk->disk->queue;
char cap_str_2[10], cap_str_10[10];
char *envp[] = { "RESIZE=1", NULL };
+ unsigned long long nblocks;
u64 capacity;
/* Host must always specify the capacity. */
@@ -393,16 +394,19 @@ static void virtblk_config_changed_work(struct work_struct *work)
capacity = (sector_t)-1;
}
- string_get_size(capacity, queue_logical_block_size(q),
+ nblocks = DIV_ROUND_UP_ULL(capacity, queue_logical_...
2017 Dec 29
3
winbuilder warning message wrt function pointers
...9;ve recently updated the coxme package, which calls internal routines from the bdsmatrix
package.? (It is in fact mentioned as an example of this in the Extensions manual.)
The call connections are a blocks like this, one for each of the 9 called C routines.
void bdsmatrix_prod4(int nrow,??? int nblock,?? int *bsize,
??????????????????? double *bmat, double *rmat,
??????????????????? int nfrail,?? double *y) {
??? static void (*fun)() = NULL;
??? if (fun==NULL)
??? fun = (void (*)) R_GetCCallable("bdsmatrix", "bdsmatrix_prod4");
??? fun(nrow, nblock, bsize, bmat, rmat, n...
2004 Jun 20
2
[PATCH] fixup journal-related ifdef mess
...==================================================================
--- src/journal.c (revision 1156)
+++ src/journal.c (working copy)
@@ -105,9 +105,17 @@
return status;
}
-#else
-#define ocfs_journal_start journal_start
-#define ocfs_journal_stop journal_stop
+
+#define journal_start(journal, nblocks) \
+ ocfs_journal_start(journal, nblocks)
+#define journal_stop(handle) \
+ ocfs_journal_stop(handle)
+
+/* these two gained another argument during 2.6 */
+#define journal_get_write_access(handle, bh, credits) \
+ journal_get_write_access(handle, bh)
+#define journal_get_undo_access(handle, bh, c...
2009 Jun 10
1
Weird behavior in receive_data function
...ll appreciated.
Below is my code segment to generate file for test.
My Procedure (file 1 and file 2 have the same name, just binary
difference):
Step 1: backup File 1
Step 2: backup Fil 2
--
Daniel Li
File 1:
This is the first time backup file.
> count = 1;
> nSize = 1;
> nBlock = 256;
> nInterval = 4;
> nAdjust = 256;
>
> printf("\nstart to build origin files!\n");
> ch = 0;
> for(l = 0; l < count; l++)
> {
> memset(buffer,0, 256);
> sprintf(buffer,"media-test-3MB-file/origin/test/test%02d.dat",l);
>...
2010 Aug 04
6
[PATCH -v2 0/3] jbd2 scalability patches
This version fixes three bugs in the 2nd patch of this series that
caused kernel BUG when the system was under race. We weren't accounting
with t_oustanding_credits correctly, and there were race conditions
caused by the fact the I had overlooked the fact that
__jbd2_log_wait_for_space() and jbd2_get_transaction() requires
j_state_lock to be write locked.
Theodore Ts'o (3):
jbd2: Use
2017 Dec 29
1
winbuilder warning message wrt function pointers
And remove the cast on the return value of R_GETCCallable. And check
that your function is found before using it.
#include <R.h>
#include <Rinternals.h>
#include <R_ext/Rdynload.h>
void bdsmatrix_prod4(int nrow, int nblock, int *bsize,
double *bmat, double *rmat,
int nfrail, double *y) {
DL_FUNC fun = NULL;
if (fun==NULL) {
fun = R_GetCCallable("bdsmatrix", "bdsmatrix_prod4");
}
if (fun==NULL) {
Rf_error("Cannot find...
2017 Aug 04
0
[PATCH] virtio_blk: fix incorrect message when disk is resized
.../drivers/block/virtio_blk.c
> @@ -381,6 +381,7 @@ static void virtblk_config_changed_work(struct work_struct *work)
> struct request_queue *q = vblk->disk->queue;
> char cap_str_2[10], cap_str_10[10];
> char *envp[] = { "RESIZE=1", NULL };
> + unsigned long long nblocks;
> u64 capacity;
>
> /* Host must always specify the capacity. */
> @@ -393,16 +394,19 @@ static void virtblk_config_changed_work(struct work_struct *work)
> capacity = (sector_t)-1;
> }
>
> - string_get_size(capacity, queue_logical_block_size(q),
> + nblock...
2005 Nov 17
2
dev.copy legend problem
...ng, and so ask for your help.
We are plotting 2 graphs in a postscript device (left part -layout
function-), and the common legend for these graphs on the right part.
The legend in the postscript device looks ok: this is color lines with
numbers on the right (6 columns) , see the code below:
> nblock<-c(1:48)
> leg<-paste(c(1:npin)," ",sep=" ")
> legend(0,19,legend = leg, col=rainbow(nblock), lty=1,
merge=TRUE,ncol=6,bty="n",cex=0.6)
The problem we are facing is that we dev.copy to a pdf device and then, the
legend doesn't look the same: numbers ov...
2014 May 29
0
[PATCH 2/2] core/fs: Add support for Unix File system 1/2.
...{
+ uint64_t addr = 0;
+
+ memcpy((uint8_t *) &addr,
+ (uint8_t *) blk + (index << shift),
+ 1 << shift);
+
+ return addr;
+}
+
+/*
+ * Scan forward in a range of blocks to see if they are contiguous,
+ * then return the initial value.
+ */
+static uint64_t
+scan_set_nblocks(const uint8_t *map, uint32_t index, uint32_t addr_shift,
+ unsigned int count, size_t *nblocks)
+{
+ uint64_t addr;
+ uint64_t blk = get_blkaddr(map, index, addr_shift);
+
+ /*
+ * Block spans 8 fragments, then address is interleaved by 8.
+ * This code works for either 32/64 s...
2013 Jul 12
1
[PATCH 001/001] core/fs: Add support to Unix File system 1/2.
...{
+ uint64_t addr = 0;
+
+ memcpy((uint8_t *) &addr,
+ (uint8_t *) blk + (index << shift),
+ 1 << shift);
+
+ return addr;
+}
+
+/*
+ * Scan forward in a range of blocks to see if they are contiguous,
+ * then return the initial value.
+ */
+static uint64_t
+scan_set_nblocks(const uint8_t *map, uint32_t index, uint32_t addr_shift,
+ unsigned int count, size_t *nblocks)
+{
+ uint64_t addr;
+ uint64_t blk = get_blkaddr(map, index, addr_shift);
+
+ /*
+ * Block spans 8 fragments, then address is interleaved by 8.
+ * This code works for either 32/64 s...
2017 Dec 29
0
winbuilder warning message wrt function pointers
...am Dunlap wrote:
>
> And remove the cast on the return value of R_GETCCallable. And check
> that your function is found before using it.
>
> #include <R.h>
> #include <Rinternals.h>
> #include <R_ext/Rdynload.h>
>
> void bdsmatrix_prod4(int nrow, int nblock, int *bsize,
> double *bmat, double *rmat,
> int nfrail, double *y) {
> DL_FUNC fun = NULL;
> if (fun==NULL) {
> fun = R_GetCCallable("bdsmatrix", "bdsmatrix_prod4");
> }
> if (fun==NULL) {...
2013 Jun 19
1
[PATCH] fs/jbd2: t_updates should increase when start_this_handle() failed in jbd2__journal_restart()
...huawei.com>
---
fs/jbd2/transaction.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/fs/jbd2/transaction.c b/fs/jbd2/transaction.c
index 325bc01..9ddb444 100644
--- a/fs/jbd2/transaction.c
+++ b/fs/jbd2/transaction.c
@@ -530,6 +530,8 @@ int jbd2__journal_restart(handle_t *handle, int nblocks, gfp_t gfp_mask)
lock_map_release(&handle->h_lockdep_map);
handle->h_buffer_credits = nblocks;
ret = start_this_handle(journal, handle, gfp_mask);
+ if (ret < 0)
+ atomic_inc(&transaction->t_updates);
return ret;
}
EXPORT_SYMBOL(jbd2__journal_restart);
--
1.7.9.7
2014 May 29
3
[PATCH 0/2] UFS1/2 support series
From: Raphael S. Carvalho <raphael.scarv at gmail.com>
Wrote the documentation below. I think it would be good to push the doc to
the wiki as soon as the UFS support gets merged.
Unix Fast File System (UFS/FFS) 1/2 on Syslinux - (usage/install)
-----
There is a confusion about the name of this file system, then I decided to
contact the author who replied:
"The name has always been
2006 Jul 26
9
zfs questions from Sun customer
Please reply to david.curtis at sun.com
******** Background / configuration **************
zpool will not create a storage pool on fibre channel storage. I''m
attached to an IBM SVC using the IBMsdd driver. I have no problem using
SVM metadevices and UFS on these devices.
List steps to reproduce the problem(if applicable):
Build Solaris 10 Update 2 server
Attach to an external
2001 Oct 07
2
ext3 and ls in a deletted directory
Hi,
With kernel 2.4.10, when I do
$ mkdir foo; cd foo; rmdir ../foo; ls
then ls becomes zombie.
$ ps xau|grep ls
liu 596 0.0 0.0 148 88 ? D 12:03 0:00 ls
This does not happen with 2.4.10 on an ext2 filesystem,
nor with 2.4.9/ext3. The command cd instead of ls is OK.
Distribution is Slackware 8.0 and the kernels are stock ones.
Liu
2018 Jan 03
1
[PATCH] virtio_blk: print capacity at probe time
...esize)
{
- struct virtio_blk *vblk =
- container_of(work, struct virtio_blk, config_work);
struct virtio_device *vdev = vblk->vdev;
struct request_queue *q = vblk->disk->queue;
char cap_str_2[10], cap_str_10[10];
- char *envp[] = { "RESIZE=1", NULL };
unsigned long long nblocks;
u64 capacity;
@@ -402,13 +400,24 @@ static void virtblk_config_changed_work(struct work_struct *work)
STRING_UNITS_10, cap_str_10, sizeof(cap_str_10));
dev_notice(&vdev->dev,
- "new size: %llu %d-byte logical blocks (%s/%s)\n",
+ "[%s] %s%llu %d-byte logi...
2013 Mar 02
0
[GIT-PULL] ext4 inline data support
...core/fs/ext2/bmap.c
@@ -10,6 +10,7 @@
#include <fs.h>
#include <disk.h>
#include <cache.h>
+#include "assert.h"
#include "ext2_fs.h"
static const struct ext4_extent_header *
@@ -178,7 +179,6 @@ bmap_traditional(struct inode *inode, block_t block, size_t *nblocks)
return 0;
}
-
/**
* Map the logical block to physic block where the file data stores.
* In EXT4, there are two ways to handle the map process, extents and indirect.
@@ -203,7 +203,6 @@ block_t ext2_bmap(struct inode *inode, block_t block, size_t *nblocks)
return ret;
}
-
/*...
2014 May 29
3
[PATCH v2 0/2] UFS1/2 support series
From: Raphael S. Carvalho <raphael.scarv at gmail.com>
Change since v1:
* Fix bug on dentry structure (thank you specification; btw, sarcasm), and
consequently a bug on ufs_readdir.
* Add readlink support (applied tests for symlinks whose destionation path
were stored in blk pointers and the file itself).
* Several improvements.
Wrote the documentation below. I think it would be good to
2010 Apr 07
1
Struggeling with svydesign()
..., then
we get an error: "a stratum has only 1 PSU". Shouldn't we get the same
error with the code above?
#with finity population correction
svydesign(
id = ~ 1, #no clustering
weights = ~ Area, #weighted by the area of the polygon
strata = ~ Status + Block + Type,
fpc ~ nStatus + nBlock + nType,
nest = TRUE
)
#We are not sure what to use for nStatus, nBlock and nType. Is it the
number of levels of that stratum (nStatus = 2)? The number of levels in
the stratum below (nStatus = length(unique(Block)) per level of Status,
nType = number of polygons per Status:Block:Type)? The total...