Displaying 16 results from an estimated 16 matches for "bytes_left".
2012 Aug 31
0
[PATCH v3] Btrfs-progs: add options to change bufsize in logical to inode translation
...s used to increase inode",
+ " container''s size in case it is not enough to read all the ",
+ " resolved results. The max value one can set is 64k",
NULL
};
@@ -130,12 +135,13 @@ static int cmd_logical_resolve(int argc, char **argv)
int bytes_left;
struct btrfs_ioctl_logical_ino_args loi;
struct btrfs_data_container *inodes;
+ u64 size = 4096;
char full_path[4096];
char *path_ptr;
optind = 1;
while (1) {
- int c = getopt(argc, argv, "Pv");
+ int c = getopt(argc, argv, "Pvs:");
if (c < 0)
break;...
2016 Jan 19
6
FWD: [patch] scp + UTF-8
...e "atomicio.h"
@@ -117,7 +119,7 @@ format_size(char *buf, int size, off_t b
void
refresh_progress_meter(void)
{
- char buf[MAX_WINSIZE + 1];
+ char buf[(MAX_WINSIZE * 4) + 1];
time_t now;
off_t transferred;
double elapsed;
@@ -125,8 +127,10 @@ refresh_progress_meter(void)
off_t bytes_left;
int cur_speed;
int hours, minutes, seconds;
- int i, len;
- int file_len;
+ int width, size, buf_width, buf_size;
+ int i;
+ int file_width;
+ wchar_t wc;
transferred = *counter - (cur_pos ? cur_pos : start_pos);
cur_pos = *counter;
@@ -157,16 +161,33 @@ refresh_progress_meter(void)...
2011 Jul 07
5
[PATCH v1 0/2] Btrfs-progs: commands "resolve inode" and "resolve logical"
The kernel patch series just sent (Subject: "Btrfs: scrub: print path to
corrupted files and trigger nodatasum fixup") introduces two new ioctls to
do in-kernel filesystem path construction. This series provides the
corresponding userspace changes, adding two new commands to the btrfs utility:
--
btrfs resolve inode [-v] <inode> <path>
resolves an <inode> to all
2007 Nov 09
1
Patch for progressmeter.c
.../* terminal window size */
@@ -128,11 +130,16 @@ refresh_progress_meter(void)
int hours, minutes, seconds;
int i, len;
int file_len;
+ off_t delta_pos;
transferred = *counter - cur_pos;
cur_pos = *counter;
now = time(NULL);
bytes_left = end_pos - cur_pos;
+
+ delta_pos = cur_pos - last_pos;
+ if (delta_pos > max_delta_pos)
+ max_delta_pos = delta_pos;
if (bytes_left > 0)
elapsed = now - last_update;
@@ -158,7 +165,7 @@ refresh_progress_meter(void)
/* filename *...
2013 Apr 24
1
Logical/i-nodes lookups give "path resolving failed with ret=-2"
...42385408 on dev
/dev/root, sector 102196320, root 684, inode 60676040, offset
352583680: path resolving failed with ret=-2
[51078.683016] btrfs: bdev /dev/root errs: wr 0, rd 0, flush 0,
corrupt 35782, gen 0
Manual lookup :
# btrfs inspect-internal logical-resolve -v 51241746432 /
ioctl ret=0, bytes_left=4080, bytes_missing=0, cnt=0, missed=0
# ./btrfs inspect-internal inode-resolve 60676040 /
ioctl ret=-1, error: No such file or directory
Kernel is Linux 3.9-rc8, latest btrfs-progs from Chris Mason''s Git repository.
I am sure I am missing something but I am unable to figure out
what......
2009 Oct 25
0
alternate output for progressmeter
...-195,7 +198,7 @@
? ? ? ? ? ? ? ?stalled = 0;
? ? ? ?if (stalled >= STALL_TIME)
- ? ? ? ? ? ? ? strlcat(buf, "- stalled -", win_size);
+ ? ? ? ? ? ? ? strlcat(buf, (progresstype)?"-stalled-":"- stalled -",
win_size);
? ? ? ?else if (bytes_per_second == 0 && bytes_left)
? ? ? ? ? ? ? ?strlcat(buf, " ?--:-- ETA", win_size);
? ? ? ?else {
@@ -219,10 +222,14 @@
? ? ? ? ? ? ? ?if (bytes_left > 0)
? ? ? ? ? ? ? ? ? ? ? ?strlcat(buf, " ETA", win_size);
? ? ? ? ? ? ? ?else
- ? ? ? ? ? ? ? ? ? ? ? strlcat(buf, " ? ?", win_size);
+ ? ? ? ?...
2010 Jan 05
2
Dovecot Quota Problem
I'm using Dovecot LDA with Exim. I'm also using Dictionary Quotas in a
MySQL database. I want to avoid backscatter completely, so I set
"quota_full_tempfail = yes" and handle quota checking in the Exim RCPT ACL
during the SMTP session. The problem lies in the case where a user's
account is nearly full. Smaller messages will continue to come through,
but a larger message
2011 Jul 21
10
[PATCH v5 0/8] Btrfs scrub: print path to corrupted files and trigger nodatasum fixup
While testing raid-auto-repair patches I''m going to send out later, I just found
the very last bug in my current scrub patch series:
Changelog v4->v5:
- fixed a deadlock when fixup is taking longer while scrub is about to end
Original message follows:
------------------------
This patch set introduces two new features for scrub. They share the backref
iteration code which is the
2013 Apr 03
0
[PATCH] Btrfs-progs: add a free space cache checker to fsck
..._max = 1024 * 1024 * 256;
u64 cache_hard_max = 1 * 1024 * 1024 * 1024;
@@ -696,6 +698,55 @@ out:
return ret;
}
+int read_data_from_disk(struct btrfs_fs_info *info, void *buf, u64 offset,
+ u64 bytes, int mirror)
+{
+ struct btrfs_multi_bio *multi = NULL;
+ struct btrfs_device *device;
+ u64 bytes_left = bytes;
+ u64 read_len;
+ u64 total_read = 0;
+ int ret;
+
+ while (bytes_left) {
+ read_len = bytes_left;
+ ret = btrfs_map_block(&info->mapping_tree, READ, offset,
+ &read_len, &multi, mirror, NULL);
+ if (ret) {
+ fprintf(stderr, "Couldn''t map the bloc...
2011 Aug 10
1
[PATCH v2] dirent.h add fdopendir()
...errno = ENOTDIR;
+ return NULL;
+ }
+
+ flags = fcntl(fd, F_GETFL);
+ if (flags == -1)
+ return NULL;
+ if ((flags & O_ACCMODE) == O_WRONLY) {
+ errno = EINVAL;
+ return NULL;
+ }
+
+ dp = malloc(sizeof(DIR));
+
+ if(!dp)
+ return NULL;
+
+ dp->__fd = fd;
+ dp->next = NULL;
+ dp->bytes_left = 0;
+ return dp;
+}
diff --git a/usr/klibc/tests/Kbuild b/usr/klibc/tests/Kbuild
index a3e0254..5e6e073 100644
--- a/usr/klibc/tests/Kbuild
+++ b/usr/klibc/tests/Kbuild
@@ -14,6 +14,7 @@ static-y := $(test-files:.c=)
shared-y := $(addsuffix .shared, $(static-y))
environ.shared-y := environ.o
+...
2005 Sep 08
45
/proc/xen/xenbus supports watch?
Hi,
Anybody (Christian?) could please tell me if we can get the support
for registering watch with /proc/xen/xenbus? (..OK, I know that we
will change it this /proc stuff to a device soon)
So far we can only do read/write/rm. I really miss the xen watch feature.
Many thanks,
Hieu
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
2013 Aug 29
0
[PATCH] Btrfs: allow partial ordered extent completion
...tent(ordered);
cached_state = NULL;
diff --git a/fs/btrfs/ordered-data.c b/fs/btrfs/ordered-data.c
index f2023cc..966b413 100644
--- a/fs/btrfs/ordered-data.c
+++ b/fs/btrfs/ordered-data.c
@@ -205,6 +205,7 @@ static int __btrfs_add_ordered_extent(struct inode *inode, u64 file_offset,
entry->bytes_left = len;
entry->inode = igrab(inode);
entry->compress_type = compress_type;
+ entry->truncated_len = (u64)-1;
if (type != BTRFS_ORDERED_IO_DONE && type != BTRFS_ORDERED_COMPLETE)
set_bit(type, &entry->flags);
@@ -920,12 +921,16 @@ int btrfs_ordered_update_i_size(str...
2007 Aug 24
2
[git patch] klibc bzero, mount fixes + random stuff
...buffer IN_BUF to `out_buff', which may be partly full.
When `out_buff' fills up, flush it to file descriptor OUT_DES. */
-void disk_buffered_write(char *in_buf, int out_des, long num_bytes)
+static void disk_buffered_write(char *in_buf, int out_des, long num_bytes)
{
register long bytes_left = num_bytes; /* Bytes needing to be copied. */
register long space_left; /* Room left in output buffer. */
@@ -235,7 +222,7 @@ void disk_buffered_write(char *in_buf, int out_des, long num_bytes)
OUT_DES is the file descriptor for output;
NUM_BYTES is the number of bytes to copy. */
-...
2012 Feb 13
10
[RFB] add LZ4 compression method to btrfs
Hi,
so here it is, LZ4 compression method inside btrfs. The patchset is based on
top of current Chris'' for-linus + Andi''s snappy implementation + the fixes from
Li Zefan. Passes xfstests and stresstests.
I haven''t measured performance on wide range of hardware or workloads, rather
wanted to publish the patches before I get distracted again. I''d like to ask
2019 Jul 24
20
[PATCH 00/12] block/bio, fs: convert put_page() to put_user_page*()
From: John Hubbard <jhubbard at nvidia.com>
Hi,
This is mostly Jerome's work, converting the block/bio and related areas
to call put_user_page*() instead of put_page(). Because I've changed
Jerome's patches, in some cases significantly, I'd like to get his
feedback before we actually leave him listed as the author (he might
want to disown some or all of these).
I added a
2019 Jul 24
20
[PATCH 00/12] block/bio, fs: convert put_page() to put_user_page*()
From: John Hubbard <jhubbard at nvidia.com>
Hi,
This is mostly Jerome's work, converting the block/bio and related areas
to call put_user_page*() instead of put_page(). Because I've changed
Jerome's patches, in some cases significantly, I'd like to get his
feedback before we actually leave him listed as the author (he might
want to disown some or all of these).
I added a