Re: small du(1) question

2011-10-19 Thread Lowell Gilbert
Chuck Swiger writes: > On Oct 19, 2011, at 1:37 PM, Alexander Best wrote: >>> The default blocksize is 512 bytes. >>> >>> The -B option flag lets you tell du to assume a different filesystem >>> blocksize. >> >> so when running freebsd on a hdd with a blocksize of 4k, a simple 'du -h' >> will

Re: small du(1) question

2011-10-19 Thread Robert Bonomi
> Date: Wed, 19 Oct 2011 20:47:54 + > From: Alexander Best > Subject: Re: small du(1) question > > the blocksize of the underlying filesystem, shouldn't the output of > 'du -A -B4096' and 'du -A' be the same? just tested this on freebsd 7 and >

Re: small du(1) question

2011-10-19 Thread Chuck Swiger
On Oct 19, 2011, at 1:37 PM, Alexander Best wrote: >> The default blocksize is 512 bytes. >> >> The -B option flag lets you tell du to assume a different filesystem >> blocksize. > > so when running freebsd on a hdd with a blocksize of 4k, a simple 'du -h' will > always display incorrect results

Re: small du(1) question

2011-10-19 Thread Alexander Best
On Wed Oct 19 11, Alexander Best wrote: > On Wed Oct 19 11, Chuck Swiger wrote: > > On Oct 19, 2011, at 12:34 PM, Alexander Best wrote: > > > the du(1) man page states the following: > > > > > > " > > > -B blocksize > > > Calculate block counts in blocksize byte blocks. This is >

Re: small du(1) question

2011-10-19 Thread Alexander Best
On Wed Oct 19 11, Chuck Swiger wrote: > On Oct 19, 2011, at 12:34 PM, Alexander Best wrote: > > the du(1) man page states the following: > > > > " > > -B blocksize > > Calculate block counts in blocksize byte blocks. This is > > differ- > > ent from the -k, -m options

Re: small du(1) question

2011-10-19 Thread Chuck Swiger
On Oct 19, 2011, at 12:34 PM, Alexander Best wrote: > the du(1) man page states the following: > > " > -B blocksize > Calculate block counts in blocksize byte blocks. This is differ- > ent from the -k, -m options or setting BLOCKSIZE and gives an > estimate

small du(1) question

2011-10-19 Thread Alexander Best
hi there, the du(1) man page states the following: " -B blocksize Calculate block counts in blocksize byte blocks. This is differ- ent from the -k, -m options or setting BLOCKSIZE and gives an estimate of how much space the examined file hierarchy woul