Re: A Library for Converting Data to and from C Structs for Lua

2013-11-17 Thread David Holland
On Sun, Nov 17, 2013 at 03:46:56PM -0800, John Nemeth wrote: > We should be able to have modules > in pkgsrc. There are no modules in pkgsrc yet, but There are a handful and some have been there quite a while. I believe at least some of them are now new-style modules rather than old-style lkms

re: posix_fallocate

2013-11-17 Thread matthew green
> Personally, I think the underlying structure of files should not be made > visible to apps at all - they should just see a byte stream (perhaps with > an advisory useful block size to write in). i would buy this argument if mmap()ing a large sparse file and filling it up randomly (but with rela

Re: posix_fallocate

2013-11-17 Thread Mouse
>> That's a reason to put it in the kernel, actually. The kernel can >> tell which ranges of a file have already had space allocated for >> them, so it can be just writes. > Sure, but that's just an optimisation, and surely only matters if > this is done enough that the difference is actually of s

Re: A Library for Converting Data to and from C Structs for Lua

2013-11-17 Thread John Nemeth
On Nov 17, 11:02pm, Marc Balmer wrote: } Am 17.11.13 20:40, schrieb Lourival Vieira Neto: } > On Sun, Nov 17, 2013 at 4:39 PM, David Holland wrote: } >> On Sun, Nov 17, 2013 at 01:32:03PM +0100, Hubert Feyrer wrote: } >> > >I plan to import it and to make it available to both lua(1) and lua(4) }

Re: [patch] safety of Lua byte code

2013-11-17 Thread Mouse
> Nobody would seriously claim, I think, that one can algorithmically > determine whether a given fragment of Lua *source* code is malicious. It is impossible, because the _very same code_ may be fairly called malicious when presented for execution by an attacker but not when presented for executi

Re: A Library for Converting Data to and from C Structs for Lua

2013-11-17 Thread Lourival Vieira Neto
On Sun, Nov 17, 2013 at 7:57 PM, Marc Balmer wrote: > Am 17.11.13 14:43, schrieb Lourival Vieira Neto: >> On Sun, Nov 17, 2013 at 11:23 AM, Marc Balmer wrote: >>> Am 17.11.13 13:32, schrieb Hubert Feyrer: On Sun, 17 Nov 2013, Marc Balmer wrote: > I plan to import it and to make it availa

Re: posix_fallocate

2013-11-17 Thread Robert Elz
Date:Sun, 17 Nov 2013 23:49:50 +0100 From:Rhialto Message-ID: <20131117224950.gh23...@falu.nl> | Wasn't there some (proposed? actual?) interface to find holes in files? I was told off-list about SEEK_HOLE and SEEK_DATA that allow (if the filesys supports them) apps

RE: [patch] safety of Lua byte code

2013-11-17 Thread Terry Moore
> Am 17.11.13 22:03, schrieb Terry Moore: > >> From: Marc Balmer [mailto:m...@msys.ch] > >> > >>> It's not *much* less safe than compiling and executing a string in the > >>> kernel. The only additional attack surfaces are that you can write > > things > >>> that the compiler wouldn't write. This c

Re: posix_fallocate

2013-11-17 Thread Rhialto
On Mon 18 Nov 2013 at 05:11:35 +0700, Robert Elz wrote: > how does it ever know whether or not there are > holes to fill? And why would it do it that way, and follow by fallocate() ? Wasn't there some (proposed? actual?) interface to find holes in files? -Olaf. -- ___ Olaf 'Rhialto' Seibert -

Re: [patch] changing lua_Number to int64_t

2013-11-17 Thread Marc Balmer
Am 17.11.13 22:03, schrieb Terry Moore: >> From: Marc Balmer [mailto:m...@msys.ch] >> >>> It's not *much* less safe than compiling and executing a string in the >>> kernel. The only additional attack surfaces are that you can write > things >>> that the compiler wouldn't write. This can (1) cause a

Re: posix_fallocate

2013-11-17 Thread Robert Elz
Date:Sun, 17 Nov 2013 14:12:16 -0500 (EST) From:Mouse Message-ID: <201311171912.oaa17...@chip.rodents-montreal.org> | That's a reason to put it in the kernel, actually. The kernel can tell | which ranges of a file have already had space allocated for them, so it

Re: A Library for Converting Data to and from C Structs for Lua

2013-11-17 Thread Marc Balmer
Am 17.11.13 20:40, schrieb Lourival Vieira Neto: > On Sun, Nov 17, 2013 at 4:39 PM, David Holland > wrote: >> On Sun, Nov 17, 2013 at 01:32:03PM +0100, Hubert Feyrer wrote: >> > >I plan to import it and to make it available to both lua(1) and lua(4) >> > >> > I wonder if we really need to get

Re: A Library for Converting Data to and from C Structs for Lua

2013-11-17 Thread Marc Balmer
Am 17.11.13 14:43, schrieb Lourival Vieira Neto: > On Sun, Nov 17, 2013 at 11:23 AM, Marc Balmer wrote: >> Am 17.11.13 13:32, schrieb Hubert Feyrer: >>> On Sun, 17 Nov 2013, Marc Balmer wrote: I plan to import it and to make it available to both lua(1) and lua(4) >>> >>> I wonder if we really

Re: [patch] changing lua_Number to int64_t

2013-11-17 Thread Christos Zoulas
On Nov 17, 7:14pm, lourival.n...@gmail.com (Lourival Vieira Neto) wrote: -- Subject: Re: [patch] changing lua_Number to int64_t | Humm.. I think that =A72.1 brings a good argument: "Standard Lua uses | 64-bit integers and double-precision floats, (...)". I think that | would not hurt to stick to

Re: [patch] changing lua_Number to int64_t

2013-11-17 Thread Lourival Vieira Neto
On Sun, Nov 17, 2013 at 6:45 PM, Justin Cormack wrote: > On Sun, Nov 17, 2013 at 8:39 PM, Lourival Vieira Neto > wrote: >> Well, I don't think I fully understood that; mainly because I'm not >> aware about Lua 5.3. It will provide two number types for the scripts? >> Or you are just talking about

RE: [patch] changing lua_Number to int64_t

2013-11-17 Thread Terry Moore
> From: Marc Balmer [mailto:m...@msys.ch] > > > It's not *much* less safe than compiling and executing a string in the > > kernel. The only additional attack surfaces are that you can write things > > that the compiler wouldn't write. This can (1) cause a crash at load time, > > or it can (2) caus

Re: [patch] changing lua_Number to int64_t

2013-11-17 Thread Justin Cormack
On Sun, Nov 17, 2013 at 8:39 PM, Lourival Vieira Neto wrote: > Well, I don't think I fully understood that; mainly because I'm not > aware about Lua 5.3. It will provide two number types for the scripts? > Or you are just talking about lua_Integer type on the C-side. Lua 5.1 > already has a lua_In

Re: [patch] changing lua_Number to int64_t

2013-11-17 Thread Lourival Vieira Neto
On Sun, Nov 17, 2013 at 6:13 PM, Justin Cormack wrote: > On Sun, Nov 17, 2013 at 7:56 PM, Christos Zoulas wrote: >> On Nov 17, 3:36pm, lourival.n...@gmail.com (Lourival Vieira Neto) wrote: >> -- Subject: Re: [patch] changing lua_Number to int64_t >> >> | > 1. Lua 5.3 will have 64 bit integer sup

Re: [patch] changing lua_Number to int64_t

2013-11-17 Thread Justin Cormack
On Sun, Nov 17, 2013 at 7:56 PM, Christos Zoulas wrote: > On Nov 17, 3:36pm, lourival.n...@gmail.com (Lourival Vieira Neto) wrote: > -- Subject: Re: [patch] changing lua_Number to int64_t > > | > 1. Lua 5.3 will have 64 bit integer support as standard, which will > | > make interop and reuse betw

Re: [patch] changing lua_Number to int64_t

2013-11-17 Thread Christos Zoulas
On Nov 17, 3:36pm, lourival.n...@gmail.com (Lourival Vieira Neto) wrote: -- Subject: Re: [patch] changing lua_Number to int64_t | > 1. Lua 5.3 will have 64 bit integer support as standard, which will | > make interop and reuse between kernel and userspace code much easier, | > iff we use int64_t

