From: Alexander Bokovoy <ab@altlinux.org>
To: ALT Devel discussion list <devel@altlinux.ru>
Subject: Re: [devel] Re: How to detect partition label ?
Date: Sun, 8 May 2005 19:43:02 +0400
Message-ID: <20050508154302.GC3723@altlinux.org> (raw)
In-Reply-To: <427E2EC3.8000100@altlinux.org>
[-- Attachment #1: Type: text/plain, Size: 897 bytes --]
On Sun, May 08, 2005 at 07:22:43PM +0400, Mikhail Yakshin wrote:
> Vitaly Ostanin пишет:
>
> > По крайней мере определения меток для ext2/3, xfs и reiserfs есть
> > в mount. Алгоритм определения типа fs из mount нашёлся в пакете
> > fstyp. В принципе, можно уже сделать wrapper самому, но сильно
> > подозреваю, что он уже где-то сделан :)
>
> fstype -l
Думаю, что нужно перестать городить огород из невнятных дополнений и
начать пользоваться тем, что уже есть -- libblkid из e2fsprogs и,
соответственно, утилита /sbin/blkid.
Реализацию в своем приложении можно посмотреть, например, в
Samba4, source/ntvfs/posix/pvfs_fsinfo.c и окружающие места (changesets
6597 и 6599).
--
/ Alexander Bokovoy
Samba Team http://www.samba.org/
ALT Linux Team http://www.altlinux.org/
Midgard Project Ry http://www.midgard-project.org/
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2005-05-08 15:43 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-08 12:39 [devel] " Vitaly Ostanin
2005-05-08 13:31 ` php-coder
2005-05-08 14:19 ` [devel] " Vitaly Ostanin
2005-05-08 14:41 ` php-coder
2005-05-08 14:49 ` Vitaly Ostanin
2005-05-08 15:22 ` Mikhail Yakshin
2005-05-08 15:43 ` Alexander Bokovoy [this message]
2005-05-11 11:54 ` Vitaly Ostanin
2005-05-11 17:54 ` [devel] [JT] " Michael Shigorin
2005-05-12 8:28 ` Alexander Bokovoy
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=20050508154302.GC3723@altlinux.org \
--to=ab@altlinux.org \
--cc=devel@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 Team development discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/devel/0 devel/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 devel devel/ http://lore.altlinux.org/devel \
devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
public-inbox-index devel
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.devel
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git