Re: cp -i might violate POSIX

2016-03-05 Thread David Vasek
On Sat, 5 Mar 2016, Timo Buhrmester wrote: Not really, because this is about the 'cp -i' part rather than the 'yes n'. Consider the latter an alias for ``while true; do echo n; done'' :-). while echo n; do done is shorter (and even faster). But it doesn't help either. 'pax', which is the POS

Re: cp -i might violate POSIX

2016-03-05 Thread David Vasek
On Sat, 5 Mar 2016, Dmitrij D. Czarkoff wrote: So the goal of the diff is to replace something like $ for src in ${files}; do [ -r "$src" ] && cp ${src} dst/; done with $ yes n | cp -i ${files} dst/ The former line doesn't prevent you from overwriting files in dst/ . More tests are nece

any softraid metadata backups?

2015-07-22 Thread David Vasek
Hello, as changes to the softraid metadata format have been brought up on tech@ recently, it may be a suitable time now to mention one my concern. It is sector size unrelated, but I think it would be wise to think about it when you plan changes to the metadata format now or in the future. Th

Re: grep -R without directory argument

2015-04-30 Thread David Vasek
On Thu, 30 Apr 2015, Stuart Henderson wrote: On 2015/04/30 07:51, Martin Natano wrote: grep reads from standard input when no files are specified. It also does so when -R is used, which doesn't really make sense. I think using the current working directory as a fallback when no directories are

minor change in intro(7) (was: Re: minor change in intro(1) man page)

2015-04-25 Thread David Vasek
On Tue, 21 Apr 2015, Alex Greif wrote: Hi, while reading the intro(1) man page, I found a small inconsistency with the subsequent man pages: ../man3/intro.3:The manual pages in section 3 provide an overview of the C library ../man5/intro.5:The manual pages in section 5 contain information

spdmem(4) - print out correct tCAS of DDR2 DIMMs

2015-01-24 Thread David Vasek
Hello, this diff makes spdmem(4) print out CAS latencies of DDR2 SDRAM DIMMs instead of "random garbage". 1) "i" is not "1" 2) CAS latency can be up to 7 (CL6 and CL7 DDR2 SDRAMs are common). Regards, David Index: sys/dev/spdmem.c =

Re: patch: fsck_ffs(8): fix false errors on very long files

2014-09-05 Thread David Vasek
On Fri, 5 Sep 2014, Philip Guenther wrote: While di_blocks is unsigned, daddr_t is signed so we cast and print blocks as long long's. Noted, thanks. quad_t id_filesize; /* for DATA nodes, the size of the directory */ Is there any similar rule/limitation for the file size? Varia

Re: patch: fsck_ffs(8): fix false errors on very long files

2014-09-04 Thread David Vasek
d long long)idesc->id_entryno); if (preen) printf(" (CORRECTED)\n"); else if (reply("CORRECT") == 0) On Thu, 4 Sep 2014, David Vasek wrote: Hello, on a clean FFS2 filesystem I am getting this false error on very larg

patch: fsck_ffs(8): fix false errors on very long files

2014-09-04 Thread David Vasek
Hello, on a clean FFS2 filesystem I am getting this false error on very large files (length >= 1 TB). This example is from i386. # /sbin/fsck -nf /dev/rsd5a ** /dev/rsd5a (NO WRITE) ** File system is already clean ** Last Mounted on /mnt ** Phase 1 - Check Blocks and Sizes INCORRECT BLOCK COUN

Re: blocks vs. frags in sys/ufs/ffs/fs.h

2014-04-26 Thread David Vasek
On Sat, 26 Apr 2014, David Vasek wrote: Hello, is there a reason why file system fragments are called "blocks" instead of "frags" in comments in sys/ufs/ffs/fs.h sometime? The patch below treats only occurrence. -> only one occurence. Sorry. Regards, David

blocks vs. frags in sys/ufs/ffs/fs.h

2014-04-26 Thread David Vasek
Hello, is there a reason why file system fragments are called "blocks" instead of "frags" in comments in sys/ufs/ffs/fs.h sometime? The patch below treats only occurrence. Index: src/sys/ufs/ffs/fs.h === RCS file: /cvs/src/sys/u

Re: missing ports.tar.gz in snapshot

2014-03-06 Thread David Vasek
On Thu, 6 Mar 2014, Theo de Raadt wrote: I'd like to ask. Does anyone find it useful? It is not in sync with the packages beside it. I thought the packages are being build from the ports tree or am I wrong? Sigh. So I can make a tar file available. At a particular moment in time. But t

Re: installation to (W)hole disk - saner default

2012-03-07 Thread David Vasek
On Wed, 7 Mar 2012, Dmitrij D. Czarkoff wrote: On Wed, 2012-03-07 at 17:32 +0100, David Vasek wrote: So if the installer finds a valid MBR which contains some partition(s), then don't make whole disk (overwriting everything) the default choice and let it up to the user. For those who