Re: A Library for Converting Data to and from C Structs for Lua

2013-11-17 Thread Lourival Vieira Neto
On Sun, Nov 17, 2013 at 4:39 PM, David Holland wrote: > On Sun, Nov 17, 2013 at 01:32:03PM +0100, Hubert Feyrer wrote: > > >I plan to import it and to make it available to both lua(1) and lua(4) > > > > I wonder if we really need to get all this into NetBSD, > > instead of moving it to pkgsrc

Re: RLIMIT_FSIZE and SIGXFSZ

2013-11-17 Thread Mouse
>> [...SIGXFSZ...] >> It seems to me it would be more useful to do something like what >> RLIMIT_CPU does, and generate SIGXFSZ for such operations, but fail >> them only when the size exceeds the hard limit. [...] > So I think the CPU limit signalling is treated as a special case > because it's p

Re: posix_fallocate

2013-11-17 Thread Mouse
>>> [posix_fallocate] >> We could fork a kernel thread that would go to userspace to do the >> work with a write() loop, with appropriate credentials. Does it >> makes sense? > It would need to be a read/write loop, nothing says that there cannot > already be blocks allocated in the space being fa

Re: RLIMIT_FSIZE and SIGXFSZ

2013-11-17 Thread David Holland
On Sat, Nov 16, 2013 at 12:40:22AM -0500, Mouse wrote: > The documentation I have (which is consistent across 1.4T, 4.0.1, and > 5.2) says that "[a] file I/O operation that would create a file larger > that the process' soft limit will cause the write to fail and a signal > SIGXFSZ to be genera

Re: posix_fallocate

2013-11-17 Thread David Holland
On Sun, Nov 17, 2013 at 10:33:43AM +0100, Emmanuel Dreyfus wrote: > > To answer both you and the Mouse - the difference is that a user process > > actually writing data consumes measurable resources, and thus is easy to > > find and kill. When everything happens in the kernel, spotting which

Re: posix_fallocate

2013-11-17 Thread David Holland
On Sun, Nov 17, 2013 at 10:24:04AM +0100, Emmanuel Dreyfus wrote: > > I think the chief question at this level is whether to support the > > "keep the length" flag for fallocate, fdiscard, both, or neither. The > > linux fallocate uses this to allow allocating blocks past EOF, which > > strikes

Re: posix_fallocate

2013-11-17 Thread David Holland
On Sun, Nov 17, 2013 at 10:24:04AM +0100, Rhialto wrote: > > I think the chief question at this level is whether to support the > > "keep the length" flag for fallocate, fdiscard, both, or neither. The > > What "keep the length" flag? I don't see one at the indicated URL. It's a linuxism in l

Re: A Library for Converting Data to and from C Structs for Lua

2013-11-17 Thread David Holland
On Sun, Nov 17, 2013 at 01:32:03PM +0100, Hubert Feyrer wrote: > >I plan to import it and to make it available to both lua(1) and lua(4) > > I wonder if we really need to get all this into NetBSD, > instead of moving it to pkgsrc somehow. This... -- David A. Holland dholl...@netbsd.org

Re: [patch] changing lua_Number to int64_t

2013-11-17 Thread Lourival Vieira Neto
On Sat, Nov 16, 2013 at 9:25 PM, Lourival Vieira Neto wrote: > (...) I moved strtoimax.c to common/libc. Don't know if > someone sees a problem on that. BTW, is it OK? Could someone review this? Regards, -- Lourival Vieira Neto

Re: [patch] changing lua_Number to int64_t

2013-11-17 Thread Lourival Vieira Neto
On Sun, Nov 17, 2013 at 3:10 PM, Justin Cormack wrote: > On Sun, Nov 17, 2013 at 4:52 PM, Lourival Vieira Neto > wrote: >> On Sun, Nov 17, 2013 at 2:02 PM, Christos Zoulas wrote: >>> On Nov 17, 10:46am, lourival.n...@gmail.com (Lourival Vieira Neto) wrote: >>> -- Subject: Re: [patch] changing lu

Re: [patch] changing lua_Number to int64_t

2013-11-17 Thread Justin Cormack
On Sun, Nov 17, 2013 at 4:52 PM, Lourival Vieira Neto wrote: > On Sun, Nov 17, 2013 at 2:02 PM, Christos Zoulas wrote: >> On Nov 17, 10:46am, lourival.n...@gmail.com (Lourival Vieira Neto) wrote: >> -- Subject: Re: [patch] changing lua_Number to int64_t >> >> | On Sun, Nov 17, 2013 at 7:37 AM, Ma

Re: [patch] changing lua_Number to int64_t

2013-11-17 Thread Lourival Vieira Neto
On Sun, Nov 17, 2013 at 2:02 PM, Christos Zoulas wrote: > On Nov 17, 10:46am, lourival.n...@gmail.com (Lourival Vieira Neto) wrote: > -- Subject: Re: [patch] changing lua_Number to int64_t > > | On Sun, Nov 17, 2013 at 7:37 AM, Marc Balmer wrote: > | > Am 17.11.13 04:49, schrieb Terry Moore: > |

Re: [patch] changing lua_Number to int64_t

2013-11-17 Thread Christos Zoulas
On Nov 17, 10:46am, lourival.n...@gmail.com (Lourival Vieira Neto) wrote: -- Subject: Re: [patch] changing lua_Number to int64_t | On Sun, Nov 17, 2013 at 7:37 AM, Marc Balmer wrote: | > Am 17.11.13 04:49, schrieb Terry Moore: | >> I believe that if you want the Lua scripts to be portable across

Re: [patch] changing lua_Number to int64_t

2013-11-17 Thread Christos Zoulas
On Nov 17, 10:36am, lourival.n...@gmail.com (Lourival Vieira Neto) wrote: -- Subject: Re: [patch] changing lua_Number to int64_t | I mean know it as a script programmer. I think that would be helpful | to know the exact lua_Number width when you are writing a script. | AFAIK, you don't have sizeo

Re: [patch] changing lua_Number to int64_t

2013-11-17 Thread Lourival Vieira Neto
On Sun, Nov 17, 2013 at 12:58 PM, Christos Zoulas wrote: > On Nov 17, 1:36am, lourival.n...@gmail.com (Lourival Vieira Neto) wrote: > -- Subject: Re: [patch] changing lua_Number to int64_t > > | > Bigger is better. And you can use %jd to print which is a big win. > | > | I agree that bigger is be

Re: posix_fallocate

2013-11-17 Thread Christos Zoulas
On Nov 17, 1:15pm, k...@munnari.oz.au (Robert Elz) wrote: -- Subject: Re: posix_fallocate | ps: I have not examined the FreeBSD implementation - if they've done it the | hard, safe, way, and worked out all the potential kinks, and if it doesn't | depend too much upon other aspects of their I/O sy

Re: [patch] changing lua_Number to int64_t

2013-11-17 Thread Christos Zoulas
On Nov 17, 1:36am, lourival.n...@gmail.com (Lourival Vieira Neto) wrote: -- Subject: Re: [patch] changing lua_Number to int64_t | > Bigger is better. And you can use %jd to print which is a big win. | | I agree that bigger is better and %jd is much better then "%" PRI/SCN. | But don't you think

Re: A Library for Converting Data to and from C Structs for Lua

2013-11-17 Thread Lourival Vieira Neto
On Sun, Nov 17, 2013 at 11:23 AM, Marc Balmer wrote: > Am 17.11.13 13:32, schrieb Hubert Feyrer: >> On Sun, 17 Nov 2013, Marc Balmer wrote: >>> I plan to import it and to make it available to both lua(1) and lua(4) >> >> I wonder if we really need to get all this into NetBSD, >> instead of moving

Re: [patch] changing lua_Number to int64_t

2013-11-17 Thread Lourival Vieira Neto
On Sun, Nov 17, 2013 at 10:10 AM, Justin Cormack wrote: > On Sun, Nov 17, 2013 at 11:30 AM, Alexander Nasonov wrote: >> Mouse wrote: >>> Also, using an exact-width type assumes that the hardware/compiler in >>> question _has_ such a type. >>> >>> It's possible that lua, NetBSD, or the combination

