Re: [PATCH 1/7] hwclock: hctosys drift compensation II

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Oct 14, 2014 at 10:51:30AM +0100, Sami Kerola wrote:
> On 14 October 2014 10:03, Karel Zak <kzak@xxxxxxxxxx> wrote:
> > Maybe it would be better to think about whole code refactoring as it's
> > horrible code. It's probably last so horrible code in util-linux.
> 
> Along with more(1). I started to look this refactoring task, and it
> seems reimplementation would be best option. Does someone fancy a
> programming challenge?

I prefer refactoring if possible than write things from scratch. And
for hwclock it's really critical to do the changes in small testable
steps.

Note that sfdisk and cfdisk are completely new because we have libfdisk that
replaces all the original cfdisk and sfdisk partitioning code. The
library itself is refactored and incrementally changed fdisk code.

> Few disk utils, cramfs, bfs, and minix related, could also be improved
> or marked deprecated. I am hoping for later.

Well, I don't think we can deprecated these tools and I don't think
that cramfs, minix and bfs code is so bad. For example mkfs.minix
has been clean upped by Davidlohr Bueso years ago. A few global
variables don't not mean that the code is bad...

Compare to hwclock it's like apples and oranges ;-)

    Karel

-- 
 Karel Zak  <kzak@xxxxxxxxxx>
 http://karelzak.blogspot.com
--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux