search for: scrub_progress

Displaying 2 results from an estimated 2 matches for "scrub_progress".

2011 Jul 18
5
[PATCH v3 0/5] btrfs-progs: scrub interface
This is the next patch series for scrub userland tools. Change log v1->v2: - commands now reachable as "btrfs scrub ..." instead of "btrfs filesystem scrub ..." - ability to scrub a single device instead of a whole file system - superfluous command line options removed - resume is now a separate command ("scrub resume") instead of "scrub start -r" -
2012 Feb 06
0
[PATCH] Btrfs-progs: make scrub IO priority configurable
...lt;poll.h> #include <sys/file.h> #include <uuid/uuid.h> @@ -52,6 +53,11 @@ struct scrub_stats { u64 canceled; }; +#define IOPRIO_WHO_PROCESS 1 +#define IOPRIO_CLASS_SHIFT 13 +#define IOPRIO_PRIO_VALUE(class, data) \ + (((class) << IOPRIO_CLASS_SHIFT) | (data)) + struct scrub_progress { struct btrfs_ioctl_scrub_args scrub_args; int fd; @@ -61,6 +67,8 @@ struct scrub_progress { struct scrub_file_record *resumed; int ioctl_errno; pthread_mutex_t progress_mutex; + int ioprio_class; + int ioprio_classdata; }; struct scrub_file_record { @@ -801,6 +809,13 @@ static void...