Re: [patch] changing lua_Number to int64_t

2013-11-17 Thread Lourival Vieira Neto
On Sun, Nov 17, 2013 at 9:30 AM, Alexander Nasonov wrote: > Mouse wrote: >> Also, using an exact-width type assumes that the hardware/compiler in >> question _has_ such a type. >> >> It's possible that lua, NetBSD, or the combination of the two is >> willing to write off portability to machines wh

Re: A Library for Converting Data to and from C Structs for Lua

2013-11-17 Thread Marc Balmer
Am 17.11.13 13:32, schrieb Hubert Feyrer: > On Sun, 17 Nov 2013, Marc Balmer wrote: >> I plan to import it and to make it available to both lua(1) and lua(4) > > I wonder if we really need to get all this into NetBSD, > instead of moving it to pkgsrc somehow. Yes, we need it to handle structured

Re: A Library for Converting Data to and from C Structs for Lua

2013-11-17 Thread Marc Balmer
Am 17.11.13 13:20, schrieb Justin Cormack: > On Sun, Nov 17, 2013 at 12:05 PM, Marc Balmer wrote: >> I came accross a small library for converting data to an from C structs >> for Lua, written by Roberto Ierusalimschy: >> >> http://www.inf.puc-rio.br/~roberto/struct/ >> >> I plan to import it and

Re: A Library for Converting Data to and from C Structs for Lua

2013-11-17 Thread Marc Balmer
Am 17.11.13 13:21, schrieb Alexander Nasonov: > Marc Balmer wrote: >> I came accross a small library for converting data to an from C structs >> for Lua, written by Roberto Ierusalimschy: >> >> http://www.inf.puc-rio.br/~roberto/struct/ >> >> I plan to import it and to make it available to both lua

Re: [patch] changing lua_Number to int64_t

2013-11-17 Thread Lourival Vieira Neto
On Sun, Nov 17, 2013 at 8:52 AM, Alexander Nasonov wrote: > Marc Balmer wrote: >> The basic issue here is that Lua has only _one_ numerical data type, >> which is an integral type in kernel, but a floating point type in userspace. > > Right, not everyone here knows this I guess. Thanks for making

Re: [patch] changing lua_Number to int64_t

2013-11-17 Thread Lourival Vieira Neto
On Sun, Nov 17, 2013 at 7:37 AM, Marc Balmer wrote: > Am 17.11.13 04:49, schrieb Terry Moore: >> I believe that if you want the Lua scripts to be portable across NetBSD >> deployments, you should choose a well-known fixed width. > > I don't see this as very important. Lua scripts will hardly depe

Re: [patch] changing lua_Number to int64_t

2013-11-17 Thread Lourival Vieira Neto
On Sun, Nov 17, 2013 at 7:35 AM, Marc Balmer wrote: > Am 17.11.13 04:36, schrieb Lourival Vieira Neto: >> On Sat, Nov 16, 2013 at 10:44 PM, Christos Zoulas >> wrote: >>> On Nov 16, 9:30pm, lourival.n...@gmail.com (Lourival Vieira Neto) wrote: >>> -- Subject: Re: [patch] changing lua_Number to i

Re: A Library for Converting Data to and from C Structs for Lua

2013-11-17 Thread Hubert Feyrer
On Sun, 17 Nov 2013, Marc Balmer wrote: I plan to import it and to make it available to both lua(1) and lua(4) I wonder if we really need to get all this into NetBSD, instead of moving it to pkgsrc somehow. - Hubert

Re: A Library for Converting Data to and from C Structs for Lua

2013-11-17 Thread Alexander Nasonov
Marc Balmer wrote: > I came accross a small library for converting data to an from C structs > for Lua, written by Roberto Ierusalimschy: > > http://www.inf.puc-rio.br/~roberto/struct/ > > I plan to import it and to make it available to both lua(1) and lua(4) > as follows: > > The source code wi

Re: A Library for Converting Data to and from C Structs for Lua

