Re: Using kqueue with 2 threads

2012-04-16 Thread Matthias Zitzen

Hello,

Am 10.04.2012 21:52, schrieb Ben Short:

 EV_SET(ke, fd, EVFILT_VNODE, EV_ADD, NOTE_DELETE | NOTE_RENAME |
NOTE_EXTEND, 0, NULL);

 if (kevent(kq,ke, 1, NULL, 0, NULL) == -1) {
 std::cerr  kevent produced error:   strerror(errno)
std::endl;
 }[/CODE]



Did i understand right, that after registering and firing one event the 
kevent() function doesn't block any more?
If so, register the events with EV_ADD | EV_CLEAR. With this flag, the 
event state is cleared and kevent() is still blocking(man kqueue).

That flag was solving my problem...

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


SV: pf firewall and ftp

2012-04-16 Thread Hasse Hansson
To solve the ftp pre 4.7 part, you can start reading here
http://home.nuug.no/~peter/pf/en/long-firewall.html#FTPPROBLEM

/Hasse
-Oprindelig meddelelse-
Fra: owner-freebsd-questi...@freebsd.org
[mailto:owner-freebsd-questi...@freebsd.org] På vegne af Fbsd8
Sendt: den 16 april 2012 04:31
Til: FreeBSD Questions; FreeBSD Current; FreeBSD doc
Emne: Re: pf firewall and ftp

Fbsd8 wrote:
 Running 9.0 as a gateway host with pf firewall enabled.
 FTP is launched by inetd.
 Both active and passive ftp works from lan pc's to the host ftp.
 The lan ftp session can be initiated from the host or any lan pc and 
 things work because there are no rules on the lan interface except 
 single pass all rule.
 
 But I can not do host initiated or lan initiated ftp sessions to the 
 public internet. Get operation not permitted message. Tried to setup 
 ftp-proxy per openbsd pf manual without any joy.
 
 Looking for working rule set with nat and ftp services to study and 
 learn from.

 
 

OK I have uncovered what the problem is.
The pf version running on Freebsd 9.0 matches the version running on openbsd
4.5. Found it on man pf at the end.

The documentation on the Openbsd website for pf is for Openbsd 5.0 and it
has warning saying NOTE: This information is for OpenBSD 4.7. NAT
configuration was significantly different in earlier versions.
http://pf4freebsd.love2party.net/ has more info about how back dated the
9.0 Freebsd production version of pf is.

The Freebsd handbook had a detailed section on pf including rules examples
matching the version of pf included with 9.0 But someone allowed it to be
removed in the current version of the handbook.

So here we are with an outdated version of pf in the current production
9.0 version of Freebsd and there is no documentation available on nat rule
syntax in the handbook or at openbsd/pf.

Going to dig through the 9.0 pf man pages for the info


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

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


blu ray recorders

2012-04-16 Thread Wojciech Puchar
today BD recordable disks have prices that make sense as well as 
recorders.


but as i never had one i want to ask - how it is used under FreeBSD.

Does growisofs work just like with DVD-R or other tools are needed?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


ia64 vs amd64

2012-04-16 Thread Eugen Konkov
Hi

I have Corei3 540
What is the best fit to this processor: ia64 or amd64?
and what one from those is more stable?

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


Re: SV: pf firewall and ftp

