* [Comm] Размер каталога по du, погрешность более 20%.
@ 2004-08-03 8:06 serge
2004-08-03 8:40 ` BSW
2004-08-03 9:15 ` Grigory Milev
0 siblings, 2 replies; 5+ messages in thread
From: serge @ 2004-08-03 8:06 UTC (permalink / raw)
To: ALTLinux
В какой арифметике считает du?
mc или сумма по ls почти одинаковы 30Мб, du 41Мб.
mailto: serge@ispr.nsk.su
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Comm] Размер каталога по du, погрешность более 20%.
2004-08-03 8:06 [Comm] Размер каталога по du, погрешность более 20% serge
@ 2004-08-03 8:40 ` BSW
2004-08-03 8:43 ` serge
2004-08-03 9:15 ` Grigory Milev
1 sibling, 1 reply; 5+ messages in thread
From: BSW @ 2004-08-03 8:40 UTC (permalink / raw)
To: community
serge@ispr.nsk.su wrote:
> В какой арифметике считает du?
> mc или сумма по ls почти одинаковы 30Мб, du 41Мб.
Сколько места на диске занимает файл размером 1 байт?
Осмелюсь предположить, что не меньше сектора.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Comm] Размер каталога по du, погрешность более 20%.
2004-08-03 8:40 ` BSW
@ 2004-08-03 8:43 ` serge
2004-08-03 9:00 ` BSW
0 siblings, 1 reply; 5+ messages in thread
From: serge @ 2004-08-03 8:43 UTC (permalink / raw)
To: community
On Tue, Aug 03, 2004 at 02:40:58PM +0600, BSW wrote:
> Сколько места на диске занимает файл размером 1 байт?
> Осмелюсь предположить, что не меньше сектора.
Занимает блок. Значит, считаем по mod(блок) ?
mailto: serge@ispr.nsk.su
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Comm] Размер каталога по du, погрешность более 20%.
2004-08-03 8:43 ` serge
@ 2004-08-03 9:00 ` BSW
0 siblings, 0 replies; 5+ messages in thread
From: BSW @ 2004-08-03 9:00 UTC (permalink / raw)
To: community
serge@ispr.nsk.su wrote:
> Занимает блок. Значит, считаем по mod(блок) ?
man du
...
ПОДРОБНОСТИ POSIX ВЕРСИИ
По умолчанию, размеры указываются в блоках по 512 байт, но если
задана
опция -k, то размер блока принимается в 1024 байт.
ПОДРОБНОСТИ ВЕРСИИ GNU
Размеры указываются в блоках по 1024 байт (если размер не
задан
посредством опций), за исключением случая, когда заданна
переменная
окружения POSIXLY_CORRECT , В этом случае размер блока
соответствует
версии POSIX.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Comm] Размер каталога по du, погрешность более 20%.
2004-08-03 8:06 [Comm] Размер каталога по du, погрешность более 20% serge
2004-08-03 8:40 ` BSW
@ 2004-08-03 9:15 ` Grigory Milev
1 sibling, 0 replies; 5+ messages in thread
From: Grigory Milev @ 2004-08-03 9:15 UTC (permalink / raw)
To: community
>>>>> "serge" == serge <serge@ispr.nsk.su> writes:
serge> В какой арифметике считает du? mc или сумма по ls почти одинаковы
serge> 30Мб, du 41Мб.
du - это Disk Usage, а не размер файлов посчитать. Отсюда и разница в
подсчете. DU возращает размер реально занимаемый файлом в указанном каталоге,
а mc показывает размер файлов.
+--------------------------------------------------------+
Grigory Milev mailto:week@altlinux.ru
ALT Linux Team http://www.altlinux.ru
+--------------------------------------------------------+
Life too beautiful and interesting. Don't worry, be happy.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2004-08-03 9:15 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-03 8:06 [Comm] Размер каталога по du, погрешность более 20% serge
2004-08-03 8:40 ` BSW
2004-08-03 8:43 ` serge
2004-08-03 9:00 ` BSW
2004-08-03 9:15 ` Grigory Milev
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git