2013-11-17 Thread Justin Cormack
On Sun, Nov 17, 2013 at 12:05 PM, Marc Balmer wrote: > I came accross a small library for converting data to an from C structs > for Lua, written by Roberto Ierusalimschy: > > http://www.inf.puc-rio.br/~roberto/struct/ > > I plan to import it and to make it available to both lua(1) and lua(4) > as

Re: [patch] changing lua_Number to int64_t

2013-11-17 Thread Alan Barrett
On Sun, 17 Nov 2013, Mouse wrote: sizeof returns the number of bytes used to store an object. This is only loosely related to the number of data bits in the object; the latter is no more than sizeof the object times CHAR_BIT, but it may be lower. Also, using an exact-width type assumes that t

Re: [patch] changing lua_Number to int64_t

2013-11-17 Thread Justin Cormack
On Sun, Nov 17, 2013 at 11:30 AM, Alexander Nasonov wrote: > Mouse wrote: >> Also, using an exact-width type assumes that the hardware/compiler in >> question _has_ such a type. >> >> It's possible that lua, NetBSD, or the combination of the two is >> willing to write off portability to machines w

A Library for Converting Data to and from C Structs for Lua

2013-11-17 Thread Marc Balmer
I came accross a small library for converting data to an from C structs for Lua, written by Roberto Ierusalimschy: http://www.inf.puc-rio.br/~roberto/struct/ I plan to import it and to make it available to both lua(1) and lua(4) as follows: The source code will be imported into ${NETBSDSRCDIR}/s

Re: posix_fallocate

2013-11-17 Thread Robert Elz
Date:Sun, 17 Nov 2013 10:33:43 +0100 From:m...@netbsd.org (Emmanuel Dreyfus) Message-ID: <1lch6me.jn7y3m16232ejm%m...@netbsd.org> | We could fork a kernel thread that would go to userspace to do the work | with a write() loop, with appropriate credentials. Does it

Re: [patch] changing lua_Number to int64_t

2013-11-17 Thread Alexander Nasonov
Mouse wrote: > Also, using an exact-width type assumes that the hardware/compiler in > question _has_ such a type. > > It's possible that lua, NetBSD, or the combination of the two is > willing to write off portability to machines where one or both of those > potential portability issues becomes a

Re: [patch] changing lua_Number to int64_t

2013-11-17 Thread Alexander Nasonov
Marc Balmer wrote: > The basic issue here is that Lua has only _one_ numerical data type, > which is an integral type in kernel, but a floating point type in userspace. Right, not everyone here knows this I guess. Thanks for making it clear. > > Also, some libraries work in both spaces. Lua bindi

Re: [patch] changing lua_Number to int64_t

2013-11-17 Thread Marc Balmer
Am 17.11.13 11:18, schrieb Alexander Nasonov: > Lourival Vieira Neto wrote: >> I don't think that keeping compatibility with userspace Lua is the >> right argument. We already have lost this kind of compatibility by >> using an integer type for lua_Number. Expecting that kernel lua_Number >> works

Re: [patch] changing lua_Number to int64_t

2013-11-17 Thread Alexander Nasonov
Lourival Vieira Neto wrote: > I don't think that keeping compatibility with userspace Lua is the > right argument. We already have lost this kind of compatibility by > using an integer type for lua_Number. Expecting that kernel lua_Number > works just like userspace lua_Numbers could lead to misund

Re: [patch] changing lua_Number to int64_t

2013-11-17 Thread Mouse
>> I agree that bigger is better and %jd is much better then "%" >> PRI/SCN. But don't you think that to know the exact width is even >> better? > You can always use sizeof if the need to know the size arises. sizeof returns the number of bytes used to store an object. This is only loosely relat

Re: RLIMIT_FSIZE and SIGXFSZ

2013-11-17 Thread Nicolas Joly
On Sat, Nov 16, 2013 at 12:40:22AM -0500, Mouse wrote: > The documentation I have (which is consistent across 1.4T, 4.0.1, and > 5.2) says that "[a] file I/O operation that would create a file larger > that the process' soft limit will cause the write to fail and a signal > SIGXFSZ to be generated"

Re: posix_fallocate

