aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/db/migrator_output_handler_interface.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2015-05-05 18:17:14 +0200
committerJoas Schilling <nickvergessen@gmx.de>2015-05-05 18:17:14 +0200
commitde687f32ed8df438cb798d98f1a5dda7a5ac76dc (patch)
tree346e51469449521e40a25d875bcc3f7b8d7846f7 /phpBB/phpbb/db/migrator_output_handler_interface.php
parentba53901ffb734995b42626a71a81a5abaa55f85d (diff)
parent51376a43919cba7a5037edb7cc31f18b5950437b (diff)
downloadforums-de687f32ed8df438cb798d98f1a5dda7a5ac76dc.tar
forums-de687f32ed8df438cb798d98f1a5dda7a5ac76dc.tar.gz
forums-de687f32ed8df438cb798d98f1a5dda7a5ac76dc.tar.bz2
forums-de687f32ed8df438cb798d98f1a5dda7a5ac76dc.tar.xz
forums-de687f32ed8df438cb798d98f1a5dda7a5ac76dc.zip
Merge pull request #3432 from Nicofuma/ticket/13638
[ticket/13638] Prepend the assets path phpbb root
Diffstat (limited to 'phpBB/phpbb/db/migrator_output_handler_interface.php')
0 files changed, 0 insertions, 0 deletions
tware may be freely redistributed under the terms of the GNU # public license. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. # # # Detects partition types using signatures # use lib qw(/usr/lib/libDrakX); use common; use fs::type; use fs::proc_partitions; my $params = join '', @ARGV; my $verbose = $params =~ /-v/; $params =~ /-h/ and die "usage: lsparts [-v]\n"; foreach (fs::proc_partitions::read_raw()) { if (my $err = $_->{size} <= 1 ? "Skipping <$_->{dev}> because too little blocks ($_->{size})" : $_->{dev} !~ /\d$/ ? "Skipping <$_->{dev}> because doesn't end with a number (e.g. seems to not be a partition)" : $_->{dev} =~ /^loop\d+$/ ? "Skipping <$_->{dev}>" : '') { print STDERR "$err\n" if $verbose; } else { $_->{device} = $_->{dev}; if (my $type = fs::type::type_subpart_from_magic($_)) { printf "$_->{dev}: %6s, fs %s (%s)\n", formatXiB($_->{size} * 512), $type->{fs_type}, fs::type::part2type_name($type); } } }