Re: [PATCH] Add 4K QUIRK for Intel X25-M, MARVELL SD88SA02 and OCZ Agility 2

2013-08-13 Thread Xin Li
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 8/11/13 12:03 PM, Richard Yao wrote: Is there any possibility that these quirks could be added to the upcoming 9.2 release? I think so but we need to act fast. Pools composed of affected disks will suffer from performance issues until they

Re: Make ZFS use the physical sector size when computing initial ashift

2013-07-10 Thread Xin Li
active discussion at Illumos mailing list right now. [1] https://github.com/trueos/trueos/commit/3d2e3a38faad8df4acf442b055c5e98ab873fb26 Cheers, - -- Xin LI delp...@delphij.nethttps://www.delphij.net/ FreeBSD - The Power to Serve! Live free or die -BEGIN PGP SIGNATURE

Re: Make ZFS use the physical sector size when computing initial ashift

2013-07-10 Thread Xin Li
. All of the other patches I've seen just treat physical as logical. Yes, me too. Your version is superior. Cheers, - -- Xin LI delp...@delphij.nethttps://www.delphij.net/ FreeBSD - The Power to Serve! Live free or die -BEGIN PGP SIGNATURE

Re: Importing tradcpp (traditional (KR-style) C macro preprocessor) into base?

2013-06-11 Thread Xin Li
be better to just fix it than importing a new (old) preprocessor... Cheers, - -- Xin LI delp...@delphij.nethttps://www.delphij.net/ FreeBSD - The Power to Serve! Live free or die -BEGIN PGP SIGNATURE- iQEcBAEBCgAGBQJRt6ZKAAoJEG80Jeu8UPuzrX4IAJj1hg/+Vh8oGuc2vVeuAU0W

Re: Importing tradcpp (traditional (KR-style) C macro preprocessor) into base?

2013-06-11 Thread Xin Li
there is valid usage for ifdef). Cheers, - -- Xin LI delp...@delphij.nethttps://www.delphij.net/ FreeBSD - The Power to Serve! Live free or die -BEGIN PGP SIGNATURE- iQEcBAEBCgAGBQJRt6vsAAoJEG80Jeu8UPuz/EkH/jY8jLItQ6ESfeujLw+72mQ3 Hmitiotg7UHj4ltUs1gazrc5

Re: potential future proofing fix for aicasm build.

2013-05-02 Thread Xin Li
. Cheers, - -- Xin LI delp...@delphij.nethttps://www.delphij.net/ FreeBSD - The Power to Serve! Live free or die -BEGIN PGP SIGNATURE- iQEcBAEBCgAGBQJRgqkDAAoJEG80Jeu8UPuzwvUH/2M+HDzKA9neXXYb6SKzrNX2 DVqw66ygatDj6QqwmMvZvU4+kGLNR6KEOQGNF4f0mMJmfg+GLzDFE5s769J/Be+1

Re: copyinstr()

2013-04-09 Thread Xin Li
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 4/8/13 6:15 PM, Vijay Singh wrote: Hi, I was looking for some help with copyinstr() on an amd64 platform. My from address happens to be in the kernel (stack). I am getting an EFAULT, and I am wondering how to fix that. Since you are doing

Re: SA-13:02/libc and FreeBSD 6

