search for: sblock

Displaying 13 results from an estimated 13 matches for "sblock".

Did you mean: block
2011 Dec 14
2
[LLVMdev] Generating superblocks (SEME regions w/o loops and calls) in LLVM
...ops in their definition of superblocks). This is necessary to get the largest piece of IR in which the memory operations can be enumerated in order to record the addresses of the memory accesses into a fixed-size buffer. So far I was using my home-brewed structure to hold the superblocks: struct SBlock { BlockSet blocks; llvm::BasicBlock *entry; BlockSet exits; InstSet mops_to_instrument; int num_mops; SBlock() : num_mops(0) {} }; and several functions that split basic blocks to eliminate calls from them, traverse the call graph and create the SBlock instances from the basic blocks....
2012 May 03
1
[PATCH] Btrfs: fix crash in scrub repair code when device is missing
...ster.de> --- fs/btrfs/scrub.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/fs/btrfs/scrub.c b/fs/btrfs/scrub.c index b679bf6..7e487be 100644 --- a/fs/btrfs/scrub.c +++ b/fs/btrfs/scrub.c @@ -998,6 +998,7 @@ static int scrub_setup_recheck_block(struct scrub_dev *sdev, page = sblock->pagev + page_index; page->logical = logical; page->physical = bbio->stripes[mirror_index].physical; + /* for missing devices, bdev is NULL */ page->bdev = bbio->stripes[mirror_index].dev->bdev; page->mirror_num = mirror_index + 1; page->page = alloc...
2008 Feb 01
2
How to read group descriptor?
...ypes.h> #include<sys/stat.h> #include<stdio.h> #include<unistd.h> #include<fcntl.h> #include<stdlib.h> #include<string.h> #define block_size 4096 #define boot_block_size 1024 int main() { char *buff = (char *)malloc(block_size); struct ext3_super_block * sblock = (struct ext3_super_block *)malloc(sizeof(struct ext3_super_block)); struct ext3_group_desc * gdesc = (struct ext3_group_desc *)malloc(sizeof(struct ext3_group_desc)); int fd = open("/dev/hda3",O_RDONLY); lseek(fd,boot_block_size,SEEK_CUR); //skip the boot block read(fd,buff,...
2015 Jun 12
4
[LLVMdev] Loop Vectorization and Store-Load Forwarding issue
..." << Distance << " that could cause a store-load forwarding conflict\n"); return true; } ---------------------------- Part B: typedef unsigned long long uint64; void foo(const unsigned char *m, unsigned int block, uint64 y[80]) { const unsigned char *sblock; int i, j; for (i = 0; i < (int) block; i++) { sblock = m + (i << 7); for (j = 16; j < 80; j++) { y[j] = y[j - 2] + y[j - 15] ; } } } Part C: <snip> from the debug dump during the LoopAccessAnalysis phase: LAA: Checking memory depe...
2012 May 25
6
[PATCH v5 0/3] Btrfs: add IO error device stats
Changes v1-v2: - Remove restriction that BTRFS_IOC_GET_DEVICE_STATS is a privileged operation - Cast u64 to unsigned long long for printf() Changes v2-v3: - Rebased on Chris'' current master Changes v3-v4: - Add padding at end of ioctl structure Changes v4-v5: - The statistic members in the ioctl are now organized as an array of 64 bit values. Symbolic names for the array indexes
2006 Nov 17
1
gjournal on 6.x wont build
Hi all, I was intending on trying out gjournal on a new disk i've added in my desktop. I had a look to see what the most recent patch provided by Pawel and found http://people.freebsd.org/~pjd/patches/gjournal6_20061024.patch I created the directories as per Pawel's original post (http://lists.freebsd.org/pipermail/freebsd-fs/2006-June/001962.html) and the patch succeeded with no failed
2020 Aug 11
3
[PATCH v3] virtio-rng: return available data with O_NONBLOCK
...++; > bytes += rd; > write(1, buf, sizeof(buf)); > } > } else if (rc == -1) { > if (errno != EINTR) > perror("poll"); > break; > } else > fprintf(stderr, "poll: timeout\n"); > } > fprintf(stderr, > "pid %d %sblocking, bufsize %d, %d seconds, %lu bytes read, %lu success, %lu eagain, %lu errors\n", > getpid(), CONDITION ? "non-" : "", size, sec, bytes, succ, eagains, errors); > } > > int main(void) > { > int fd; > > fork(); fork(); > fd = open("/d...
2020 Aug 11
3
[PATCH v3] virtio-rng: return available data with O_NONBLOCK
...++; > bytes += rd; > write(1, buf, sizeof(buf)); > } > } else if (rc == -1) { > if (errno != EINTR) > perror("poll"); > break; > } else > fprintf(stderr, "poll: timeout\n"); > } > fprintf(stderr, > "pid %d %sblocking, bufsize %d, %d seconds, %lu bytes read, %lu success, %lu eagain, %lu errors\n", > getpid(), CONDITION ? "non-" : "", size, sec, bytes, succ, eagains, errors); > } > > int main(void) > { > int fd; > > fork(); fork(); > fd = open("/d...
2008 Sep 11
13
PV-GRUB - Does not read partition-less disk
Hi folks PV-GRUB built from Xen 3.3.0 is not able to read from devices without a partition table: | grubdom> root (hd0) | Filesystem type unknown, using whole disk Part of the config: | disk = [ "phy:vg0_sledgehammer/servext_root,xvda,w" ] Device: | # file -s /dev/vg0_sledgehammer/servext_root | /dev/vg0_sledgehammer/servext_root: symbolic link to
2020 Aug 11
0
[PATCH v2] virtio-rng: return available data with O_NONBLOCK
...++; > bytes += rd; > write(1, buf, sizeof(buf)); > } > } else if (rc == -1) { > if (errno != EINTR) > perror("poll"); > break; > } else > fprintf(stderr, "poll: timeout\n"); > } > fprintf(stderr, > "pid %d %sblocking, bufsize %d, %d seconds, %lu bytes read, %lu success, %lu eagain, %lu errors\n", > getpid(), CONDITION ? "non-" : "", size, sec, bytes, succ, eagains, errors); > } > > int main(void) > { > int fd; > > fork(); fork(); > fd = open("/d...
2020 Aug 11
0
[PATCH v2] virtio-rng: return available data with O_NONBLOCK
...(1, buf, sizeof(buf)); >> } >> } else if (rc == -1) { >> if (errno != EINTR) >> perror("poll"); >> break; >> } else >> fprintf(stderr, "poll: timeout\n"); >> } >> fprintf(stderr, >> "pid %d %sblocking, bufsize %d, %d seconds, %lu bytes read, %lu success, %lu eagain, %lu errors\n", >> getpid(), CONDITION ? "non-" : "", size, sec, bytes, succ, eagains, errors); >> } >> >> int main(void) >> { >> int fd; >> >> fork(); fo...
2020 Aug 31
0
[PATCH v3] virtio-rng: return available data with O_NONBLOCK
...-1) { >>>> if (errno != EINTR) >>>> perror("poll"); >>>> break; >>>> } else >>>> fprintf(stderr, "poll: timeout\n"); >>>> } >>>> fprintf(stderr, >>>> "pid %d %sblocking, bufsize %d, %d seconds, %lu bytes >>>> read, %lu success, %lu eagain, %lu errors\n", >>>> getpid(), CONDITION ? "non-" : "", size, sec, bytes, >>>> succ, eagains, errors); >>>> } >>>> >>>> int mai...
2013 Jul 24
1
NFS deadlock on 9.2-Beta1
Two machines (NFS Server: running ZFS / Client: disk-less), both are running FreeBSD r253506. The NFS client starts to deadlock processes within a few hours. It usually gets worse from there on. The processes stay in "D" state. I haven't been able to reproduce it when I want it to happen. I only have to wait a few hours until the deadlocks occur when traffic to the client machine