Re: bozohttpd .htpasswd basic auth being non recursive

2019-05-31 Thread Martin Husemann
On Sat, Jun 01, 2019 at 12:09:34PM +0530, Mayuresh wrote: > On Sat, Jun 01, 2019 at 08:59:45AM +0530, Mayuresh wrote: > > I wish bozohttpd supported .htpasswd for cgi scripts! > > I just checked, that it doesn't. It does, but not for /cgi-bin/ ones. I run a service that I implemented in a perl

Re: bozohttpd .htpasswd basic auth being non recursive

2019-05-31 Thread Mayuresh
On Sat, Jun 01, 2019 at 08:59:45AM +0530, Mayuresh wrote: I wish bozohttpd supported .htpasswd for cgi scripts! I just checked, that it doesn't. I could have wrapped static contents under a cgi script to meet the auth requirement for all contents with one .htpasswd file. Mayuresh

Re: bozohttpd .htpasswd basic auth being non recursive

2019-05-31 Thread Matt Sporleder
> On May 31, 2019, at 10:01 PM, Mayuresh wrote: > > On Fri, May 31, 2019 at 07:52:25PM +, Christopher Pinon wrote: >>> I meant, if we can't solve this in bozohttpd, please suggest some other >>> httpd which is nearest match to its minimalistic approach. >> >> apache? ;-) > > Well... minim

Re: bozohttpd .htpasswd basic auth being non recursive

2019-05-31 Thread Mayuresh
On Fri, May 31, 2019 at 10:45:08PM -0400, Matt Sporleder wrote: >Apache runs in well under 1MB and does all of this stuff and more. >I wrote the original version of this if the default config freaks you out >https://cwiki.apache.org/confluence/display/HTTPD/Minimal+Config >Don’t use

Re: bozohttpd .htpasswd basic auth being non recursive

2019-05-31 Thread Mayuresh
On Fri, May 31, 2019 at 07:52:25PM +, Christopher Pinon wrote: > > I meant, if we can't solve this in bozohttpd, please suggest some other > > httpd which is nearest match to its minimalistic approach. > > apache? ;-) Well... minimalistic? Any takers for lighttpd, it it light as its name sug

Re: GPT BIOS boot

2019-05-31 Thread Emmanuel Dreyfus
Greg Troxel wrote: > > Adding GPT support to primary bootstrap (bootxx) seems straightforward, > > but I still wonder about secondary boostrap (boot). > > Sure, but it seems clear that either there is a way to pass in the start > offset, or it has logic to parse partition tables and skip raid >

Re: GPT BIOS boot

2019-05-31 Thread Greg Troxel
m...@netbsd.org (Emmanuel Dreyfus) writes: > Greg Troxel wrote: > >> Right, but this is just code that isn't written, and it seems like it >> could not be that hard. > > Adding GPT support to primary bootstrap (bootxx) seems straightforward, > but I still wonder about secondary boostrap (boot).

Re: bozohttpd .htpasswd basic auth being non recursive

2019-05-31 Thread Christopher Pinon
Mayuresh wrote: > On Fri, May 31, 2019 at 11:18:40PM +0530, Mayuresh wrote: > > Has anyone come across this situation and how do you deal with it. I like > > bozohttpd's minimalistic approach and would switch away from it only as a > > last resort. > > I meant, if we can't solve this in bozohttp

Re: GPT BIOS boot

2019-05-31 Thread Emmanuel Dreyfus
Greg Troxel wrote: > Right, but this is just code that isn't written, and it seems like it > could not be that hard. Adding GPT support to primary bootstrap (bootxx) seems straightforward, but I still wonder about secondary boostrap (boot). -- Emmanuel Dreyfus http://hcpnet.free.fr/pubz m...@n

Re: bozohttpd .htpasswd basic auth being non recursive

2019-05-31 Thread Mayuresh
On Fri, May 31, 2019 at 11:18:40PM +0530, Mayuresh wrote: > Has anyone come across this situation and how do you deal with it. I like > bozohttpd's minimalistic approach and would switch away from it only as a > last resort. I meant, if we can't solve this in bozohttpd, please suggest some other h

bozohttpd .htpasswd basic auth being non recursive

2019-05-31 Thread Mayuresh
man httpd makes it clear that the .htpasswd authentication does not apply to subdirectories. .htpasswd exists in the directory of the current request, bozohttpd will restrict access to documents in that directory using the RFC 2617 HTTP “Basic” authentication scheme. Note: Thi

Re: GPT BIOS boot

2019-05-31 Thread Greg Troxel
m...@netbsd.org (Emmanuel Dreyfus) writes: > Robert Elz wrote: > >> If you don't know already, it doesn't > > Right, then I am back to the original problem: we currently have no way > to boot off a RAID 1 that has a filesystem larger than 2 TB *if the disk > does not features 4kB blocks*. > > F

Re: GPT BIOS boot

2019-05-31 Thread Robert Elz
Date:Sat, 1 Jun 2019 02:52:41 +1000 From:Nathanial Sloss Message-ID: <201906010252.42361@netbsd.org> | I would create a small gpt wedge on the disc an put on it | /boot /boot.cfg and the kernel If you need them, you might want the kernel modules there as well