2013-11-17 Thread Mouse
>> I think the chief question at this level is whether to support the >> "keep the length" flag for fallocate, fdiscard, both, or neither. >> The linux fallocate uses this to allow allocating blocks past EOF, >> which strikes me as nuts; > Why is it bad? Well, I'm not dholland. But my own answer

Re: [patch] changing lua_Number to int64_t

2013-11-17 Thread Marc Balmer
Am 17.11.13 06:30, schrieb Terry Moore: >> From: Lourival Vieira Neto [mailto:lourival.n...@gmail.com] >>> Watch out, by the way, for compiled scripts; I have not checked Lua 5.x, > but >>> you may find if not careful that the compiled binary is not loadable on >>> machines with different choices f

Re: [patch] changing lua_Number to int64_t

2013-11-17 Thread Marc Balmer
Am 17.11.13 04:49, schrieb Terry Moore: > I believe that if you want the Lua scripts to be portable across NetBSD > deployments, you should choose a well-known fixed width. I don't see this as very important. Lua scripts will hardly depend on the size of an integer. > Watch out, by the way, for

Re: [patch] changing lua_Number to int64_t

2013-11-17 Thread Marc Balmer
Am 17.11.13 00:47, schrieb Alexander Nasonov: > PS Why do you still use a shadow copy of luaconf.h? Please add your > changes to the main luaconf.h. If you guard your kernel changes properly > with _KERNEL, they will not affect userspace. I totally agree. It was probably just an oversight when I

Re: [patch] changing lua_Number to int64_t

2013-11-17 Thread Marc Balmer
Am 17.11.13 04:36, schrieb Lourival Vieira Neto: > On Sat, Nov 16, 2013 at 10:44 PM, Christos Zoulas wrote: >> On Nov 16, 9:30pm, lourival.n...@gmail.com (Lourival Vieira Neto) wrote: >> -- Subject: Re: [patch] changing lua_Number to int64_t >> >> | On Sat, Nov 16, 2013 at 8:52 PM, Christos Zoula

Re: posix_fallocate

2013-11-17 Thread Emmanuel Dreyfus
Robert Elz wrote: > To answer both you and the Mouse - the difference is that a user process > actually writing data consumes measurable resources, and thus is easy to > find and kill. When everything happens in the kernel, spotting which > arrantly idle user process is making it happen is not

Re: posix_fallocate

2013-11-17 Thread Robert Elz
Date:Sun, 17 Nov 2013 08:05:03 + From:David Holland Message-ID: <20131117080503.gb7...@netbsd.org> | I don't see how this is a DoS attack that e.g. dd if=/dev/urandom | of=/dev/null isn't. To answer both you and the Mouse - the difference is that a user proce

Re: posix_fallocate

2013-11-17 Thread Rhialto
On Sun 17 Nov 2013 at 07:59:44 +, David Holland wrote: > I think the chief question at this level is whether to support the > "keep the length" flag for fallocate, fdiscard, both, or neither. The What "keep the length" flag? I don't see one at the indicated URL. The way I read it, the call ju

Re: posix_fallocate

2013-11-17 Thread Emmanuel Dreyfus
David Holland wrote: > I think the chief question at this level is whether to support the > "keep the length" flag for fallocate, fdiscard, both, or neither. The > linux fallocate uses this to allow allocating blocks past EOF, which > strikes me as nuts; Why is it bad? I am interested to port

Re: posix_fallocate

2013-11-17 Thread David Holland
On Sun, Nov 17, 2013 at 01:15:14PM +0700, Robert Elz wrote: > Alternatively, the system could actually allocate all required blocks at > the time of the posix_fallocate() call - effectively filling in any holes > in the designated region of the file. The spec doesn't say what data is > to be

Re: posix_fallocate

2013-11-17 Thread David Holland
On Sun, Nov 17, 2013 at 02:02:15AM +0100, Emmanuel Dreyfus wrote: > NetBSD-current seems to lack posix_fallocate(2) > http://pubs.opengroup.org/onlinepubs/009695299/functions/posix_fallocate > .html > > Is someone already working on it, or has thoughs about how it should be > implemented? I