2013-02-21 Thread Xin Li
and taking ownership. (Same can be said of what's going to happen to 7.x soon.) Adrian - -- Xin LI delp...@delphij.nethttps://www.delphij.net/ FreeBSD - The Power to Serve! Live free or die -BEGIN PGP SIGNATURE

Re: SA-13:02/libc and FreeBSD 6

2013-02-20 Thread Xin Li
the last 6-STABLE branch. Here is a patch backported for stable/6 but I do not have time to set up a testing environment for it, if you do, please let me know if the patch worked or not, thanks! Cheers, - -- Xin LI delp...@delphij.nethttps://www.delphij.net/ FreeBSD - The Power to Serve

Re: Chicken and egg, encrypted root FS on remote server

2013-02-19 Thread Xin Li
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 2/19/13 10:58 PM, Paul Schenkeveld wrote: Ideally I'd like the server to start, do minimal network config, run a minimal ssh client (dropbear?) and wait for someone to log in, provide the passphrase to unlock the root filesystem and then

Re: Fixing grep -D skip

2013-01-18 Thread Xin Li
don't have another opener. I'd say Yes for this p Cheers, - -- Xin LI delp...@delphij.nethttps://www.delphij.net/ FreeBSD - The Power to Serve! Live free or die -BEGIN PGP SIGNATURE- iQEcBAEBCgAGBQJQ+eW5AAoJEG80Jeu8UPuzB3IH/RmhJionoEWRtczBy2ccA8sl XG1OIvSR60vWNFAGooOF2I66J8xF0

Re: Fixing grep -D skip

2013-01-18 Thread Xin Li
(disclaimer: not bsdgrep person) have just tested that bsdgrep handle this case just fine. The non-blocking part is required to make the code function, otherwise the system will block on open() if fifo don't have another opener. I'd say Yes for this p Cheers, - -- Xin LI delp...@delphij.net

Re: kgzip(1) is broken

2013-01-15 Thread Xin Li
. This is quite troubling and I am looking for someone to help find the culprit. I don't know where to start looking. I think this is i386 only? Also, are you trying to avoid loader(8)? Cheers, - -- Xin LI delp...@delphij.nethttps://www.delphij.net/ FreeBSD - The Power to Serve! Live

Re: watchdogd, jemalloc, and mlockall

2012-11-03 Thread Xin Li
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 11/3/12 11:38 AM, Ian Lepore wrote: In an attempt to un-hijack the thread about memory usage increase between 6.4 and 9.x, I'm starting a new thread here related to my recent discovery that watchdogd uses a lot more memory since it began

Re: Porting patch(1) from NetBSD to FreeBSD (was Re: FreeBSD in Google Code-In 2012? You can help too!)

2012-10-27 Thread Xin Li
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hi, On 10/27/12 2:17 PM, hiren panchasara wrote: [removing the CC list] On Wed, Oct 24, 2012 at 3:36 PM, Pedro Giffuni p...@freebsd.org wrote: (cc'ing -ports and cutting most of the rest) From: Eitan Adler . On 24 October 2012 13:24,

Re: system hangs during dump + compress usb2-drive

2012-09-30 Thread Xin Li
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 9/29/12 10:49 PM, Jin Guojun wrote: In FreeBSD 8.3 release (possibly in earlier release), dump a file system has 2-3GB or more content can cause system hang in a specific case (pipe to compression): dump FS-on-SATA-drive usb-drive

Re: posix_fadvise64?

2012-08-18 Thread Xin Li
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 8/18/12 12:55 AM, Wojciech Puchar wrote: i tried to compile xfsprogs from ports linking fails with missing posix_fadvise64 man posix_fadvise gives me manual, but what is fadvise64? Looking at Linux manual page I believe you can just

Re: CVE-2012-0217 Intel's sysret Kernel Privilege Escalation and FreeBSD 6.2/6.3

2012-07-12 Thread Xin Li
On 07/12/12 09:36, Bill Crisp wrote: Good Morning! This was also posted to the FreeBSD forums: I have been researching CVE-2012-0217 and while I have patched the kernels on servers with 7.3/8.2 that I have, I would like to see if anyone knows for sure if 6.2/6.3 are also vulnerable? I am aware

Re: BIO_DELETE equivalent for file on FFS filesystem

2012-06-16 Thread Xin LI
what he wanted is to tell the OS I don't need block XX - YY anymore and the OS creates a sparse hole, which is not available at this time. Cheers, -- Xin LI delp...@delphij.net https://www.delphij.net/ FreeBSD - The Power to Serve! Live free or die

Re: BIO_DELETE equivalent for file on FFS filesystem

2012-06-13 Thread Xin Li
? I think you can only truncate the file at this time, pretty much like brk() works for memory. Cheers, - -- Xin LI delp...@delphij.nethttps://www.delphij.net/ FreeBSD - The Power to Serve! Live free or die -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.19 (FreeBSD

Re: Review of changes for getnetgrent.c

2012-05-21 Thread Xin Li
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 05/21/12 12:02, Guy Helmer wrote: On May 18, 2012, at 6:09 PM, Xin Li wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 05/18/12 14:58, Guy Helmer wrote: To close PR bin/83340, I have this change worked up to resolve memory

Re: Review of changes for getnetgrent.c

2012-05-18 Thread Xin Li
, I think freepos can be declared within this scope level. There are a few return without space between the keyword and return value. Other than these it looks fine to me. Thanks for working on this! Cheers, - -- Xin LI delp...@delphij.nethttps://www.delphij.net/ FreeBSD - The Power

Re: Highpoint 2760A / Marvell 88SE9485 SAS HBA Drivers?

2012-04-20 Thread Xin Li
: 1907729MB (3907029168 512 byte sectors: 255H 63S/T 243201C) da22 at hpt27xx0 bus 0 scbus8 target 22 lun 0 da22: HPT DISK 0_22 4.00 Fixed Direct Access SCSI-0 device da22: 1907729MB (3907029168 512 byte sectors: 255H 63S/T 243201C) On Thu, Apr 19, 2012 at 12:29 AM, Xin Li delp

Re: Highpoint 2760A / Marvell 88SE9485 SAS HBA Drivers?

2012-04-19 Thread Xin Li
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 04/12/12 10:14, Barkley Vowk wrote: I've got a Highpoint 2760A card that I'd like a FreeBSD driver for, I've got a machine and disks available if someone wants to tackle that. Please try loading 'hpt27xx.ko' on boot. Cheers, - -- Xin LI

Re: memmem small optimalisation

2012-02-23 Thread Xin Li
and subtractions, when multiple by the length of the long string, may actually defeat the benefit of one less byte worth memory compare because the effect of CPU's data cache. I think it would be worthy to explore if we could use a more advanced algorithm here by the way. Cheers, - -- Xin LI delp

Re: nologin size

2012-02-15 Thread Xin Li
LD_LIBRARY_PATH appropriately. Both sshd(8) and # login(1) make it possible to log in with an unsanitized environment, # rendering a dynamic nologin binary virtually useless. NO_SHARED= YES Cheers, - -- Xin LI delp...@delphij.nethttps://www.delphij.net/ FreeBSD - The Power to Serve

Re: dup3 syscall - atomic set O_CLOEXEC with dup2

2012-01-20 Thread Xin Li
(working copy) @@ -997,3 +997,4 @@ uint32_t offset1, uint32_t offset2,\ uint32_t len1, uint32_t len2, \ int advice); } +532AUE_NULLSTD { int dup3(u_int from, u_int to, int flags); } Ditto... Cheers, - -- Xin LI delp...@delphij.nethttps://www.delphij.net/ FreeBSD - The Power

Re: crypto.ko module problem

2011-11-22 Thread Xin LI
and give this error. link_elf: symbol MYHASHUpdate undefined MYHASHUpdate is one of my hash functions that i add to the source. what should i do that i forget? Looks like it's expecting something that is not linked into your module? Cheers, - -- Xin LI delp...@delphij.nethttps

Re: crypto.ko module problem

2011-11-22 Thread Xin LI
? Looks like it's expecting something that is not linked into your module? Cheers, - -- Xin LI delp...@delphij.nethttps://www.delphij.net/ FreeBSD - The Power to Serve! Live free or die -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.18 (FreeBSD) iQEcBAEBCAAGBQJOzBLRAAoJEATO+BI

Re: crypto.ko module problem

2011-11-22 Thread Xin LI
something that is not linked into your module? Cheers, - -- Xin LI delp...@delphij.nethttps://www.delphij.net/ FreeBSD - The Power to Serve! Live free or die -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.18 (FreeBSD) iQEcBAEBCAAGBQJOzCOoAAoJEATO+BI/yjfBisEH

Re: NASM in FreeBSD

2011-09-30 Thread Xin LI
located at lang/fasm (not in devel/) and I believe that package is also available for supported platforms... Cheers, - -- Xin LI delp...@delphij.nethttps://www.delphij.net/ FreeBSD - The Power to Serve! Live free or die -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.18 (FreeBSD

Re: sizeof(size_t) and other semantic types on 32 bit systems?

2011-09-30 Thread Xin LI
, but I don't like this solution, as  it very low-level (ok, not so low-level as unsigned long long, to  be honest). off_t? Cheers, -- Xin LI delp...@delphij.net https://www.delphij.net/ FreeBSD - The Power to Serve! Live free or die ___ freebsd-hackers

Re: Switching to [KMGTPE]i prefixes?

2011-03-29 Thread Xin LI
On Tue, Mar 29, 2011 at 2:51 PM, Alexander Best arun...@freebsd.org wrote: On Fri Mar 25 11, Xin LI wrote: On Fri, Mar 25, 2011 at 3:32 PM, Alexander Best arun...@freebsd.org wrote: On Fri Mar 25 11, Xin LI wrote: FYI I have a patch and I have incorporated some of Alexander's idea

Re: Switching to [KMGTPE]i prefixes?

2011-03-25 Thread Xin LI
. (Note, it seems that we use HN_ prefix for both 'scale' and 'flags', I have sorted them by value but HN_IEC_PREFIXES should really belong to the flags group). Cheers, -- Xin LI delp...@delphij.net http://www.delphij.net Index: humanize_number.c

Re: Switching to [KMGTPE]i prefixes?

2011-03-25 Thread Xin LI
On Fri, Mar 25, 2011 at 3:32 PM, Alexander Best arun...@freebsd.org wrote: On Fri Mar 25 11, Xin LI wrote: FYI I have a patch and I have incorporated some of Alexander's idea. Difference:  - Use of both HN_DIVISOR_1000 and HN_IEC_PREFIXES triggers an assertion.  I think it doesn't make

Re: Switching to [KMGTPE]i prefixes?

2011-03-25 Thread Xin LI
won't be broken. They must be updated to use the IEC prefixes. Cheers, -- Xin LI delp...@delphij.net http://www.delphij.net ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail

Re: Is it possible to have file removed upon process exit?

2010-11-29 Thread Xin LI
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 11/28/10 20:43, Garrett Cooper wrote: On Thu, Nov 25, 2010 at 12:14 PM, Xin LI delp...@delphij.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hi, One pretty common way of having an i-node of a file removed when process exit

Is it possible to have file removed upon process exit?

2010-11-25 Thread Xin LI
its name. For certain applications it is sometimes desirable to (e.g. for unix domain sockets) have file removed when the process quit, regardless whether the process is quit cleanly. Is there a clean way to do this? Cheers, - -- Xin LI delp...@delphij.nethttp://www.delphij.net/ FreeBSD

Re: changing gzip's symlink handling to be consistent with bzip2, xz and GNU gzip

2010-11-15 Thread Xin LI
) echo | /usr/local/bin/gzip foo gzip: foo.gz already exists;not overwritten gzip -f foo gzip: could not create output: foo.gz: File exists /usr/local/bin/gzip -f foo (succeeded; case 2). Cheers, - -- Xin LI delp...@delphij.nethttp://www.delphij.net/ FreeBSD - The Power to Serve

Re: /stand/camcontrol

2010-09-02 Thread Xin LI
2010/9/2 Dag-Erling Smørgrav d...@des.no: Xin LI delp...@gmail.com writes: My 2 cents: I think we don't really need to care about the size for rescue binary after the splitfs VFS layer have been introduced to libstand?  Build of release split MFSROOT was 2006-ish and I feel that this can

Re: /stand/camcontrol

2010-09-01 Thread Xin LI
though. Cheers, -- Xin LI delp...@delphij.net http://www.delphij.net ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org

Re: porting cputick2usec() to userland

2010-09-01 Thread Xin LI
- -- Xin LI delp...@delphij.nethttp://www.delphij.net/ FreeBSD - The Power to Serve! Live free or die -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.16 (FreeBSD) iQEcBAEBCAAGBQJMfuB/AAoJEATO+BI/yjfBnwoIAJF+Wu3E8m92PkNmmpdwymU1 BFbtzxZ//MIDmOkrW5qnIjfQPpcnizXX12Le8

Re: Winbond Watchdog

2010-08-22 Thread Xin LI
2010/8/7 Dag-Erling Smørgrav d...@des.no: Xin LI delp...@delphij.net writes: I'm still polishing up the driver, there seems to be no way to figure out the base port address directly (datasheet said it's either 0x2e and 0x4e) so for now I have its device identify method to do some dirty hacks

Winbond Watchdog [Was Re: Supermicro BIOS's watchdog feature?]

2010-08-07 Thread Xin LI
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 2010/07/01 00:12, Dag-Erling Smørgrav wrote: Xin LI delp...@delphij.net writes: Dag-Erling Smørgrav d...@des.no writes: Perhaps the motherboard has additional watchdog hardware? If you disable the watchdog in BIOS, does ichwd still work

Re: lint(1) improvements from OpenBSD

2010-07-26 Thread Xin LI
think it's talking about OpenBSD's xlint (src/usr.bin/xlint). No I am not aware of anyone working on this. Cheers, - -- Xin LI delp...@delphij.nethttp://www.delphij.net/ FreeBSD - The Power to Serve! Live free or die -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.16 (FreeBSD

Re: kernel modules into static kernel

2010-07-20 Thread Xin LI
also be in the kernel? Yes. Cheers, - -- Xin LI delp...@delphij.nethttp://www.delphij.net/ FreeBSD - The Power to Serve! Live free or die -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.15 (FreeBSD) iQEcBAEBCAAGBQJMRd0KAAoJEATO+BI/yjfB9EEH/38i8b0LdphAnpKEmKO0u1eU

Re: Using lex in a shared library

2010-07-02 Thread Xin LI
anything about lex(1), so if I need my own yywrap() that might be fine, but I wouldn't have the first clue what to put in there. :-( I think you could probably just change the code and use %option noyywrap in the .l file? (do your code call yywrap() directly?) Cheers, - -- Xin LI delp...@delphij.net

Re: Using lex in a shared library

2010-07-02 Thread Xin LI
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 2010/07/02 16:52, Xin LI wrote: On 2010/07/02 16:34, Matthew Fleming wrote: On Fri, Jul 2, 2010 at 4:02 PM, Garrett Cooper yanef...@gmail.com wrote: On Fri, Jul 2, 2010 at 2:51 PM, Matthew Fleming mdf...@gmail.com wrote: I have the following

Supermicro BIOS's watchdog feature?

2010-06-30 Thread Xin LI
) would do... Cheers, - -- Xin LI delp...@delphij.nethttp://www.delphij.net/ FreeBSD - The Power to Serve! Live free or die -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.15 (FreeBSD) iQEcBAEBCAAGBQJMKwf0AAoJEATO+BI/yjfB+uYH/j9c0VKgq84HUufNztoLvsJ8 zYNaj9xV+mKDSxTEeQsQelqqUkmwfEF

Re: Supermicro BIOS's watchdog feature?

2010-06-30 Thread Xin LI
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 2010/06/30 14:49, Dag-Erling Smørgrav wrote: Matthew Jacob m...@feral.com writes: Xin LI delp...@delphij.net writes: It seems that ICH10R's watchdog is supported by ichwd(4) but Supermicro BIOS needs some special treatments which is beyond

Re: Supermicro BIOS's watchdog feature?

2010-06-30 Thread Xin LI
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 2010/06/30 15:19, Dag-Erling Smørgrav wrote: Xin LI delp...@delphij.net writes: Hmm... Sorry I think I didn't described the behavior accurately. Currently if I enable the Watch Dog option in BIOS, the system reboots after ~5 mins regardless

Re: proposed change to style(9): require yoda style if statements

2010-05-13 Thread Xin LI
compilers are more sensitive about this type of mistakes, and, more importantly, making code more readable would usually save debugging time. Cheers, - -- Xin LI delp...@delphij.nethttp://www.delphij.net/ FreeBSD - The Power to Serve! Live free or die -BEGIN PGP SIGNATURE

Re: BIO_FLUSH and ips(4)

2010-04-24 Thread Xin LI
for that purpose? There's a command called IPS_CACHE_FLUSH_CMD defined in ipsreg.h, but it's not used anywhere in the normal code path. It seems Linux driver is using it (on shutdown/reset) but I'm not sure if this would have some side effect, etc.? Cheers, -- Xin LI delp...@delphij.net http

Re: Error checking in ioctl(2)?

2010-04-22 Thread Xin LI
about it. Cheers, - -- Xin LI delp...@delphij.nethttp://www.delphij.net/ FreeBSD - The Power to Serve! Live free or die -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.14 (FreeBSD) iQEcBAEBAgAGBQJL0O76AAoJEATO+BI/yjfBOr4H/jTKZ4MSw4ukOsAGmSsRKz9Z J2Jw/8DH7Kv1VZD8Dsvzma8/gF94YqbaBNsiz1

Re: To sendmail or to postfix that is the question?

2010-03-10 Thread Xin LI
is somewhat CPU hungry if you have high e-mail volume, consider deploying multiple layer of delivery system (multiple MX serving anti-spam purpose, and deliver to a group of backend system; this could be an overkill for small to medium sized companies, though). Cheers, - -- Xin LI delp

Re: tiny lib/libkvm/kvm_proc.c correction

2010-03-05 Thread Xin LI
to userland (one have to copy cpu_tick_frequency and friends). Cheers, - -- Xin LI delp...@delphij.nethttp://www.delphij.net/ FreeBSD - The Power to Serve! Live free or die -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.14 (FreeBSD) iQEcBAEBAgAGBQJLkV1EAAoJEATO+BI/yjfBvhcH

Re: tiny lib/libkvm/kvm_proc.c correction

2010-03-05 Thread Xin LI
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 2010/03/05 11:59, Alexander Best wrote: Xin LI schrieb am 2010-03-05: On 2010/03/05 11:26, Alexander Best wrote: hi there. does this look right? Not to me, the value is not to be used this way and the comments above the code explained

Re: svn commit: r204615 - head/sbin/newfs

2010-03-02 Thread Xin LI
On Tue, Mar 2, 2010 at 7:19 PM, Maxim Sobolev sobo...@freebsd.org wrote: Xin LI wrote: On Tue, Mar 2, 2010 at 6:05 PM, Maxim Sobolev sobo...@freebsd.org wrote: Author: sobomax Date: Wed Mar  3 02:05:09 2010 New Revision: 204615 URL: http://svn.freebsd.org/changeset/base/204615 Log

Re: about libstdc++ ,change the defaule allocator

2010-01-14 Thread Xin LI
by god. Cheers, -- Xin LI delp...@delphij.net http://www.delphij.net ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org

Re: uiomove and mutex

2010-01-11 Thread Xin LI
can of course find something better than this for situations more specific and avoid some mutex operation... Cheers, -- Xin LI delp...@delphij.net http://www.delphij.net ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo

Re: Suggestion: rename killall to fkill, but wait five years to phase the new name in

2009-12-22 Thread Xin LI
to have administrators to learn some more consistent ways to do the same task, i.e. pkill. Cheers, -- Xin LI delp...@delphij.net http://www.delphij.net ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers

Re: Suggestion: rename killall to fkill, but wait five years to phase the new name in

2009-12-22 Thread Xin LI
on FreeBSD... Cheers, -- Xin LI delp...@delphij.net http://www.delphij.net/ FreeBSD - The Power to Serve! Live free or die ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe

Re: Suggestion: rename killall to fkill, but wait five years to phase the new name in

2009-12-22 Thread Xin LI
/semantics after ten years just make a mess, so please drop this. pkill have '-I', at least on FreeBSD... There is no such option in pkill on Linux.[2] Please talk with the authors of Linux pkill. In open source world a well written patch would say more than a thousand of sayings. Cheers, -- Xin

Re: Suggestion: rename killall to fkill, but wait five years to phase the new name in

2009-12-21 Thread Xin LI
/sbin/killall to 'fkill' and 'kill -15 -1' to 'killall' if they really want the System V behavior. Cheers, -- Xin LI delp...@delphij.net http://www.delphij.net ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo

Re: Regarding enabling IOAPIC on Intel Dual core processor based boards having Broadcom controller

2009-12-14 Thread Xin LI
Is it possible for you to use some newer FreeBSD release, i.e. 6.3 or 6.4, or 7.x even 8.x and see if that would solve your problem? Cheers, - -- Xin LI delp...@delphij.nethttp://www.delphij.net/ FreeBSD - The Power to Serve! Live free or die -BEGIN PGP SIGNATURE- Version: GnuPG

Re: Distributed SSH attack

2009-10-07 Thread Xin LI
by neglecting administrators and tends not to apply security updates from time to time. Cheers, - -- Xin LI delp...@delphij.nethttp://www.delphij.net/ FreeBSD - The Power to Serve! -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.13 (FreeBSD) iEYEARECAAYFAkrNEHkACgkQi

Re: (Ab)using rcng's features to keep rc.d-style services running should they fail.

2009-10-06 Thread Xin LI
growing support for it would be welcome provided it does not happen by default. +1 I think this feature should be user-controllable (or, the 'make install' should be 'restart'ing the rc.d script at very least). Cheers, - -- Xin LI delp...@delphij.nethttp://www.delphij.net/ FreeBSD - The Power

Re: Distributed SSH attack

2009-10-04 Thread Xin LI
it or not, I find this pf.conf rule very effective to mitigate this type of distributed SSH botnet attack: block in quick proto tcp from any os Linux to any port ssh Cheers, - -- Xin LI delp...@delphij.nethttp://www.delphij.net/ FreeBSD - The Power to Serve! -BEGIN PGP SIGNATURE- Version

Re: fcntl(F_RDAHEAD)

2009-09-17 Thread Xin LI
the feature. I've used F_READAHEAD as the name, but reading the manual page, it looks like we can just use F_RDAHEAD since Darwin seems to just distinguish 0 and !=0 case so that programmers won't have to use #ifdef or something else to get code working on different platform? Cheers, - -- Xin LI delp

Re: bsd.lib.mk question

2009-07-27 Thread Xin LI
built and installed. Example: LIB= SHLIB= test SHLIB_MAJOR=0 Would build libtest.so.0, but no libtest.a nor libtest_p.a. Cheers, - -- Xin LI delp...@delphij.nethttp://www.delphij.net/ FreeBSD - The Power to Serve! -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.12 (FreeBSD

Re: tmpfs experimental?

2009-06-15 Thread Xin LI
a chance to investigate further. I think tmpfs is Ok for some usual work but maybe not ready for production at that moment. alc@ and kib@ has made a lot of changes on it recently so perhaps we need to re-visit the problems, tmpfs would be a great feature for us. Cheers, - -- Xin LI delp

Re: DNS problems

2009-04-07 Thread Xin LI
and that I have all the trailing dots) Note I have also transfered registers in the last 24 hrs (but whois has all the right data) BIND by default listen on lo0 only. Check your /etc/namedb/named.conf. - -- Xin LI delp...@delphij.nethttp://www.delphij.net/ FreeBSD - The Power to Serve

Re: Is it possible to use the libthr.a file on a Redhat Linux?

2009-03-31 Thread Xin LI
. It should be noted that it could be possible if you recompile your application under RedHat Linux, as the upper layer of API should be more similar. Cheers, - -- Xin LI delp...@delphij.nethttp://www.delphij.net/ FreeBSD - The Power to Serve! -BEGIN PGP SIGNATURE- Version: GnuPG

Re: Intel Integrated Raid (iir) relevance

2009-03-31 Thread Xin LI
have the device working? Cheers, - -- Xin LI delp...@delphij.nethttp://www.delphij.net/ FreeBSD - The Power to Serve! -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.11 (FreeBSD) iEYEARECAAYFAknSy7AACgkQi+vbBBjt66AUoQCgtFiu6Bsg0LygJ7gAnKLdBBMN JKIAoKNioqTEQSA8vX621jqTpBKTaO1C =RmFa -END

Re: A patch of HPTIOP driver for 7.1-RELEASE

2009-03-24 Thread Xin LI
resolved at a later time, etc.). On Sat, Jan 17, 2009 at 6:46 AM, Xin LI delp...@delphij.net mailto:delp...@delphij.net wrote: Hi, Shaowei, It seems that I can not apply your patch directly, I have tried to do it manually, as attached, please let me know if it's Ok. I can commit for you

Re: writing libnetstat for Summer of Code 2009

2009-03-16 Thread Xin LI
...@freebsd.org - -- Xin LI delp...@delphij.nethttp://www.delphij.net/ FreeBSD - The Power to Serve! -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.11 (FreeBSD) iEYEARECAAYFAkm+orwACgkQi+vbBBjt66DyAACfZYT9/IbaPkUViBqDV6whxi2L N/8An0av6fp/EahIw5aUmd01lfNEo4el =t1WB -END PGP SIGNATURE

Re: writing libnetstat for Summer of Code 2009

2009-03-16 Thread Xin LI
On Mon, Mar 16, 2009 at 3:04 PM, Xin LI delp...@delphij.net wrote: I'm not very sure but I think Rui is referring XML like the GEOM subsystem has used (perhaps to have the kernel expose the statistics data with XML and the userland part of the library parse and return the result)? Cheers

Re: fgetc doubts

2009-03-10 Thread Xin LI
may want something like ch = binbufptr[0] 0xff I guess. Cheers, - -- Xin LI delp...@delphij.nethttp://www.delphij.net/ FreeBSD - The Power to Serve! -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.11 (FreeBSD) iEYEARECAAYFAkm26JUACgkQi+vbBBjt66CePwCgtXlqAYcdP6G1EUUtGk0nu7vD I1sAoIJ

How to change an interface?

2009-02-25 Thread Xin LI
(); - At the tail of the shim file, add glues for the old symbols like this: __sym_compat(foo, __foo_44bsd, FBSD_1.0); - Double check to make sure that new .so would work with old binaries. Is that correct? Cheers, - -- Xin LI delp...@delphij.nethttp://www.delphij.net/ FreeBSD - The Power to Serve

Re: [PATCH] Support for thresholds in du(1)

2009-02-25 Thread Xin LI
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mel wrote: [...] I'll file a PR for it, if there's no objections to this feature / implementation, the style(9) or the usage of -t. One comment: you may want to consider using expand_number(3) instead of rolling your own version Cheers, - -- Xin

Re: [PATCH] Support for thresholds in du(1)

2009-02-25 Thread Xin LI
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mel wrote: On Wednesday 25 February 2009 18:36:45 Xin LI wrote: Mel wrote: [...] I'll file a PR for it, if there's no objections to this feature / implementation, the style(9) or the usage of -t. One comment: you may want to consider using

Re: A patch of HPTIOP driver for 7.1-RELEASE

2009-01-16 Thread Xin LI
___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org - -- Xin LI delp...@delphij.nethttp://www.delphij.net/ FreeBSD - The Power to Serve

Re: td_critnest

2008-12-14 Thread Xin LI
help me with this? My guess is to prevent race conditions (i.e. to split the owepreempt flag into a separate variable), since this value could be changed in an interrupt context, and not only during the current thread context. Cheers, - -- Xin LI delp...@delphij.nethttp://www.delphij.net

Re: change to ee.c

2008-11-29 Thread Xin LI
have undefined behavior. It looks like that we actually want fd = mkstemp() here. Note that we may want to bring vendor fixes before making any changes to reduce duplicated work... Cheers, - -- Xin LI [EMAIL PROTECTED] http://www.delphij.net/ FreeBSD - The Power to Serve! -BEGIN PGP

Re: open(2) and O_NOATIME

2008-10-31 Thread Xin LI
does but greatfully benefit all kind of backup programs. Yes this makes sense I think. Cheers, - -- Xin LI [EMAIL PROTECTED] http://www.delphij.net/ FreeBSD - The Power to Serve! -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkkLR3AACgkQi

Re: open(2) and O_NOATIME

2008-10-30 Thread Xin LI
, but wouldn't allowing arbitrary program to decide whether atime should be changed, be a serious security disaster? Disclaimer: I'm not a big atime fan myself, actually I disable atime on a lot of my servers for performance reasons :) Cheers, - -- Xin LI [EMAIL PROTECTED] http://www.delphij.net

Re: ZFS boot

2008-10-11 Thread Xin LI
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, Matt, Matthew Dillon wrote: [...] /boot can be as complex as boot2 allows. There's nothing preventing it from being RAIDed if boot2 supported that, and there's nothing preventing it (once you had ZFS boot capabilities) from being

Debugging modify-after-free issue

2008-10-10 Thread Xin LI
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, Recently I had some crashes and other issues on my laptop and I found that, among some bugs I already caught and fixed on my local tree, there is still something like this: Oct 10 01:35:53 delta kernel: Memory modified after free

Re: Regenerate ports tree from installed ports?

2008-09-25 Thread Xin LI
named by 'pkg_info -qoa' on old system, and have the new environment reveal potential issues before making major updates to running system. Another possible approach is to update from time to time but this could cause you a lot of downtime. Cheers, - -- Xin LI [EMAIL PROTECTED] http

Re: mercurial working copy of FreeBSD src

2008-08-08 Thread Xin LI
someone should share a tarball of the hgpullsvn output, otherwise it would be a nightmare for svn.freebsd.org... Another thought would be the hg mirror provided by .fr people, which is http://hg.fr.freebsd.org/. Note that this seems to be a CVS sourced one. - -- Xin LI [EMAIL PROTECTED]http

Re: do not strip, compile with debugging symbols

2008-07-16 Thread Xin LI
. However, it still depends on the ported software whether they will strip, most times they will obey the settings (if not then it's a bug that should have fixed anyway). - -- Xin LI [EMAIL PROTECTED]http://www.delphij.net/ FreeBSD - The Power to Serve! -BEGIN PGP SIGNATURE- Version

Re: do not strip, compile with debugging symbols

2008-07-16 Thread Xin LI
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 [EMAIL PROTECTED] wrote: | On 20080716 17:37:58, Xin LI wrote: | -BEGIN PGP SIGNED MESSAGE- | Hash: SHA1 | | [EMAIL PROTECTED] wrote: | | Hello. | | | | What's the correct way to ensure that ports are built with '-g' | | and that binaries

Re: Bug in calcru in he 6.2 and 6.3 kernels

2008-07-07 Thread Xin LI
to be better than having them to pursue the mailing list archive... Cheers, - -- Xin LI [EMAIL PROTECTED]http://www.delphij.net/ FreeBSD - The Power to Serve! -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkhyfjYACgkQi+vbBBjt66CdLQCfet8ls7tfg5jV5I7gSOw8QwhC

Re: BDB corrupt - patches

2008-05-14 Thread Xin LI
://www.oracle.com/technology/software/products/berkeley-db/db/index.html FreeBSD has applied a number of fixes IIRC, if it was a BerkeleyDB bug I'd suggest that you also give Oracle developers a headsup. Cheers, - -- ** Help China's quake relief at http://www.redcross.org.cn/ | Xin LI [EMAIL

Re: CLOCK_REALTIME undefined on my system

2008-05-09 Thread Xin LI
think with #define _POSIX_C_SOURCE 199309L These will be masked... Could you please try if changing it to 200112 would work? Cheers, - -- Xin LI [EMAIL PROTECTED]http://www.delphij.net/ FreeBSD - The Power to Serve! -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.9 (FreeBSD

Re: correct #define in source to specify FBSD vs. linux?

2008-05-09 Thread Xin LI
; | what's the equiv for FreeBSD? #ifdef __FreeBSD__? - -- Xin LI [EMAIL PROTECTED]http://www.delphij.net/ FreeBSD - The Power to Serve! -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkgkmaoACgkQi+vbBBjt66C30ACeIbw6P7CuwErAIvzcUjX4d4Gk 7G0An3

Re: Improving Syslog

2008-05-02 Thread Xin LI
? Cheers, - -- Xin LI [EMAIL PROTECTED]http://www.delphij.net/ FreeBSD - The Power to Serve! -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.9 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkgbhvUACgkQi+vbBBjt66DEnwCfZbFNXV8svbv4i31uXlJNsglS 4

Some versioned storage program?

2008-03-21 Thread Xin LI
SCM software like subversion or hg, but I do not know if there is some superior stuff that matches these requirements better. Any other suggestions? Cheers, -- Xin LI [EMAIL PROTECTED]http://www.delphij.net/ FreeBSD - The Power to Serve

Re: Some versioned storage program?

2008-03-21 Thread Xin LI
Giorgos Keramidas wrote: On Fri, 21 Mar 2008 16:10:22 -0700, Xin LI [EMAIL PROTECTED] wrote: Hi, folks, I'm looking for some versioned storage program that can fulfill the following requirements: - Open source/Free Software that can run on FreeBSD, or not far (i.e. on other POSIX OS

Re: Help debugging kernel dump?

2008-02-20 Thread Xin LI
@@ -721,6 +721,7 @@ nfsrv_dorec(struct nfssvc_sock *slp, str if (nd-nd_cr != NULL) crfree(nd-nd_cr); free((caddr_t)nd, M_NFSRVDESC); + *ndp = NULL; return (error); } *ndp = nd; - -- Xin LI [EMAIL

  1   2   >