Re: GPT BIOS boot

2019-05-31 Thread Nathanial Sloss
Hi, I haven't been following the thread closely so please disregard if this has already been suggested. I setup all of my machines to raid-1 with pairs of 6tb drives last year. I unfortunately have to boot from usb thumbdrive due to being unable to boot from a gpt wedege with in a raid 1 gpt w

Re: GPT BIOS boot

2019-05-31 Thread Emmanuel Dreyfus
Robert Elz wrote: > If you don't know already, it doesn't Right, then I am back to the original problem: we currently have no way to boot off a RAID 1 that has a filesystem larger than 2 TB *if the disk does not features 4kB blocks*. Filesystem larger than 2 TB requires a GPT, and bootloaders

Re: GPT BIOS boot

2019-05-31 Thread Dima Veselov
31.05.2019 18:39, U'll Be King of the Stars пишет: Well, you could, but I doubt that would work - it isn't wise to lie to the system... But it works with drives that really have 4K sectors. Sorry, I do not get it: how can I know if the disk has 4k sectors, andd if it does, how can I rework th

Re: GPT BIOS boot

2019-05-31 Thread U'll Be King of the Stars
On 31/05/2019 16:00, Emmanuel Dreyfus wrote: > Robert Elz wrote: > >> Well, you could, but I doubt that would work - it isn't wise to lie >> to the system... But it works with drives that really have 4K sectors. > > Sorry, I do not get it: how can I know if the disk has 4k sectors, andd > if i

Re: GPT BIOS boot

2019-05-31 Thread Robert Elz
Date:Fri, 31 May 2019 17:00:13 +0200 From:m...@netbsd.org (Emmanuel Dreyfus) Message-ID: <1o8g9t3.1xh6erjzo45lum%m...@netbsd.org> | Sorry, I do not get it: how can I know if the disk has 4k sectors, It will tell you when asked - which the kernel does when it attache

intrctl(8)

2019-05-31 Thread Sad Clouds
Hi, I have a rather slow Intel Atom CPU, so when running NFS copy over 1GbE, one CPU is quite busy servicing interrupts. So with NetBSD-8 there is intrctl command: # intrctl list interrupt id CPU0 CPU1 CPU2 CPU3 device name(s) ioapic0 pin 90*0 0 0 acpi SCI ioapic0 pin

Re: GPT BIOS boot

2019-05-31 Thread Emmanuel Dreyfus
Robert Elz wrote: > Well, you could, but I doubt that would work - it isn't wise to lie > to the system... But it works with drives that really have 4K sectors. Sorry, I do not get it: how can I know if the disk has 4k sectors, andd if it does, how can I rework the disklabel so that it can des

Re: How to use bioctl with mpt?

2019-05-31 Thread Dima Veselov
I have no deep knowledge of NetBSD code, but I use lot of servers in production with LSI 1064 and 1068. I think mpt driver lack real support for RAID management on these chips, Unknown async events are proving that. I may be wrong but I have no cases where RAID was managed through bio and mpt. 31

How to use bioctl with mpt?

2019-05-31 Thread John Klos
Hello, all, I'm trying to figure out how to create a mirrored set of disks using bioctl with an mpt controller: mpt0 at pci11 dev 1 function 0: Symbios Logic SAS1064 (rev. 0x02) mpt0: interrupting at ivec 1f8f mpt0: Phy 0: Link Status Unknown mpt0: Phy 0: Link Status Unknown mpt0: Phy 0: Link

Re: GPT BIOS boot

2019-05-31 Thread Robert Elz
Date:Fri, 31 May 2019 12:02:21 +0200 From:m...@netbsd.org (Emmanuel Dreyfus) Message-ID: <1o8fw11.vifpmjr39i79m%m...@netbsd.org> | You mean I edit the disklabel, change bytes/sector from 512 to 4096, and | recompute everything with the new block size? Well, you co

Re: GPT BIOS boot

2019-05-31 Thread Michael van Elst
m...@netbsd.org (Emmanuel Dreyfus) writes: >You mean I edit the disklabel, change bytes/sector from 512 to 4096, and >recompute everything with the new block size? >Will that work with an existing filesystem (without the need to run >newfs again)? The disklabel is supposed to give you informatio

Re: GPT BIOS boot

2019-05-31 Thread Emmanuel Dreyfus
Robert Elz wrote: > I suspect that what you're thinking of is when some other partitioning > scheme is used - both MBR and disklabel are limited to 32 bit block > counts and offsets.(GPT isn't).Nb: block counts: if you have a > 4KB block size device, then you can get (2^32 -1 ) * 4K bytes

Re: GPT BIOS boot

2019-05-31 Thread Emmanuel Dreyfus
Martin Husemann wrote: > You can use the raw disk partition as only partition Well, resize_ffs will not cope with that. Even with the -s flag, it fails to act on a big (> 2 TB) raid0d. -- Emmanuel Dreyfus http://hcpnet.free.fr/pubz m...@netbsd.org