installation to (W)hole disk - saner default

2012-03-07 Thread David Vasek
Hello all. While I would always defend everybody's right to use OpenBSD to shoot himself in his foot, I don't think it is neither practical nor ethical to hint him to do so. So if the installer finds a valid MBR which contains some partition(s), then don't make whole disk (overwriting everyt

Re: enable aucat by default

2011-10-07 Thread David Vasek
On Fri, 7 Oct 2011, Henning Brauer wrote: * Jona Joachim [2011-10-07 12:06]: Do you want to start sshd by default? [Y/n] Do you want to start aucat by default? [Y/n] yeah right. what an awesome installer! Do you want to start atactl by default? [Y/n] Do you want to start badsect by default?

fstat.1 - a little typo fix

2011-10-02 Thread David Vasek
Just one missing letter. Regards, David Index: src/usr.bin/fstat/fstat.1 === RCS file: /cvs/src/usr.bin/fstat/fstat.1,v retrieving revision 1.46 diff -u -p -r1.46 fstat.1 --- src/usr.bin/fstat/fstat.1 2 May 2011 11:14:11 -

Re: horribly slow fsck_ffs pass1 performance

2011-04-10 Thread David Vasek
On Sun, 10 Apr 2011, Marc Espie wrote: This is completely stupid. What do you trust more ? your file system, or fsck ? oth have bugs ! I'm sure of it ! so, if you run fsck, it's likely you're going to run into fsck bugs eventually (and trying fsck on a mounted partition was really, really stu

Re: "no really, be quiet" mode for ping{,6}

2011-04-06 Thread David Vasek
On Wed, 6 Apr 2011, Peter Hessler wrote: Sometimes I want ping to be quiet. Not quiet in the "only show me headers" way that the original author thought was cute, but in the "don't show me anything" way, so cron doesn't spam me with useless crap. So, in honor of that, here is a patch to add -Q

Re: top, systat and hw.cpuspeed

2011-03-24 Thread David Vasek
On Wed, 23 Mar 2011, Kevin Chadwick wrote: On Thu, 24 Mar 2011 13:23:08 +0100 (CET) David Vasek wrote: I am fully aware that it is not always completly exact, and but on the other hand the CPU clock rate doesn't change immediately, it takes at least 5 seconds to drop/rise after the CPU

Re: top, systat and hw.cpuspeed

2011-03-24 Thread David Vasek
On Thu, 24 Mar 2011, Stuart Henderson wrote: If you run some automated clock control (like apmd -C), you never know to what clock the cpu-time statistics in top(1) and systat(1) are related to. You still don't exactly, as top(1)'s cpu-time statistics are over an interval, whereas hw.cpuspeed i

Re: top, systat and hw.cpuspeed

2011-03-24 Thread David Vasek
On Wed, 23 Mar 2011, Amit Kulkarni wrote: Never know what they can do. But the current max is 6 GHz by IBM for any core, right? :) That case was the source of my doubts if 9.9 GHz "is enough for everybody". The majority of current hardware do per core frequency scaling (or bursting), but h

Re: top, systat and hw.cpuspeed

2011-03-24 Thread David Vasek
On Wed, 23 Mar 2011, Stuart Henderson wrote: On 2011/03/23 21:18, David Vasek wrote: Hello all. As majority of current hardware use some form of dynamic CPU frequency scaling and it is frequently controlled by ampd, wouldn't it be good to have the current hw.cpuspeed displayed somewhe

Re: top, systat and hw.cpuspeed

2011-03-23 Thread David Vasek
On Wed, 23 Mar 2011, Tobias Weingartner wrote: On Wednesday, March 23, David Vasek wrote: As majority of current hardware use some form of dynamic CPU frequency scaling and it is frequently controlled by ampd, wouldn't it be good to have the current hw.cpuspeed displayed somewhere i

top, systat and hw.cpuspeed

2011-03-23 Thread David Vasek
Hello all. As majority of current hardware use some form of dynamic CPU frequency scaling and it is frequently controlled by ampd, wouldn't it be good to have the current hw.cpuspeed displayed somewhere in the header lines of systat(1) and top(1)? Just to know the scale for other performace fi

how to change the default dump device

2009-07-02 Thread David Vasek
Hello! Could someone please help me with the following. I am trying to dump memory to other then the default dump device of the GENERIC kernel. Is it possible to change the default dump device either in the UKC or by running "config -e" on the kernel image or in another similar way? I haven't

Re: Test fix for aml_xconvert die

2009-05-20 Thread David Vasek
On Wed, 20 May 2009, Marco Peereboom wrote: We only have 2 results. Please test this!! Hi! As I wrote in my original bug-report, the troublesome laptop (Acer TravelMate 430) is currently out of my reach and is running the OS it had been originally sold with. Nonetheless, I will meet its own