File: create_bbr_segment

package info (click to toggle)
evms 2.5.2-1.sarge2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 14,248 kB
  • ctags: 15,488
  • sloc: ansic: 201,340; perl: 12,421; sh: 4,262; makefile: 1,516; yacc: 316; sed: 16
file content (15 lines) | stat: -rwxr-xr-x 212 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash
#
# Use the EVMS CLI to create a BBR segment.

child=$1

if [ -z $child ]; then
	echo "USAGE: `basename $0` disk_name|segment_name"
	exit 1
fi

evms -s << EOF > /dev/null
assign:BBRseg={},$child
EOF