From: Alexey Gladkov <legion@altlinux.ru> To: ALT Linux Sisyphus discussions <sisyphus@lists.altlinux.org> Subject: Re: [sisyphus] make-initrd Date: Tue, 16 Jun 2020 18:04:59 +0200 Message-ID: <20200616160459.cl47nnw5dkjufbza@comp-core-i7-2640m-0182e6> (raw) In-Reply-To: <CAO+nvQD=XQ-BVQb9R=qrM75TW4aZGoUdLXmnPpRN06YUmK2hxg@mail.gmail.com> On Tue, Jun 16, 2020 at 06:03:52PM +0300, Игорь Андросов wrote: > вт, 16 июн. 2020 г. в 15:30, Alexey Gladkov <legion@altlinux.ru>: > > > On Tue, Jun 16, 2020 at 12:39:14PM +0300, Игорь Андросов wrote: > > > > Вы всё правильно поняли. > > > > > > > > > # findmnt -n -o MAJ:MIN,FSTYPE,SOURCE --target / > > > > > 0:24 btrfs /dev/sda2 > > > > > > > > Вот тут очень интересно откуда такой major взялся. Попробую > > разобраться, > > > > хотя у меня нигде такого не было. > > > > > > > Ну, как предположение, btrfs может быть из нескольких дисков(кроме того > > еще > > > субтома, снапшоты и тд которые могут выступать как точки монтирования) и > > > это какое-то виртуальное устройство а не прямая связь с физ устройством? > > > > Нет. Устройство чего бы под ним не было должно быть устройством. > > Можете показать вывод следующей команды ? > > > > Эм... Может я неверно выразился, но: > kernel/Documentation/admin-guide/devices.txt > -- > 0 Unnamed devices (e.g. non-device mounts) > 0 = reserved as null device number > See block major 144, 145, 146 for expansion areas. > -- cut -- > > btrfs это файловая система, она вроде как не устройство, она может быть > собрана из н-цати "устройств", разделов дисков и тд. и сказать кто в нее > входит может только она. Это не так. Обратите внимание, что показала утилита stat. Это те же major и minor устройства. Тут скорее findmnt запутался из-за того что запрос информации об устройстве был по точке монтирования и выдал чушь. На моих тестах он вёл себя корректно. > Соответственно и возникает устройство с Major 0, > так монтируем не конкретное устройство, а некую точку из того что есть в > btrfs, имхо схоже с nfs,proc,sys и подобными. В случае виртуальной файловой системы major и minor не имеет смысла. Я переделаю способ получения этой информации о точке монтирования. Спасибо. -- Rgrds, legion
next prev parent reply other threads:[~2020-06-16 16:04 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-06-16 9:16 ` Alexey Gladkov 2020-06-16 12:30 ` Alexey Gladkov 2020-06-16 16:04 ` Alexey Gladkov [this message] 2020-06-17 16:15 ` Alexey Gladkov 2020-06-17 18:25 ` Alexey Gladkov 2020-06-17 18:53 ` Михаил Новоселов 2020-06-20 19:06 ` Leonid Krivoshein 2020-06-20 19:44 ` Alexey Gladkov
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=20200616160459.cl47nnw5dkjufbza@comp-core-i7-2640m-0182e6 \ --to=legion@altlinux.ru \ --cc=sisyphus@lists.altlinux.org \ /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 Sisyphus discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \ sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru public-inbox-index sisyphus Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.sisyphus AGPL code for this site: git clone https://public-inbox.org/public-inbox.git