2012-04-16 Thread Denny Lin
On Mon, Apr 16, 2012 at 09:39:38AM +0200, Hasse Hansson wrote:
 To solve the ftp pre 4.7 part, you can start reading here
 http://home.nuug.no/~peter/pf/en/long-firewall.html#FTPPROBLEM
 
 /Hasse
 -Oprindelig meddelelse-
 Fra: owner-freebsd-questi...@freebsd.org
 [mailto:owner-freebsd-questi...@freebsd.org] På vegne af Fbsd8
 Sendt: den 16 april 2012 04:31
 Til: FreeBSD Questions; FreeBSD Current; FreeBSD doc
 Emne: Re: pf firewall and ftp
 
 Fbsd8 wrote:
  Running 9.0 as a gateway host with pf firewall enabled.
  FTP is launched by inetd.
  Both active and passive ftp works from lan pc's to the host ftp.
  The lan ftp session can be initiated from the host or any lan pc and 
  things work because there are no rules on the lan interface except 
  single pass all rule.
  
  But I can not do host initiated or lan initiated ftp sessions to the 
  public internet. Get operation not permitted message. Tried to setup 
  ftp-proxy per openbsd pf manual without any joy.
  
  Looking for working rule set with nat and ftp services to study and 
  learn from.
 
  
  
 
 OK I have uncovered what the problem is.
 The pf version running on Freebsd 9.0 matches the version running on openbsd
 4.5. Found it on man pf at the end.
 
 The documentation on the Openbsd website for pf is for Openbsd 5.0 and it
 has warning saying NOTE: This information is for OpenBSD 4.7. NAT
 configuration was significantly different in earlier versions.
 http://pf4freebsd.love2party.net/ has more info about how back dated the
 9.0 Freebsd production version of pf is.
 
 The Freebsd handbook had a detailed section on pf including rules examples
 matching the version of pf included with 9.0 But someone allowed it to be
 removed in the current version of the handbook.
 
 So here we are with an outdated version of pf in the current production
 9.0 version of Freebsd and there is no documentation available on nat rule
 syntax in the handbook or at openbsd/pf.

The version of PF in FreeBSD is corresponds to the one in OpenBSD 4.5.

There are old versions of the OpenBSD PF FAQ on mirrors:
http://ftp2.eu.openbsd.org/pub/OpenBSD/doc/history/pf-faq45.pdf
http://ftp2.eu.openbsd.org/pub/OpenBSD/doc/history/pf-faq45.txt

 Going to dig through the 9.0 pf man pages for the info

The rules should also be documented in the man pages.

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


Re: ia64 vs amd64

2012-04-16 Thread Brad Mettee
ia64 is for the Intel Itanium chips, and not compatible with standard 
Intel architecture.


amd64 is what you want to use. It's what you need for a standard x86 
architecture chip that's 64bit.



On 4/16/2012 9:08 AM, Eugen Konkov wrote:

Hi

I have Corei3 540
What is the best fit to this processor: ia64 or amd64?
and what one from those is more stable?

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



--
Brad Mettee
PC HotShots, Inc.
Westminster, MD
(410) 848-0588
- Let us bring out the **Power** of your PCs. -
- Custom Business Software Solutions since 1991 -
Visit us http://www.pchotshots.com for information about our company.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: ia64 vs amd64

2012-04-16 Thread Erich Dollansky
Hi,

On Monday 16 April 2012 20:08:13 Eugen Konkov wrote:
 
 I have Corei3 540

only the amd64 will run on that CPU. If you have less than 4GB of RAM you could 
also run the i386 version.

 What is the best fit to this processor: ia64 or amd64?
 and what one from those is more stable?

I do not think that people will pay the price tag a ia64 machine just for a bit 
of more fun.

The reasons for running ia64 are very different ones.

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



newfs create to little inodes

2012-04-16 Thread Eugen Konkov

Does newfs always must create sufficient count of inodes? or I must
supply some addition options when creating FS?

#df -ih
Filesystem size   used  avail  capacity iused ifree %iused  mounted on
/dev/ad0s1a 4.9G   2.1G  2.4G   47%   331k0 100%   /mnt/disk1


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


Re: newfs create to little inodes

2012-04-16 Thread Greg Larkin
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 4/16/12 10:01 AM, Eugen Konkov wrote:
 
 Does newfs always must create sufficient count of inodes? or I
 must supply some addition options when creating FS?
 
 #df -ih Filesystem size   used  avail  capacity iused ifree %iused
 mounted on /dev/ad0s1a 4.9G   2.1G  2.4G   47%   331k0 100%
 /mnt/disk1
 
 

Hello Eugen,

