ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Vitaly Lipatov <LAV@VL3143.spb.edu>
To: community@altlinux.ru
Subject: Re: [Comm] Re: [Comm] Re: du ошибается...
Date: Tue, 17 Dec 2002 23:01:23 +0300
Message-ID: <200212172301.23351.LAV@VL3143.spb.edu> (raw)
In-Reply-To: <12419278731.20021217221144@udm.ru>

On Вторник 17 Декабрь 2002 21:11, ASA wrote:
> Hello Alexey,
>
> Tuesday, December 17, 2002, 5:49:09 PM, you wrote:
> >> 2. Запустите
> >>    $ ./lseek 0x400000000 ~/tmp/empty
> >> 3. Сравните вывод от
> >>    $ ls -lh ~/tmp/empty
> >>    и
> >>    $ du -h ~/tmp/empty
>
> AT> Идея понятна, только программа не работает. :(
> ....
>
> Ни к чему все эти программы, шелла хватит.
>
> dd if=/dev/zero of=/tmp/empty bs=1 count=1 seek=1000000000
>
> (только с числом нулей не переборщите)
Ваш пример физически запишет на диск столько нулей, а lseek - 
только файл создаст такого размера, не выделяя под него иноды 
(или что там). Вроде так?

-- 
Lav
Виталий Липатов
Санкт-Петербург
GNU! ALT Linux Team! LaTeX! LyX!


  reply	other threads:[~2002-12-17 20:01 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-17  8:15         ` [Comm] Re: [sisyphus] " Dmitry V. Levin
2002-12-17 13:49           ` [Comm] " Alexey Tourbin
2002-12-17 18:11             ` [Comm] " ASA
2002-12-17 20:01               ` Vitaly Lipatov [this message]
2002-12-17 20:12                 ` Michael Shigorin
2002-12-18 11:27             ` Alexander Kirey

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200212172301.23351.LAV@VL3143.spb.edu \
    --to=lav@vl3143.spb.edu \
    --cc=community@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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