Re: Problems with 9.0 PowerPC images from main ftp site

2012-02-20 Thread Super Bisquit
It may have been the media I used. I was able to install from the
releases on your FreeBSD repo page.
I have an iMac G4 800MHz that is being used.
Also, the firmware is at 3.X if that means anything.



On 2/19/12, Nathan Whitehorn  wrote:
> On 02/19/12 04:28, Super Bisquit wrote:
>> I decided to try burning an image from Index of
>> ftp://ftp.freebsd.org/pub/FreeBSD/releases/powerpc/powerpc/ISO-IMAGES/9.0/
>>
>> And here are the following errors:
>>
>> 1.) The usb image doesn't boot. From following Whitehorn and others on
>> the FreeBSD PowerPC mailing list, one needs to have the bootloader
>> dd'ed to a HFS formatted partition of 1MB.
>
> The USB image includes this. Some Powermacs don't have the ability to
> boot from USB, however.
>
>> A README with basic instructions and/or references to forum and
>> mailing list posts needs to be available for all non i386/amd64
>> systems.
>>
>> 2) The boot-only and  disc-1 images stop at
>> sc0: Unknown<16 virtual consoles, flags=0x300>
>
> What hardware were you using? The ISOs work fine on at least the systems
> I've tested on. There was a problem with the ATA driver on a few
> machines that could supposedly be solved by setting the loader tunable
> hint.ata.X.mode to turn off DMA (see
> http://www.freebsd.org/cgi/query-pr.cgi?pr=164123).
> -Nathan
>
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: 8.3-BETA1 no connection how to troubleshoot

2012-02-20 Thread Glen Barber
On Mon, Feb 20, 2012 at 09:52:32PM -0600, Antonio Olivares wrote:
> On Mon, Feb 20, 2012 at 9:47 PM, Glen Barber  wrote:
> > On Mon, Feb 20, 2012 at 08:23:34PM -0600, Antonio Olivares wrote:
> >> synchronous_dhclient="YES"
> >> ifconfig msk0="DHCP"
> >>
> >
> > Is this copy/pasted?
> >
> > If so, it's wrong.  It should be:
> >
> >  ifconfig_msk0="DHCP"
> >
> > (Note the lack of a space between 'ifconfig' and 'msk0'.)
> >
> > Glen
> >
> 
> It was a typo :)   I was submitting from other machine.  Commenting
> the firewall options in /etc/rc.conf fixes the situation.  I need to
> troubleshoot the firewall now :)  Thanks to all who have responded and
> came up with ideas to try out.  I did try the netstat command
> suggested also.  Saw ipv6 and ipv4 connections.  These gave me trouble
> in school network, but here all is well.
> 

Good to hear.  :)

(In fact, I just saw your follow up noting everything is okay, so sorry
about the unnecessary reply.)

Glen

___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: 8.3-BETA1 no connection how to troubleshoot

2012-02-20 Thread Antonio Olivares
On Mon, Feb 20, 2012 at 9:47 PM, Glen Barber  wrote:
> On Mon, Feb 20, 2012 at 08:23:34PM -0600, Antonio Olivares wrote:
>> synchronous_dhclient="YES"
>> ifconfig msk0="DHCP"
>>
>
> Is this copy/pasted?
>
> If so, it's wrong.  It should be:
>
>  ifconfig_msk0="DHCP"
>
> (Note the lack of a space between 'ifconfig' and 'msk0'.)
>
> Glen
>

It was a typo :)   I was submitting from other machine.  Commenting
the firewall options in /etc/rc.conf fixes the situation.  I need to
troubleshoot the firewall now :)  Thanks to all who have responded and
came up with ideas to try out.  I did try the netstat command
suggested also.  Saw ipv6 and ipv4 connections.  These gave me trouble
in school network, but here all is well.

Regards,


Antonio
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: 8.3-BETA1 no connection how to troubleshoot

2012-02-20 Thread Glen Barber
On Mon, Feb 20, 2012 at 08:23:34PM -0600, Antonio Olivares wrote:
> synchronous_dhclient="YES"
> ifconfig msk0="DHCP"
> 

Is this copy/pasted?

If so, it's wrong.  It should be:

  ifconfig_msk0="DHCP"

(Note the lack of a space between 'ifconfig' and 'msk0'.)

Glen

___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: 8.3-BETA1 no connection how to troubleshoot

2012-02-20 Thread Erich Dollansky
Hi,

