Re: Review Request 130090: Fix incorrect definition of major(3)/minor(3) macros

2017-05-07 Thread KJ Tsanaktsidis
a6c31ca8b53a18d8 > > Diff: https://git.reviewboard.kde.org/r/130090/diff/ > > > Testing > --- > > I've written a little snippet to iterate through block devices, print their > major/minor number, and their device properties. It was previously > incorrectly labeling all my disks with major 0 and minor == device_number > (since it was using the first 20 bits for the minor). It now correctly > identifies their major/minor number. > > > Thanks, > > KJ Tsanaktsidis > >

Re: Review Request 130084: Add a pair of flags forcing fsync during copy loop

2017-05-04 Thread KJ Tsanaktsidis
y > realized it (which, in the area of disk i/o, never ceases to amaze) - > https://lwn.net/Articles/682582/ (obvious followup question: what kernel do > you use? this code seems to have landed in 4.10) > > KJ Tsanaktsidis wrote: > I'm using kernel `Linux kj-hedt-arch 4.1

Re: Review Request 130090: Fix incorrect definition of major(3)/minor(3) macros

2017-05-04 Thread KJ Tsanaktsidis
inor number, and their device properties. It was previously incorrectly labeling all my disks with major 0 and minor == device_number (since it was using the first 20 bits for the minor). It now correctly identifies their major/minor number. Thanks, KJ Tsanaktsidis

Re: Review Request 130090: Fix incorrect definition of major(3)/minor(3) macros

2017-05-04 Thread KJ Tsanaktsidis
> On April 28, 2017, 1:28 p.m., Lamarque Souza wrote: > > Ship It! > > KJ Tsanaktsidis wrote: > Great - thanks for your help and for bearing with my rusty C++! What > happens now? I'm waiting on this patch to land for another patch I submi

Re: Review Request 130090: Fix incorrect definition of major(3)/minor(3) macros

2017-04-29 Thread KJ Tsanaktsidis
130084/ - KJ --- This is an automatically generated e-mail. To reply, visit: https://git.reviewboard.kde.org/r/130090/#review103148 --- On April 23, 2017, 9:56 a.m., KJ Tsan

Re: Review Request 130090: Fix incorrect definition of major(3)/minor(3) macros

2017-04-24 Thread KJ Tsanaktsidis
(). The part used to be required with cmake > > 2.6.x, that is not true with cmake 3.x that we use nowadays. > > KJ Tsanaktsidis wrote: > I'm not sure I understand here - elseif() needs to have the expression to > match to enter the elseif() block? In any case I've

Re: Review Request 130090: Fix incorrect definition of major(3)/minor(3) macros

2017-04-23 Thread KJ Tsanaktsidis
I worked out a cleaner way to do this using cmake generator expressions. - KJ --- This is an automatically generated e-mail. To reply, visit: https://git.reviewboard.kde.org/r/130090/#review103087 ---

Re: Review Request 130090: Fix incorrect definition of major(3)/minor(3) macros

2017-04-23 Thread KJ Tsanaktsidis
incorrectly labeling all my disks with major 0 and minor == device_number (since it was using the first 20 bits for the minor). It now correctly identifies their major/minor number. Thanks, KJ Tsanaktsidis

Re: Review Request 130090: Fix incorrect definition of major(3)/minor(3) macros

2017-04-21 Thread KJ Tsanaktsidis
his is an automatically generated e-mail. To reply, visit: https://git.reviewboard.kde.org/r/130090/#review103071 ------- On April 22, 2017, 12:38 a.m., KJ Tsanaktsidis wrote: > > ---

Re: Review Request 130090: Fix incorrect definition of major(3)/minor(3) macros

2017-04-21 Thread KJ Tsanaktsidis
g the first 20 bits for the minor). It now correctly identifies their major/minor number. Thanks, KJ Tsanaktsidis

Re: Review Request 130090: Fix incorrect definition of major(3)/minor(3) macros

2017-04-20 Thread KJ Tsanaktsidis
reply, visit: https://git.reviewboard.kde.org/r/130090/#review103067 ------- On April 20, 2017, 8:49 a.m., KJ Tsanaktsidis wrote: > > --- > This is an automatically generated e-m

Re: Review Request 130090: Fix incorrect definition of major(3)/minor(3) macros

2017-04-20 Thread KJ Tsanaktsidis
vice_number (since it was using the first 20 bits for the minor). It now correctly identifies their major/minor number. Thanks, KJ Tsanaktsidis

Re: Review Request 130090: Fix incorrect definition of major(3)/minor(3) macros

2017-04-19 Thread KJ Tsanaktsidis
ould also save some lines > > in this patch. > > > > nitpik: add spaces around >>, like you did for & in the line below. > > KJ Tsanaktsidis wrote: > Thanks for the review. > > * I would use upper case, but the macro is defined in `sys/s

Re: Review Request 130090: Fix incorrect definition of major(3)/minor(3) macros

2017-04-19 Thread KJ Tsanaktsidis
20 bits for the minor). It now correctly identifies their major/minor number. Thanks, KJ Tsanaktsidis

Re: Review Request 130090: Fix incorrect definition of major(3)/minor(3) macros

2017-04-19 Thread KJ Tsanaktsidis
mber (since it was using the first 20 bits for the minor). It now correctly identifies their major/minor number. Thanks, KJ Tsanaktsidis

Re: Review Request 130090: Fix incorrect definition of major(3)/minor(3) macros

2017-04-19 Thread KJ Tsanaktsidis
ed e-mail. To reply, visit: https://git.reviewboard.kde.org/r/130090/#review103063 ------- On April 17, 2017, 8:42 a.m., KJ Tsanaktsidis wrote: > > --- > This is an

Re: Review Request 130084: Add a pair of flags forcing fsync during copy loop

2017-04-17 Thread KJ Tsanaktsidis
with how often fsync should be called on my hardware, and I found calling it every ~1M copied caused no decrease in copy performance whilst still providing accurate progress info. That is the setting I've gone with in this patch. I'm open to suggestions on how this could be tuned better though. Thanks, KJ Tsanaktsidis

Re: Review Request 130084: Add a pair of flags forcing fsync during copy loop

2017-04-17 Thread KJ Tsanaktsidis
y > realized it (which, in the area of disk i/o, never ceases to amaze) - > https://lwn.net/Articles/682582/ (obvious followup question: what kernel do > you use? this code seems to have landed in 4.10) > > KJ Tsanaktsidis wrote: > I'm using kernel `Linux kj-hedt-arch 4.1

Review Request 130090: Fix incorrect definition of major(3)/minor(3) macros

2017-04-17 Thread KJ Tsanaktsidis
he first 20 bits for the minor). It now correctly identifies their major/minor number. Thanks, KJ Tsanaktsidis

Re: Review Request 130084: Add a pair of flags forcing fsync during copy loop

2017-04-15 Thread KJ Tsanaktsidis
- KJ --- This is an automatically generated e-mail. To reply, visit: https://git.reviewboard.kde.org/r/130084/#review103048 --- On April 15, 2017, 8:28 a.m., KJ Tsanakt

Re: Review Request 130084: Add a pair of flags forcing fsync during copy loop

2017-04-12 Thread KJ Tsanaktsidis
it every ~1M copied caused no decrease in copy performance whilst still providing accurate progress info. That is the setting I've gone with in this patch. I'm open to suggestions on how this could be tuned better though. Thanks, KJ Tsanaktsidis

Review Request 130084: Add a pair of flags forcing fsync during copy loop

2017-04-12 Thread KJ Tsanaktsidis
tch. I'm open to suggestions on how this could be tuned better though. Thanks, KJ Tsanaktsidis