Yes, please check the -i option of newfs:
http://www.freebsd.org/cgi/man.cgi?query=newfs

Hope that helps,
Greg
- -- 
Greg Larkin

http://www.FreeBSD.org/   - The Power To Serve
http://www.sourcehosting.net/ - Ready. Set. Code.
http://twitter.com/cpucycle/  - Follow you, follow me
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk+MLKsACgkQ0sRouByUApDePACeOwLbPFzGnsKeslOoyMOHwE/6
BX0AmwVYPFq5BX8Pnpm0vOS18g/5hI6T
=hL8L
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re[2]: newfs create to little inodes

2012-04-16 Thread Eugen Konkov
Здравствуйте, Greg.

Вы писали 16 апреля 2012 г., 17:28:59:

GL -BEGIN PGP SIGNED MESSAGE-
GL Hash: SHA1

GL On 4/16/12 10:01 AM, Eugen Konkov wrote:
 
 Does newfs always must create sufficient count of inodes? or I
 must supply some addition options when creating FS?
 
 #df -ih Filesystem size   used  avail  capacity iused ifree %iused
 mounted on /dev/ad0s1a 4.9G   2.1G  2.4G   47%   331k0 100%
 /mnt/disk1
 
 

GL Hello Eugen,

GL Yes, please check the -i option of newfs:
GL http://www.freebsd.org/cgi/man.cgi?query=newfs

GL Hope that helps,
GL Greg