On Tuesday 21 February 2012 09:23:34 Antonio Olivares wrote:
> Dear folks,
> 
> I have upgraded via freebsd-update to 8.3 BETA 1 as instructed in
> release announcement:
> 
> http://lists.freebsd.org/pipermail/freebsd-stable/2012-February/066340.html
> 
> Machine was working well with 8.2-RELEASE-p3 since I could not got to
> 8.2-RELEASE-p6,  I decided it was best to test out 8.3-BETA1 and
> freebsd-update my way to 8.3-RELEASE when it is ready.  Now when
> starting the system, I cannot get connected.  The machine has three
> network devices  two wired, one wireless
> 
> msk0
> re0
> 
> urtw0
> 
> of which msk0 was the only one which was connected directly.  I have
> in /etc/rc.conf
> 
> synchronous_dhclient="YES"
> ifconfig msk0="DHCP"
> 
> it picks up ip address, but cannot ping any website and/or connect.
> Are there things I can try to troubleshoot this?
> 
the gateway seems not to be known.

What does

netstat -r

say?

Do you know the gateway address?

You can set it with 

route add default xx.cvc.vv.bb

Erich
Erich
> Thanks in Advance,
> 
> Antonio
> ___
> freebsd-current@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
> 
> 
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


8.3-BETA1 no connection how to troubleshoot

2012-02-20 Thread Antonio Olivares
Dear folks,

I have upgraded via freebsd-update to 8.3 BETA 1 as instructed in
release announcement:

http://lists.freebsd.org/pipermail/freebsd-stable/2012-February/066340.html

Machine was working well with 8.2-RELEASE-p3 since I could not got to
8.2-RELEASE-p6,  I decided it was best to test out 8.3-BETA1 and
freebsd-update my way to 8.3-RELEASE when it is ready.  Now when
starting the system, I cannot get connected.  The machine has three
network devices  two wired, one wireless

msk0
re0

urtw0

of which msk0 was the only one which was connected directly.  I have
in /etc/rc.conf

synchronous_dhclient="YES"
ifconfig msk0="DHCP"

it picks up ip address, but cannot ping any website and/or connect.
Are there things I can try to troubleshoot this?

Thanks in Advance,

Antonio
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: 8.3-BETA1 no connection how to troubleshoot

2012-02-20 Thread Antonio Olivares
On Mon, Feb 20, 2012 at 8:23 PM, Antonio Olivares
 wrote:
> Dear folks,
>
> I have upgraded via freebsd-update to 8.3 BETA 1 as instructed in
> release announcement:
>
> http://lists.freebsd.org/pipermail/freebsd-stable/2012-February/066340.html
>
> Machine was working well with 8.2-RELEASE-p3 since I could not got to
> 8.2-RELEASE-p6,  I decided it was best to test out 8.3-BETA1 and
> freebsd-update my way to 8.3-RELEASE when it is ready.  Now when
> starting the system, I cannot get connected.  The machine has three
> network devices  two wired, one wireless
>
> msk0
> re0
>
> urtw0
>
> of which msk0 was the only one which was connected directly.  I have
> in /etc/rc.conf
>
> synchronous_dhclient="YES"
> ifconfig msk0="DHCP"
>
> it picks up ip address, but cannot ping any website and/or connect.
> Are there things I can try to troubleshoot this?
>
> Thanks in Advance,
>
> Antonio

I have found a culprit.  The firewall blocked access :(
I commented the sections in /etc/rc.conf and I am back in business :)

quadcore# ifconfig -a
msk0: flags=8843 metric 0 mtu 1500

options=c011b
ether 00:1d:60:33:ca:b0
inet 192.168.1.8 netmask 0xff00 broadcast 192.168.1.255
media: Ethernet autoselect (100baseTX
)
status: active
fwe0: flags=8802 metric 0 mtu 1500
options=8
ether 02:11:d8:6b:f8:84
ch 1 dma -1
fwip0: flags=8802 metric 0 mtu 1500
lladdr 0.11.d8.0.1.6b.f8.84.a.2.ff.fe.0.0.0.0
re0: flags=8802 metric 0 mtu 1500

