"Fossies" - the Fresh Open Source Software Archive

Member "LVM2.2.03.13/test/shell/activate-minor.sh" (11 Aug 2021, 858 Bytes) of package /linux/misc/LVM2.2.03.13.tgz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 #!/usr/bin/env bash
    2 
    3 # Copyright (C) 2012 Red Hat, Inc. All rights reserved.
    4 #
    5 # This copyrighted material is made available to anyone wishing to use,
    6 # modify, copy, or redistribute it subject to the terms and conditions
    7 # of the GNU General Public License v.2.
    8 #
    9 # You should have received a copy of the GNU General Public License
   10 # along with this program; if not, write to the Free Software Foundation,
   11 # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
   12 
   13 
   14 SKIP_WITH_LVMPOLLD=1
   15 
   16 . lib/inittest
   17 
   18 # Just skip this test if minor is already in use...
   19 dmsetup info | tee info
   20 grep -E "^Major, minor: *[0-9]+, 123" info && skip
   21 
   22 aux prepare_vg 2
   23 lvcreate -a n --zero n -l 1 -n foo $vg
   24 lvchange $vg/foo -My --major=255 --minor=123
   25 lvchange $vg/foo -a y
   26 dmsetup info $vg-foo | tee info
   27 grep -E "^Major, minor: *[0-9]+, 123" info
   28 
   29 vgremove -ff $vg