unhappy defaults for disks about ~5G capacity
because of this default create only 350k inodes
installig system and extract ports eats about 95% of inodes =(

but about 50% disk space are free yet


-- 
С уважением,
 Eugen  mailto:kes-...@yandex.ru

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


Re: newfs create to little inodes

2012-04-16 Thread Greg Larkin
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 4/16/12 11:07 AM, Eugen Konkov wrote:
 Здравствуйте, Greg.
 
 Вы писали 16 апреля 2012 г., 17:28:59:
 
 GL -BEGIN PGP SIGNED MESSAGE- GL Hash: SHA1
 
 GL On 4/16/12 10:01 AM, Eugen Konkov wrote:
 
 Does newfs always must create sufficient count of inodes? or I 
 must supply some addition options when creating FS?
 
 #df -ih Filesystem size   used  avail  capacity iused ifree
 %iused mounted on /dev/ad0s1a 4.9G   2.1G  2.4G   47%   331k
 0 100% /mnt/disk1
 
 
 
 GL Hello Eugen,
 
 GL Yes, please check the -i option of newfs: GL
 http://www.freebsd.org/cgi/man.cgi?query=newfs
 
 GL Hope that helps, GL Greg
 
 unhappy defaults for disks about ~5G capacity because of this
 default create only 350k inodes installig system and extract ports
 eats about 95% of inodes =(
 
 but about 50% disk space are free yet
 
 

Yes, please try increasing the number of inodes when you create the
filesystem.  The -i option is used to do that if you are not happy
with the default picked by newfs.

Regards,
Greg
- -- 
Greg Larkin

http://www.FreeBSD.org/   - The Power To Serve
http://www.sourcehosting.net/ - Ready. Set. Code.
http://twitter.com/cpucycle/  - Follow you, follow me
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk+MPSIACgkQ0sRouByUApDNQQCgp9PuMZMfeg/7lxbdWUcnUfUP
kasAoIQEbx7FjV7Xw8eV1BcJ1cvWPpX6
=0DLy
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: newfs create to little inodes

2012-04-16 Thread Robert Bonomi
 From owner-freebsd-questi...@freebsd.org  Mon Apr 16 09:03:45 2012
 Date: Mon, 16 Apr 2012 17:01:57 +0300
 From: Eugen Konkov kes-...@yandex.ru
 To: freebsd-questions@freebsd.org
 Subject: newfs create to little inodes


 Does newfs always must create sufficient count of inodes? 

This begs the question of 'what is a sufficient count of inodes?

It is well-known that the required 'inode densidy' depends on the usage
of the filesystem.

Newfs uses defaults that are 'reasonable' for 'typical' use, and are
rarely insuficient.

*IF*, however, you know you will be creating lots of 'tiny' files on a
particular filesystem, it is a GOOD IDEAT(tm) to use non-default settings.

   or I must
 supply some addition options when creating FS?

Read the fine manpage applies. along with 'know your useage'.

 #df -ih
 Filesystem size   used  avail  capacity iused ifree %iused  mounted on
 /dev/ad0s1a 4.9G   2.1G  2.4G   47%   331k0 100%   /mnt/disk1

Yup.  RTFM is -definitely- indicated.



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

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


Re[2]: newfs create to little inodes

2012-04-16 Thread Eugen Konkov
Здравствуйте, Greg.

Вы писали 16 апреля 2012 г., 18:39:14:

GL -BEGIN PGP SIGNED MESSAGE-
GL Hash: SHA1

GL On 4/16/12 11:07 AM, Eugen Konkov wrote:
 Здравствуйте, Greg.
 
 Вы писали 16 апреля 2012 г., 17:28:59:
 
 GL -BEGIN PGP SIGNED MESSAGE- GL Hash: SHA1
 
 GL On 4/16/12 10:01 AM, Eugen Konkov wrote:
 
 Does newfs always must create sufficient count of inodes? or I 
 must supply some addition options when creating FS?
 
 #df -ih Filesystem size   used  avail  capacity iused ifree
 %iused mounted on /dev/ad0s1a 4.9G   2.1G  2.4G   47%   331k
 0 100% /mnt/disk1
 
 
 
 GL Hello Eugen,
 
 GL Yes, please check the -i option of newfs: GL
 http://www.freebsd.org/cgi/man.cgi?query=newfs
 
 GL Hope that helps, GL Greg
 
 unhappy defaults for disks about ~5G capacity because of this
 default create only 350k inodes installig system and extract ports
 eats about 95% of inodes =(
 
 but about 50% disk space are free yet
 
 

GL Yes, please try increasing the number of inodes when you create the
GL filesystem.  The -i option is used to do that if you are not happy
GL with the default picked by newfs.

I use newfs -U -i 1024 /dev/ad0s1a  I think I got enogh inodes

But maybe post the PR:
 use -i 1024 as default for disks ~5G when doing newfs?


-- 
С уважением,
 Eugen  mailto:kes-...@yandex.ru

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


Re: Re[2]: newfs create to little inodes

2012-04-16 Thread Robert Bonomi

 Date: Mon, 16 Apr 2012 18:07:30 +0300
 From: Eugen Konkov kes-...@yandex.ru
 Subject: Re[2]: newfs create to little inodes




 GL On 4/16/12 10:01 AM, Eugen Konkov wrote:
  
  Does newfs always must create sufficient count of inodes? or I
  must supply some addition options when creating FS?
  
  #df -ih Filesystem size   used  avail  capacity iused ifree %iused
  mounted on /dev/ad0s1a 4.9G   2.1G  2.4G   47%   331k0 100%
  /mnt/disk1
  
  

 GL Hello Eugen,

 GL Yes, please check the -i option of newfs:
 GL http://www.freebsd.org/cgi/man.cgi?query=newfs

 GL Hope that helps,
 GL Greg

 unhappy defaults for disks about ~5G capacity
 because of this default create only 350k inodes
 installig system and extract ports eats about 95% of inodes =(

 but about 50% disk space are free yet

You may want to look at what kind of a filesystem you are using.
With a 'standard' Berkeley 'FFS' I get 540+k inodes on a 4 gig partiton,
with a standard 'newfs'. I get a virtually identical 'density' on a 7+gig 
partition (941k inodes).

You show roughly -half- that inode density, which implies different
filesystem characteristics, or a newfs-equvalent with non-default 
parameters.



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


Re[2]: newfs create to little inodes

2012-04-16 Thread Eugen Konkov

 Does newfs always must create sufficient count of inodes? 

RB This begs the question of 'what is a sufficient count of inodes?

RB It is well-known that the required 'inode densidy' depends on the usage
RB of the filesystem.

RB Newfs uses defaults that are 'reasonable' for 'typical' use, and are
RB rarely insuficient.
'typical' use: install system and install ports
fetch sources and buildworld
this cause me insuficient inodes
 Filesystem size   used  avail  capacity iused ifree %iused  mounted on
 /dev/ad0s1a 4.9G   2.1G  2.4G   47%   331k0 100%   /mnt/disk1

I know 'man' and can read that. I only ask to use different values for
disks with size ~5G. this change will make life easier for newbies.
I only question: 'Is this change will make life easier for others'?
I do not ask, why I can not do something, or help me or else.


RB *IF*, however, you know you will be creating lots of 'tiny' files on a
RB particular filesystem, it is a GOOD IDEAT(tm) to use non-default settings.

   or I must
 supply some addition options when creating FS?

RB Read the fine manpage applies. along with 'know your useage'.

 #df -ih
 Filesystem size   used  avail  capacity iused ifree %iused  mounted on
 /dev/ad0s1a 4.9G   2.1G  2.4G   47%   331k0 100%   /mnt/disk1

RB Yup.  RTFM is -definitely- indicated.




-- 
С уважением,
 Eugen  mailto:kes-...@yandex.ru

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


Re: pf firewall and ftp

2012-04-16 Thread David Walker
There's also web available manuals for probably every release of OpenBSD here:
http://www.openbsd.org/cgi-bin/man.cgi

http://www.openbsd.org/cgi-bin/man.cgi?query=pf.confmanpath=OpenBSD+4.5
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Re[2]: newfs create to little inodes

2012-04-16 Thread Robert Bonomi
 From kes-...@yandex.ru  Mon Apr 16 11:33:26 2012
 Date: Mon, 16 Apr 2012 19:32:44 +0300
 From: Eugen Konkov kes-...@yandex.ru
 To: Robert Bonomi bon...@mail.r-bonomi.com
 CC: freebsd-questions@freebsd.org
 Subject: Re[2]: newfs create to little inodes

 
  Does newfs always must create sufficient count of inodes? 

 RB This begs the question of 'what is a sufficient count of inodes?

 RB It is well-known that the required 'inode densidy' depends on the usage
 RB of the filesystem.

 RB Newfs uses defaults that are 'reasonable' for 'typical' use, and are
 RB rarely insuficient.

 'typical' use: install system and install ports
 fetch sources and buildworld
 this cause me insuficient inodes

Something about -your- installation is causing you to run out of inodes.

A 'normal' FFS newfs with all default values would have roughly twice the
number of inodes you show.   And, assumig similar size files, would 
let the disk fill to over 94% capacity before runnig out of inodes.

  Filesystem size   used  avail  capacity iused ifree %iused  mounted on
  /dev/ad0s1a 4.9G   2.1G  2.4G   47%   331k0 100%   /mnt/disk1

 I know 'man' and can read that.

but apparently  _didn't_, since it discusses the calculation for default
inode counts, and effective average file size.   

Those figures do -not- match what you claim is the situation on your 
machine.

It would be wise to determine _why_ your system is 'non-standard' in
that respect, before requesting a change in 'standard' behavior.

 I only ask to use different values for
 disks with size ~5G. this change will make life easier for newbies.

You need to figure out why YOU have only half the 'normaal' number of 
inodes on -your- filesystem.

 I only question: 'Is this change will make life easier for others'?
 I do not ask, why I can not do something, or help me or else.

Quote:  or must I supply somme additional options when creating FS?' unquote.

That sure looks like a 'help me' request.


 RB *IF*, however, you know you will be creating lots of 'tiny' files on a
 RB particular filesystem, it is a GOOD IDEAT(tm) to use non-default settings.

or I must
  supply some addition options when creating FS?

 RB Read the fine manpage applies. along with 'know your useage'.

  #df -ih
  Filesystem size   used  avail  capacity iused ifree %iused  mounted on
  /dev/ad0s1a 4.9G   2.1G  2.4G   47%   331k0 100%   /mnt/disk1
 
 RB Yup.  RTFM is -definitely- indicated.
 



 -- 
 N oaa{c-cedilia}aeieaei,
  Eugen  mailto:kes-...@yandex.ru

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


Re: ia64 vs amd64

2012-04-16 Thread Wojciech Puchar

ia64 is for itanium.

amd64 is for 64-bit X86 ISA, name is because AMD was first to introduce it 
with opteron family.


On Mon, 16 Apr 2012, Eugen Konkov wrote:


Hi

I have Corei3 540
What is the best fit to this processor: ia64 or amd64?
and what one from those is more stable?

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



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


Re: newfs create to little inodes

2012-04-16 Thread Wojciech Puchar


Does newfs always must create sufficient count of inodes? or I must
supply some addition options when creating FS?


yes

man newfs

(-i option)



#df -ih
Filesystem size   used  avail  capacity iused ifree %iused  mounted on
/dev/ad0s1a 4.9G   2.1G  2.4G   47%   331k0 100%   /mnt/disk1


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



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


Re: newfs create to little inodes

2012-04-16 Thread Michael Sierchio
On Mon, Apr 16, 2012 at 10:46 AM, Wojciech Puchar 
woj...@wojtek.tensor.gdynia.pl wrote:


 Does newfs always must create sufficient count of inodes? or I must
 supply some addition options when creating FS?

  yes

 man newfs

 (-i option)


There are many use cases for a filesystem - if you have mostly very large
files, the defaults in newfs reserve too many inodes per X number of blocks
- if you have mostly small files, there will be too few.  It takes
experience and a little luck to create filesystem in which free blocks and
free inodes get consumed proportionally.  Start by reading the man page and
grok deeply.

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


Re: Re[2]: newfs create to little inodes

2012-04-16 Thread Rob Farmer
On Mon, Apr 16, 2012 at 10:02 AM, Robert Bonomi
bon...@mail.r-bonomi.com wrote:

 Something about -your- installation is causing you to run out of inodes.


This is a release engineering issue in 9.0, not just his installation.
The defaults are screwed up. See bin/162659.

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


Re: Re[2]: newfs create to little inodes

2012-04-16 Thread Michael Powell
Rob Farmer wrote:

 On Mon, Apr 16, 2012 at 10:02 AM, Robert Bonomi
 bon...@mail.r-bonomi.com wrote:

 Something about -your- installation is causing you to run out of inodes.

 
 This is a release engineering issue in 9.0, not just his installation.
 The defaults are screwed up. See bin/162659.
 

Yes - I experienced this early on with first attempts at looking over 9.0 in 
a Virtualbox VM. I don't remember if it was 5 or 6GB size of the initial 
'everything in one filesystem (/)' install which triggered it, but when I 
increased it to 8GB, and/or larger, the error the OP describes went away.

-Mike


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


Re: Problems using usb wireless adapter

2012-04-16 Thread PseudoCylon
 --

 Message: 4
 Date: Sun, 15 Apr 2012 23:44:11 +0900
 From: fake fake four.troublesome.he...@gmail.com
 Subject: Re: Problems using usb wireless adapter
 To: Erich Dollansky erichfreebsdl...@ovitrap.com
 Cc: freebsd-questions@freebsd.org
 Message-ID:
        CA+rxiGD2dggApC=NPK13LqcS-nsiM-d=yy9a6jkfektamex...@mail.gmail.com
 Content-Type: text/plain; charset=ISO-8859-1

 then I configed the several files.
 (I use WEP to connect to the internet.)

If you are using WEP, can you try this patch (missing ic_cipher at line 2037)?

2037c2037
   if (k-wk_cipher == IEEE80211_CIPHER_WEP) {
---
   if (k-wk_cipher-ic_cipher == IEEE80211_CIPHER_WEP) {



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