options=209b
ether 00:1d:60:33:d1:16
media: Ethernet autoselect (10baseT/UTP )
status: no carrier
lo0: flags=8049 metric 0 mtu 16384
options=3
inet6 fe80::1%lo0 prefixlen 64 scopeid 0xd
inet6 ::1 prefixlen 128
inet 127.0.0.1 netmask 0xff00
nd6 options=3
urtw0: flags=8802 metric 0 mtu 2290
ether 00:15:af:28:dc:7c
media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)
status: no carrier
quadcore# cat /etc/rc.conf

# -- sysinstall generated deltas -- # Tue Jul 26 23:20:43 2011
# Created: Tue Jul 26 23:20:43 2011
# Enable network daemons for user convenience.
# Please make all changes to this file, not to /etc/defaults/rc.conf.
# This file now contains just the overrides from /etc/defaults/rc.conf.
hostname="quadcore.home"
synchronous_dhclient="YES"
ifconfig_msk0="DHCP"
ntpdate_enable="YES"
ntpdate_hosts="north-america.pool.ntp.org"
tcp_extensions="NO"
#dbus_enable="YES"
#hald_enable="YES"
devfs_system_ruleset="Removable_Media"
lpd_enable="YES"
#ipfilter_enable="YES"
#ipfilter_rules="/etc/ipf.rules"
#ipmon_enable="YES"
#ipmon_flags="-Ds"
sendmail_enable="NONE"

I read it in FreeBSD handbook Chapters 12 and 31.  I will now try to
troubleshoot this or use another firewall to get this working.  As for
the network interfaces:

quadcore# dmesg | grep 'msk0'
msk0:  on mskc0
msk0: Ethernet address: 00:1d:60:33:ca:b0
miibus0:  on msk0
quadcore# dmesg | grep 're0'
firewire0:  on fwohci0
fwe0:  on firewire0
fwip0:  on firewire0
dcons_crom0:  on firewire0
re0:  port
0xe800-0xe8ff mem 0xfebfec00-0xfebfecff irq 16 at device 4.0 on pci5
re0: Chip rev. 0x1800
re0: MAC rev. 0x
miibus1:  on re0
re0: Ethernet address: 00:1d:60:33:d1:16
re0: [FILTER]
firewire0: 1 nodes, maxhop <= 0 cable IRM irm(0)  (me)
firewire0: bus manager 0
quadcore# dmesg | grep 'urtw0'
urtw0:  on usbus3
urtw0: unknown RTL8187L type: 0x800
urtw0: rtl8187l rf rtl8225u hwrev none

quadcore# uname -r
8.3-BETA1
quadcore# uname -a
FreeBSD quadcore.home 8.3-BETA1 FreeBSD 8.3-BETA1 #0: Thu Feb 16
16:30:35 UTC 2012
r...@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64
quadcore#

Sorry for the noise!

Regards,


Antonio
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: devd based AUTOMOUNTER

2012-02-20 Thread vermaden
Hi,

I removed the state_lock and stat_unlock mechanisms as they
appeared to be not needed, I have shufled with 3 drives all
the time and the 'integrity' has not been lost, at it was a lot
faster, because the lock always had to wait for the 'slowest'
drive (in term of initializing the device, like USB hard drive).

I simplified the 'attach' section a lot, now each filesystem
contains only check/fsck (if possible), mount and log info.

I also simplified and improved the 'detach' section a little.

I have added an option to automatically launch the set-up
in config file manager (Yes, like in Windows ;p). 

These are options that I currently successfully use for
NAUTILUS file manager, You need to set-up all three of
them to make it work.

| POPUP=YES
| FM="nautilus --browser --no-desktop"
| USER=vermaden

My whole config looks like that now:

| USERUMOUNT=YES
| POPUP=YES
| FM="nautilus --browser --no-desktop"
| USER=vermaden
| ENCODING=pl_PL.ISO8859-2
| CODEPAGE=cp852

All latest updates are available at GITHUB:
https://github.com/vermaden/automount



written by Freddie Cash ...

> Konqueror (KDE 3.x and 4.x) and Dolphin (KDE 4.x mainly, but I
> believe there's a KDE 3.x version) also show automatically
> mounted and removable media in the sidebar.  Works nicely
> with HAL.  Haven't tested your script yet, but am intrigued by it.
> Will see if I can test it sometime this week.
> 
> Native solutions are so much nicer than ported ones.  :)

Thanks, looking forward to hear some more input about it from You ;)



written by Fernando Apesteguía ...

> What a nice piece of work.

Thanks mate.

> I just downloaded it and try it on a FreeBSD 9.0-RELEASE with
> custom kernel. It works like a charm. I tried three different
> USB devices without noticing any problems (and I was very
> impolite when I unplugged them).
> 
> Thanks for this script.

Good to know, try the latest new version from repo, should be even better ;)

Regards,
vermaden
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: rescue build broken?

2012-02-20 Thread Adrian Chadd
Ignore;  purging obj properly worked.


Adrian
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: rescue build broken?

2012-02-20 Thread Tim Kientzle
On Feb 20, 2012, at 5:57 AM, Adrian Chadd wrote:

> Hi,
> 
> Is anyone seeing this?
> 
> (cd /usr/home/adrian/work/freebsd/svn/src/rescue/rescue/../../usr.bin/tar
> &&  make -DRESCUE CRUNCH_CFLAGS=-DRESCUE DIRPRFX=rescue/rescue/tar/
> depend && make -DRESCUE CRUNCH_CFLAGS=-DRESCUE
> DIRPRFX=rescue/rescue/tar/ bsdtar.o cmdline.o getdate.o read.o subst.o
> tree.o util.o write.o err.o line_reader.o matching.o pathmatch.o)
> make: don't know how to make
> /usr/home/adrian/work/freebsd/svn/src/usr.bin/tar/bsdtar.c. Stop
> *** Error code 2
> 1 error
> 
> 
> I'm doing a cross-build on i386 to MIPS.

What make command are you running?

Tim

___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


New kernels and tinderboxes

2012-02-20 Thread Alexander Leidinger

Hi,

can someone please point me to the place where I can see how files in  
the kernel config directories are handled in the tinderboxes?


The background is, that I work on a modular kernel config which comes  
with an example-loader.conf (to have similar features than GENERIC). I  
would like to have the example-loader.conf as close as possible to the  
kernel config (so in my tree I currently have "SMALL" and  
"SMALL_loader.conf", suggestions how to handle this without causing  
problems in the tinderboxes are welcome).


Bye,
Alexander.

--
Yow!  Maybe I should have asked for my Neutron Bomb in PAISLEY --

http://www.Leidinger.netAlexander @ Leidinger.net: PGP ID = B0063FE7
http://www.FreeBSD.org   netchild @ FreeBSD.org  : PGP ID = 72077137

___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


rescue build broken?

2012-02-20 Thread Adrian Chadd
Hi,

Is anyone seeing this?



(cd /usr/home/adrian/work/freebsd/svn/src/rescue/rescue/../../usr.bin/tar
&&  make -DRESCUE CRUNCH_CFLAGS=-DRESCUE DIRPRFX=rescue/rescue/tar/
depend && make -DRESCUE CRUNCH_CFLAGS=-DRESCUE
DIRPRFX=rescue/rescue/tar/ bsdtar.o cmdline.o getdate.o read.o subst.o
tree.o util.o write.o err.o line_reader.o matching.o pathmatch.o)
make: don't know how to make
/usr/home/adrian/work/freebsd/svn/src/usr.bin/tar/bsdtar.c. Stop
*** Error code 2
1 error


I'm doing a cross-build on i386 to MIPS.

Thanks,

Adrian
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: devd based AUTOMOUNTER

2012-02-20 Thread vermaden
written by ${ME} ...

> First BUG: (not fixed yet, but workaround already is working)
> 
> TEST/BUG/CASE:
> Plug in FAT32 and NTFS drives at the same time, when FAT32 device
> will be detected first, it will get mounted and the NTFS drive will be
> mounted TWICE, so I added > __check_already_mounted function
> to check if it is not already mounted.

This BUG is fixed, I was in wrong assumption, that the script would
be only executed for /dev/da0 but it was executed for every
device/partition node that appeared separately, like /dev/da0,
/dev/da0s1, /dev/da0s2 etc.

Currently there is no knows bugs, but the prepared earlier
'workaround functions' remain just in case.

As I written before its now available here:
https://github.com/vermaden/automount

Regards,
vermaden


















---
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: devd based AUTOMOUNTER

2012-02-20 Thread vermaden
written by Andriy Gapon ...

> Hey, this seems like a quite nice tool.
> Can you create a web-page and/or port for it?
> It would be more convenient to follow its development that way.
> Thank you!

Sure, its now available here, I will try to create port later:

https://github.com/vermaden/automount



written by Ivan Klymenko ...

> Thank you so much!
Welcome ;)

> Could you update, please first post in the forum?
> http://forums.freebsd.org/showthread.php?t=29895

I will do that after I sent this mail ;)

Regards,
vermaden































...
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: Failed to compile current kernel with llvm/clang

2012-02-20 Thread Jia-Shiun Li
On Mon, Feb 20, 2012 at 2:00 PM, matt  wrote:
> You have the
> WERROR=
> NO_WERROR=
>
> lines in /etc/make.conf?

You got me. I only quickly copy-pasted CC/CXX definitions and forgot
about WERROR & NO_WERROR. No wonder others do not have this problem.
Sorry for the noise.

Thanks,
Jia-Shiun.
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: devd based AUTOMOUNTER

2012-02-20 Thread vermaden
Hi,

new version with new features (and BUGs ;p)

Added check if ntfsfix from sysutils/ntfsprogs is available, if Yes then
try to fix the NTFS filesystem before mouting it.

Added GPL3 License ... just joking ;) ... added FreeBSD License to the file.

Added 'noatime' as a default mount option when possible.

Added TIMEOUT so when an 'orphan' STATE file lock remains, it will be deleted 
after a TIMEOUT.

Added /usr/local/etc/devd/automount.devd file instead of messing with the base 
system config at /etc/devd.conf.

Added config file to be used from /usr/local/etc/automount.conf file, possible 
options are (these are defaults):
  MNTPREFIX="/media"
  LOG="/var/log/automount.log"
  STATE="/var/run/automount.state"
  ENCODING="en_US.ISO8859-1"
  CODEPAGE="cp437"
  DATEFMT="%Y-%m-%d %H:%M:%S"
  USERUMOUNT="NO"

Mine config currently has only these:
  ENCODING="pl_PL.ISO8859-2"
  CODEPAGE="cp852"
  USERUMOUNT="YES"

The USERMOUNT otions if set to YES (default to NO) will 'chmod +s /sbin/umount',
so You can click the ^ button on the devices list in NAUTILUS.

These newly mounted devices appear on NAUTILUS sidebar (only with /media 
prefix).

But THUNAR and PCMANFM does not do that, You know any other FMs that display 
mounted thumb drives/devices?

EXAMPLE: http://i.imgur.com/qdKdl.png

First BUG: (not fixed yet, but workaround already is working)

TEST/BUG/CASE:
Plug in FAT32 and NTFS drives at the same time, when FAT32 device will be 
detected first, it will get mounted and the NTFS drive will be mounted TWICE, 
so I added __check_already_mounted function to check if it is not already 
mounted.



Below are current script and config files.

/usr/local/etc/devd/automount.devd
---
notify 0 {
  match "system" "DEVFS";
match "type" "CREATE";
match "cdev" "(da|mmcsd)[0-9]+";
action "/usr/local/sbin/automount.sh $cdev attach";
};

notify 0 {
match "system" "DEVFS";
match "type" "DESTROY";
match "cdev" "(da|mmcsd)[0-9]+";
action "/usr/local/sbin/automount.sh $cdev detach";
};
---

/usr/local/etc/automout.conf (can be empty)
---
MNTPREFIX="/media"
LOG="/var/log/automount.log"
STATE="/var/run/automount.state"
ENCODING="en_US.ISO8859-1"
CODEPAGE="cp437"
DATEFMT="%Y-%m-%d %H:%M:%S"
USERUMOUNT="NO"
---

/usr/local/sbin/automount.sh
---
#! /bin/sh

# Copyright (c) 2011 Slawomir Wojciech Wojtczak (vermaden)
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# 1. Redistributions of source code must retain the above copyright
#notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#notice, this list of conditions and the following disclaimer in the
#documentation and/or other materials provided with the distribution.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS 'AS IS' AND ANY
# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin

[ -f /usr/local/etc/automount.conf ] && . /usr/local/etc/automount.conf

: ${MNTPREFIX="/media"}
: ${LOG="/var/log/automount.log"}
: ${STATE="/var/run/automount.state"}
: ${ENCODING="en_US.ISO8859-1"}   # /* US/Canada */
: ${CODEPAGE="cp437"} # /* US/Canada */
: ${DATEFMT="%Y-%m-%d %H:%M:%S"}  # /* 2012-02-20 07:49:09 */
: ${USERUMOUNT="NO"}  # /* when YES add suid bit to umount(8) */

[ "${USERUMOUNT}" = "YES" ] && chmod u+s /sbin/umount # /* WHEEL group member */

__create_mount_point() { # /* 1=DEV */
  MNT="${MNTPREFIX}/$( basename ${1} )"
  mkdir -p ${MNT}
  chown 1000 ${MNT}
}

__check_already_mounted() { # /* 1=MNT */
  mount | grep " ${1} " 1> /dev/null 2> /dev/null && {
__log "${I}:already mounted (ntfs)"
continue
  }
}

__state_lock() {
  TIMEOUT=60
  COUNT=0
  while [ -f ${STATE}.lock ]
  do
sleep 0.5
[

Re: Packages for Current ( 10.0 )

2012-02-20 Thread Mehmet Erol Sanliturk
On Sat, Feb 18, 2012 at 12:11 PM, Mark Linimon  wrote:

> On Fri, Feb 17, 2012 at 12:04:45AM -0500, Mehmet Erol Sanliturk wrote:
> > I would be very happy I can contribute anything to development of
> FreeBSD .
>
> We are always happy to have help :-)
>
> > If there appears an agenda of testing problems and explicit instructions
> > how to apply tests , me and other persons may apply them and report the
> > results .
>
> Well, there really isn't.  There are some regression tests for src, but
> we have never established a framework to run them all automatically.
> Perhaps this is something you might be interested in?
>

I am going to prepare a message like a specification for testing framework
and send to you .
In that framework , I want to adhere the current FreeBSD development ( web
sites , available ports / packages , usability of existing testing
facilities ) .

I am planning to write the specification in such a structure that when a
person takes it he/she will be able to generate an applicable project from
it . This is not difficult for me because I was a computer science
instructor in the University .


>
> > In a message ( I do not remember its author's name  ) it is said that
> there
> > is no a farm of FreeBSD testing machines .
>
> I presume that's "now" for "no"?
>
> There are several sets.  Here's how they are set up.
>
>  - there is a "src tinderbox" which continually rebuilds the FreeBSD
>   src tree, for various combinations of architectures and osreleases.
>   (For src, the architectures can be cross-built.)  These are intended
>   to sanity-test that src is still buildable; in general the resulting
>   binaries are not made available.
>
>  - there is a "clang buildbot" whose purpose is to build FreeBSD src
>   under clang continuously.
>
>  - various people maintain "ports tinderboxes".  These are optimized
>   for test-builds of one or at least a subset of the ports tree.  In
>   general the resulting binaries are not made available.
>
>  - there is a new effort, Redports, to assemble a collection of ports
>   tinderbox machines and make them available to interested people.
>   We are actively working on this.
>
>  - portmgr maintains the "pointyhat cluster" that do the package builds
>   which are uploaded.  These are optimized for building the entire
>   ports tree in a secure fashion; the resulting binaries are made
>   available.  We are in the process of getting more machines online.
>
>  - the pointyhat cluster is also used for "-exp runs" where portmgr
>   regression-tests proposed changes to the overall ports tree to
>   try to ensure as few regressions for large changes as possible.
>
> > If we can generate such a testing ecological system , I think , FreeBSD
> > development will benefit from it very much .
>
> I agree.  But, for src, it's not something that I know much about,
> and will have to defer to others to comment.
>
> mcl
>

At present , there a very valuable efforts for testing FreeBSD as you
explained above .
My approach will be not only testing the correctness of compilation
but also execution correctness .

As an example ,

when a snapshot is downloaded , installed and tried to boot , even it is
NOT booting .

My goal is to prevent such and other execution failures because every
failure is a waste of very valuable human time and other resources .


My primary profession ( university graduate subject ) is
Mathematics/Statistics/Operations Research .
During my undergraduate study I took also many electives from Industrial
Engineering such as "Motion and Time Study" which its subject is to design
"work procedures that consumption ( such as time , energy , etc. ) is
minimum while the outcome ( the amount of work performed , completed ) is
maximum .

>From these points of view , I think , there are possibilities to improve
development and wide adoption of FreeBSD which is a direct contribution to
humanity welfare .


Thank you very much .


Mehmet Erol Sanliturk
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: devd based AUTOMOUNTER

2012-02-20 Thread Ivan Klymenko
В Mon, 20 Feb 2012 09:43:59 +0100
vermaden  пишет:

> Hi,
> 
> new version with new features (and BUGs ;p)
> 
> Added check if ntfsfix from sysutils/ntfsprogs is available, if Yes
> then try to fix the NTFS filesystem before mouting it.
> 
> Added GPL3 License ... just joking ;) ... added FreeBSD License to
> the file.
> 
> Added 'noatime' as a default mount option when possible.
> 
> Added TIMEOUT so when an 'orphan' STATE file lock remains, it will be
> deleted after a TIMEOUT.
> 
> Added /usr/local/etc/devd/automount.devd file instead of messing with
> the base system config at /etc/devd.conf.
> 
> Added config file to be used from /usr/local/etc/automount.conf file,
> possible options are (these are defaults): MNTPREFIX="/media"
>   LOG="/var/log/automount.log"
>   STATE="/var/run/automount.state"
>   ENCODING="en_US.ISO8859-1"
>   CODEPAGE="cp437"
>   DATEFMT="%Y-%m-%d %H:%M:%S"
>   USERUMOUNT="NO"
> 
> Mine config currently has only these:
>   ENCODING="pl_PL.ISO8859-2"
>   CODEPAGE="cp852"
>   USERUMOUNT="YES"
> 
> The USERMOUNT otions if set to YES (default to NO) will 'chmod
> +s /sbin/umount', so You can click the ^ button on the devices list
> in NAUTILUS.
> 
> These newly mounted devices appear on NAUTILUS sidebar (only
> with /media prefix).
> 
> But THUNAR and PCMANFM does not do that, You know any other FMs that
> display mounted thumb drives/devices?
> 
> EXAMPLE: http://i.imgur.com/qdKdl.png
> 
> First BUG: (not fixed yet, but workaround already is working)
> 
> TEST/BUG/CASE:
> Plug in FAT32 and NTFS drives at the same time, when FAT32 device
> will be detected first, it will get mounted and the NTFS drive will
> be mounted TWICE, so I added __check_already_mounted function to
> check if it is not already mounted.

Thank you so much!

Could you update, please first post in the forum?
http://forums.freebsd.org/showthread.php?t=29895

Thanks!
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: devd based AUTOMOUNTER

2012-02-20 Thread Andriy Gapon

[cc list trimmed]

Hey, this seems like a quite nice tool.
Can you create a web-page and/or port for it?  It would be more convenient to
follow its development that way.
Thank you!

on 20/02/2012 10:43 vermaden said the following:
> Hi,
> 
> new version with new features (and BUGs ;p)
> 
> Added check if ntfsfix from sysutils/ntfsprogs is available, if Yes then
> try to fix the NTFS filesystem before mouting it.
> 
> Added GPL3 License ... just joking ;) ... added FreeBSD License to the file.
> 
> Added 'noatime' as a default mount option when possible.
> 
> Added TIMEOUT so when an 'orphan' STATE file lock remains, it will be deleted 
> after a TIMEOUT.
> 
> Added /usr/local/etc/devd/automount.devd file instead of messing with the 
> base system config at /etc/devd.conf.
> 
> Added config file to be used from /usr/local/etc/automount.conf file, 
> possible options are (these are defaults):
>   MNTPREFIX="/media"
>   LOG="/var/log/automount.log"
>   STATE="/var/run/automount.state"
>   ENCODING="en_US.ISO8859-1"
>   CODEPAGE="cp437"
>   DATEFMT="%Y-%m-%d %H:%M:%S"
>   USERUMOUNT="NO"
> 
> Mine config currently has only these:
>   ENCODING="pl_PL.ISO8859-2"
>   CODEPAGE="cp852"
>   USERUMOUNT="YES"
> 
> The USERMOUNT otions if set to YES (default to NO) will 'chmod +s 
> /sbin/umount',
> so You can click the ^ button on the devices list in NAUTILUS.
> 
> These newly mounted devices appear on NAUTILUS sidebar (only with /media 
> prefix).
> 
> But THUNAR and PCMANFM does not do that, You know any other FMs that display 
> mounted thumb drives/devices?
> 
> EXAMPLE: http://i.imgur.com/qdKdl.png
> 
> First BUG: (not fixed yet, but workaround already is working)
> 
> TEST/BUG/CASE:
> Plug in FAT32 and NTFS drives at the same time, when FAT32 device will be 
> detected first, it will get mounted and the NTFS drive will be mounted TWICE, 
> so I added __check_already_mounted function to check if it is not already 
> mounted.
> 
> 
> 
> Below are current script and config files.


-- 
Andriy Gapon
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"