#!/usr/bin/perl -w # (c) 2001, Dave Jones. (the file handling bit) # (c) 2005, Joel Schopp (the ugly bit) # (c) 2007,2008, Andy Whitcroft (new conditions, test suite) # (c) 2008-2010 Andy Whitcroft # Licensed under the terms of the GNU GPL License version 2 use strict; use POSIX; my $P = $0; $P =~ s@.*/@@g; my $V = '0.32'; use Getopt::Long qw(:config no_auto_abbrev); my $quiet = 0; my $tree = 1; my $chk_signoff = 1; my $chk_patch = 1; my $tst_only; my $emacs = 0; my $terse = 0; my $file = 0; my $check = 0; my $summary = 1; my $mailback = 0; my $summary_file = 0; my $show_types = 0; my $fix = 0; my $fix_inplace = 0; my $root; my %debug; my %camelcase = (); my %use_type = (); my @use = (); my %ignore_type = (); my @ignore = (); my $help = 0; my $configuration_file = ".checkpatch.conf"; my $max_line_length = 80; my $ignore_perl_version = 0; my $minimum_perl_version = 5.10.0; sub help { my ($exitcode) = @_; print << "EOM"; Usage: $P [OPTION]... [FILE]... Version: $V Options: -q, --quiet quiet --no-tree run without a kernel tree --no-signoff do not check for 'Signed-off-by' line --patch treat FILE as patchfile (default) --emacs emacs compile window format --terse one line per report -f, --file treat FILE as regular source file --subjective, --strict enable more subjective tests --types TYPE(,TYPE2...) show only these comma separated message types --ignore TYPE(,TYPE2...) ignore various comma separated message types --max-line-length=n set the maximum line length, if exceeded, warn --show-types show the message "types" in the output --root=PATH PATH to the kernel tree root --no-summary suppress the per-file summary --mailback only produce a report in case of warnings/errors --summary-file include the filename in summary --debug KEY=[0|1] turn on/off debugging of KEY, where KEY is one of 'values', 'possible', 'type', and 'attr' (default is all off) --test-only=WORD report only warnings/errors containing WORD literally --fix EXPERIMENTAL - may create horrible results If correctable single-line errors exist, create ".EXPERIMENTAL-checkpatch-fixes" with potential errors corrected to the preferred checkpatch style --fix-inplace EXPERIMENTAL - may create horrible results Is the same as --fix, but overwrites the input file. It's your fault if there's no backup or git --ignore-perl-version override checking of perl version. expect runtime errors. -h, --help, --version display this help and exit When FILE is - read standard input. EOM exit($exitcode); } my $conf = which_conf($configuration_file); if (-f $conf) { my @conf_args; open(my $conffile, '<', "$conf") or warn "$P: Can't find a readable $configuration_file file $!\n"; while (<$conffile>) { my $line = $_; $line =~ s/\s*\n?$//g; $line =~ s/^\s*//g; $line =~ s/\s+/ /g; next if ($line =~ m/^\s*#/); next if ($line =~ m/^\s*$/); my @words = split(" ", $line); foreach my $word (@words) { last if ($word =~ m/^#/); push (@conf_args, $word); } } close($conffile); unshift(@ARGV, @conf_args) if @conf_args; } GetOptions( 'q|quiet+' => \$quiet, 'tree!' => \$tree, 'signoff!' => \$chk_signoff, 'patch!' => \$chk_patch, 'emacs!' => \$emacs, 'terse!' => \$terse, 'f|file!' => \$file, 'subjective!' => \$check, 'strict!' => \$check, 'ignore=s' => \@ignore, 'types=s' => \@use, 'show-types!' => \$show_types, 'max-line-length=i' => \$max_line_length, 'root=s' => \$root, 'summary!' => \$summary, 'mailback!' => \$mailback, 'summary-file!' => \$summary_file, 'fix!' => \$fix, 'fix-inplace!' => \$fix_inplace, 'ignore-perl-version!' => \$ignore_perl_version, 'debug=s' => \%debug, 'test-only=s' => \$tst_only, 'h|help' => \$help, 'version' => \$help ) or help(1); help(0) if ($help); $fix = 1 if ($fix_inplace); my $exit = 0; if ($^V && $^V lt $minimum_perl_version) { printf "$P: requires at least perl version %vd\n", $minimum_perl_version; if (!$ignore_perl_version) { exit(1); } } if ($#ARGV < 0) { print "$P: no input files\n"; exit(1); } sub hash_save_array_words { my ($hashRef, $arrayRef) = @_; my @array = split(/,/, join(',', @$arrayRef)); foreach my $word (@array) { $word =~ s/\s*\n?$//g; $word =~ s/^\s*//g; $word =~ s/\s+/ /g; $word =~ tr/[a-z]/[A-Z]/; next if ($word =~ m/^\s*#/); next if ($word =~ m/^\s*$/); $hashRef->{$word}++; } } sub hash_show_words { my ($hashRef, $prefix) = @_; if ($quiet == 0 && keys %$hashRef) { print "NOTE: $prefix message types:"; foreach my $word (sort keys %$hashRef) { print " $word"; } print "\n\n"; } } hash_save_array_words(\%ignore_type, \@ignore); hash_save_array_words(\%use_type, \@use); my $dbg_values = 0; my $dbg_possible = 0; my $dbg_type = 0; my $dbg_attr = 0; for my $key (keys %debug) { ## no critic eval "\${dbg_$key} = '$debug{$key}';"; die "$@" if ($@); } my $rpt_cleaners = 0; if ($terse) { $emacs = 1; $quiet++; } if ($tree) { if (defined $root) { if (!top_of_kernel_tree($root)) { die "$P: $root: --root does not point at a valid tree\n"; } } else { if (top_of_kernel_tree('.')) { $root = '.'; } elsif ($0 =~ m@(.*)/scripts/[^/]*$@ && top_of_kernel_tree($1)) { $root = $1; } } if (!defined $root) { print "Must be run from the top-level dir. of a kernel tree\n"; exit(2); } } my $emitted_corrupt = 0; our $Ident = qr{ [A-Za-z_][A-Za-z\d_]* (?:\s*\#\#\s*[A-Za-z_][A-Za-z\d_]*)* }x; our $Storage = qr{extern|static|asmlinkage}; our $Sparse = qr{ __user| __kernel| __force| __iomem| __must_check| __init_refok| __kprobes| __ref| __rcu }x; our $InitAttributePrefix = qr{__(?:mem|cpu|dev|net_|)}; our $InitAttributeData = qr{$InitAttributePrefix(?:initdata\b)}; our $InitAttributeConst = qr{$InitAttributePrefix(?:initconst\b)}; our $InitAttributeInit = qr{$InitAttributePrefix(?:init\b)}; our $InitAttribute = qr{$InitAttributeData|$InitAttributeConst|$InitAttributeInit}; # Notes to $Attribute: # We need \b after 'init' otherwise 'initconst' will cause a false positive in a check our $Attribute = qr{ const| __percpu| __nocast| __safe| __bitwise__| __packed__| __packed2__| __naked| __maybe_unused| __always_unused| __noreturn| __used| __cold| __noclone| __deprecated| __read_mostly| __kprobes| $InitAttribute| ____cacheline_aligned| ____cacheline_aligned_in_smp| ____cacheline_internodealigned_in_smp| __weak }x; our $Modifier; our $Inline = qr{inline|__always_inline|noinline}; our $Member = qr{->$Ident|\.$Ident|\[[^]]*\]}; our $Lval = qr{$Ident(?:$Member)*}; our $Int_type = qr{(?i)llu|ull|ll|lu|ul|l|u}; our $Binary = qr{(?i)0b[01]+$Int_type?}; our $Hex = qr{(?i)0x[0-9a-f]+$Int_type?}; our $Int = qr{[0-9]+$Int_type?}; our $Float_hex = qr{(?i)0x[0-9a-f]+p-?[0-9]+[fl]?}; our $Float_dec = qr{(?i)(?:[0-9]+\.[0-9]*|[0-9]*\.[0-9]+)(?:e-?[0-9]+)?[fl]?}; our $Float_int = qr{(?i)[0-9]+e-?[0-9]+[fl]?}; our $Float = qr{$Float_hex|$Float_dec|$Float_int}; our $Constant = qr{$Float|$Binary|$Hex|$Int}; our $Assignment = qr{\*\=|/=|%=|\+=|-=|<<=|>>=|&=|\^=|\|=|=}; our $Compare = qr{<=|>=|==|!=|<|>}; our $Arithmetic = qr{\+|-|\*|\/|%}; our $Operators = qr{ <=|>=|==|!=| =>|->|<<|>>|<|>|!|~| &&|\|\||,|\^|\+\+|--|&|\||$Arithmetic }x; our $NonptrType; our $NonptrTypeWithAttr; our $Type; our $Declare; our $NON_ASCII_UTF8 = qr{ [\xC2-\xDF][\x80-\xBF] # non-overlong 2-byte | \xE0[\xA0-\xBF][\x80-\xBF] # excluding overlongs | [\xE1-\xEC\xEE\xEF][\x80-\xBF]{2} # straight 3-byte | \xED[\x80-\x9F][\x80-\xBF] # excluding surrogates | \xF0[\x90-\xBF][\x80-\xBF]{2} # planes 1-3 | [\xF1-\xF3][\x80-\xBF]{3} # planes 4-15 | \xF4[\x80-\x8F][\x80-\xBF]{2} # plane 16 }x; our $UTF8 = qr{ [\x09\x0A\x0D\x20-\x7E] # ASCII | $NON_ASCII_UTF8 }x; our $typeTypedefs = qr{(?x: (?:__)?(?:u|s|be|le)(?:8|16|32|64)| atomic_t )}; our $logFunctions = qr{(?x: printk(?:_ratelimited|_once|)| (?:[a-z0-9]+_){1,2}(?:printk|emerg|alert|crit|err|warning|warn|notice|info|debug|dbg|vdbg|devel|cont|WARN)(?:_ratelimited|_once|)| WARN(?:_RATELIMIT|_ONCE|)| panic| debug| printf| puts| MODULE_[A-Z_]+| seq_vprintf|seq_printf|seq_puts )}; our $signature_tags = qr{(?xi: Signed-off-by:| Acked-by:| Tested-by:| Reviewed-by:| Reported-by:| Suggested-by:| To:| Cc: )}; our @typeList = ( qr{void}, qr{(?:unsigned\s+)?char}, qr{(?:unsigned\s+)?short}, qr{(?:unsigned\s+)?int}, qr{(?:unsigned\s+)?long}, qr{(?:unsigned\s+)?long\s+int}, qr{(?:unsigned\s+)?long\s+long}, qr{(?:unsigned\s+)?long\s+long\s+int}, qr{unsigned}, qr{float}, qr{double}, qr{bool}, qr{struct\s+$Ident}, qr{union\s+$Ident}, qr{enum\s+$Ident}, qr{${Ident}_t}, qr{${Ident}_handler}, qr{${Ident}_handler_fn}, ); our @typeListWithAttr = ( @typeList, qr{struct\s+$InitAttribute\s+$Ident}, qr{union\s+$InitAttribute\s+$Ident}, ); our @modifierList = ( qr{fastcall}, ); our $allowed_asm_includes = qr{(?x: irq| memory )}; # memory.h: ARM has a custom one sub build_types { my $mods = "(?x: \n" . join("|\n ", @modifierList) . "\n)"; my $all = "(?x: \n" . join("|\n ", @typeList) . "\n)"; my $allWithAttr = "(?x: \n" . join("|\n ", @typeListWithAttr) . "\n)"; $Modifier = qr{(?:$Attribute|$Sparse|$mods)}; $NonptrType = qr{ (?:$Modifier\s+|const\s+)* (?: (?:typeof|__typeof__)\s*\([^\)]*\)| (?:$typeTypedefs\b)| (?:${all}\b) ) (?:\s+$Modifier|\s+const)* }x; $NonptrTypeWithAttr = qr{ (?:$Modifier\s+|const\s+)* (?: (?:typeof|__typeof__)\s*\([^\)]*\)| (?:$typeTypedefs\b)| (?:${allWithAttr}\b) ) (?:\s+$Modifier|\s+const)* }x; $Type = qr{ $NonptrType (?:(?:\s|\*|\[\])+\s*const|(?:\s|\*|\[\])+|(?:\s*\[\s*\])+)? (?:\s+$Inline|\s+$Modifier)* }x; $Declare = qr{(?:$Storage\s+)?$Type}; } build_types(); our $Typecast = qr{\s*(\(\s*$NonptrType\s*\)){0,1}\s*}; # Using $balanced_parens, $LvalOrFunc, or $FuncArg # requires at least perl version v5.10.0 # Any use must be runtime checked with $^V our $balanced_parens = qr/(\((?:[^\(\)]++|(?-1))*\))/; our $LvalOrFunc = qr{($Lval)\s*($balanced_parens{0,1})\s*}; our $FuncArg = qr{$Typecast{0,1}($LvalOrFunc|$Constant)}; sub deparenthesize { my ($string) = @_; return "" if (!defined($string)); $string =~ s@^\s*\(\s*@@g; $string =~ s@\s*\)\s*$@@g; $string =~ s@\s+@ @g; return $string; } sub seed_camelcase_file { my ($file) = @_; return if (!(-f $file)); local $/; open(my $include_file, '<', "$file") or warn "$P: Can't read '$file' $!\n"; my $text = <$include_file>; close($include_file); my @lines = split('\n', $text); foreach my $line (@lines) { next if ($line !~ /(?:[A-Z][a-z]|[a-z][A-Z])/); if ($line =~ /^[ \t]*(?:#[ \t]*define|typedef\s+$Type)\s+(\w*(?:[A-Z][a-z]|[a-z][A-Z])\w*)/) { $camelcase{$1} = 1; } elsif ($line =~ /^\s*$Declare\s+(\w*(?:[A-Z][a-z]|[a-z][A-Z])\w*)\s*[\(\[,;]/) { $camelcase{$1} = 1; } elsif ($line =~ /^\s*(?:union|struct|enum)\s+(\w*(?:[A-Z][a-z]|[a-z][A-Z])\w*)\s*[;\{]/) { $camelcase{$1} = 1; } } } my $camelcase_seeded = 0; sub seed_camelcase_includes { return if ($camelcase_seeded); my $files; my $camelcase_cache = ""; my @include_files = (); $camelcase_seeded = 1; if (-e ".git") { my $git_last_include_commit = `git log --no-merges --pretty=format:"%h%n" -1 -- include`; chomp $git_last_include_commit; $camelcase_cache = ".checkpatch-camelcase.git.$git_last_include_commit"; } else { my $last_mod_date = 0; $files = `find $root/include -name "*.h"`; @include_files = split('\n', $files); foreach my $file (@include_files) { my $date = POSIX::strftime("%Y%m%d%H%M", localtime((stat $file)[9])); $last_mod_date = $date if ($last_mod_date < $date); } $camelcase_cache = ".checkpatch-camelcase.date.$last_mod_date"; } if ($camelcase_cache ne "" && -f $camelcase_cache) { open(my $camelcase_file, '<', "$camelcase_cache") or warn "$P: Can't read '$camelcase_cache' $!\n"; while (<$camelcase_file>) { chomp; $camelcase{$_} = 1; } close($camelcase_file); return; } if (-e ".git") { $files = `git ls-files "include/*.h"`; @include_files = split('\n', $files); } foreach my $file (@include_files) { seed_camelcase_file($file); } if ($camelcase_cache ne "") { unlink glob ".checkpatch-camelcase.*"; open(my $camelcase_file, '>', "$camelcase_cache") or warn "$P: Can't write '$camelcase_cache' $!\n"; foreach (sort { lc($a) cmp lc($b) } keys(%camelcase)) { print $camelcase_file ("$_\n"); } close($camelcase_file); } } $chk_signoff = 0 if ($file); my @rawlines = (); my @lines = (); my @fixed = (); my $vname; for my $filename (@ARGV) { my $FILE; if ($file) { open($FILE, '-|', "diff -u /dev/null $filename") || die "$P: $filename: diff failed - $!\n"; } elsif ($filename eq '-') { open($FILE, '<&STDIN'); } else { open($FILE, '<', "$filename") || die "$P: $filename: open failed - $!\n"; } if ($filename eq '-') { $vname = 'Your patch'; } else { $vname = $filename; } while (<$FILE>) { chomp; push(@rawlines, $_); } close($FILE); if (!process($filename)) { $exit = 1; } @rawlines = (); @lines = (); @fixed = (); } exit($exit); sub top_of_kernel_tree { my ($root) = @_; my @tree_check = ( "COPYING", "CREDITS", "Kbuild", "MAINTAINERS", "Makefile", "README", "Documentation", "arch", "include", "drivers", "fs", "init", "ipc", "kernel", "lib", "scripts", ); foreach my $check (@tree_check) { if (! -e $root . '/' . $check) { return 0; } } return 1; } sub parse_email { my ($formatted_email) = @_; my $name = ""; my $address = ""; my $comment = ""; if ($formatted_email =~ /^(.*)<(\S+\@\S+)>(.*)$/) { $name = $1; $address = $2; $comment = $3 if defined $3; } elsif ($formatted_email =~ /^\s*<(\S+\@\S+)>(.*)$/) { $address = $1; $comment = $2 if defined $2; } elsif ($formatted_email =~ /(\S+\@\S+)(.*)$/) { $address = $1; $comment = $2 if defined $2; $formatted_email =~ s/$address.*$//; $name = $formatted_email; $name = trim($name); $name =~ s/^\"|\"$//g; # If there's a name left after stripping spaces and # leading quotes, and the address doesn't have both # leading and trailing angle brackets, the address # is invalid. ie: # "joe smith joe@smith.com" bad # "joe smith ]+>$/) { $name = ""; $address = ""; $comment = ""; } } $name = trim($name); $name =~ s/^\"|\"$//g; $address = trim($address); $address =~ s/^\<|\>$//g; if ($name =~ /[^\w \-]/i) { ##has "must quote" chars $name =~ s/(?"; } return $formatted_email; } sub which_conf { my ($conf) = @_; foreach my $path (split(/:/, ".:$ENV{HOME}:.scripts")) { if (-e "$path/$conf") { return "$path/$conf"; } } return ""; } sub expand_tabs { my ($str) = @_; my $res = ''; my $n = 0; for my $c (split(//, $str)) { if ($c eq "\t") { $res .= ' '; $n++; for (; ($n % 8) != 0; $n++) { $res .= ' '; } next; } $res .= $c; $n++; } return $res; } sub copy_spacing { (my $res = shift) =~ tr/\t/ /c; return $res; } sub line_stats { my ($line) = @_; # Drop the diff line leader and expand tabs $line =~ s/^.//; $line = expand_tabs($line); # Pick the indent from the front of the line. my ($white) = ($line =~ /^(\s*)/); return (length($line), length($white)); } my $sanitise_quote = ''; sub sanitise_line_reset { my ($in_comment) = @_; if ($in_comment) { $sanitise_quote = '*/'; } else { $sanitise_quote = ''; } } sub sanitise_line { my ($line) = @_; my $res = ''; my $l = ''; my $qlen = 0; my $off = 0; my $c; # Always copy over the diff marker. $res = substr($line, 0, 1); for ($off = 1; $off < length($line); $off++) { $c = substr($line, $off, 1); # Comments we are wacking completly including the begin # and end, all to $;. if ($sanitise_quote eq '' && substr($line, $off, 2) eq '/*') { $sanitise_quote = '*/'; substr($res, $off, 2, "$;$;"); $off++; next; } if ($sanitise_quote eq '*/' && substr($line, $off, 2) eq '*/') { $sanitise_quote = ''; substr($res, $off, 2, "$;$;"); $off++; next; } if ($sanitise_quote eq '' && substr($line, $off, 2) eq '//') { $sanitise_quote = '//'; substr($res, $off, 2, $sanitise_quote); $off++; next; } # A \ in a string means ignore the next character. if (($sanitise_quote eq "'" || $sanitise_quote eq '"') && $c eq "\\") { substr($res, $off, 2, 'XX'); $off++; next; } # Regular quotes. if ($c eq "'" || $c eq '"') { if ($sanitise_quote eq '') { $sanitise_quote = $c; substr($res, $off, 1, $c); next; } elsif ($sanitise_quote eq $c) { $sanitise_quote = ''; } } #print "c<$c> SQ<$sanitise_quote>\n"; if ($off != 0 && $sanitise_quote eq '*/' && $c ne "\t") { substr($res, $off, 1, $;); } elsif ($off != 0 && $sanitise_quote eq '//' && $c ne "\t") { substr($res, $off, 1, $;); } elsif ($off != 0 && $sanitise_quote && $c ne "\t") { substr($res, $off, 1, 'X'); } else { substr($res, $off, 1, $c); } } if ($sanitise_quote eq '//') { $sanitise_quote = ''; } # The pathname on a #include may be surrounded by '<' and '>'. if ($res =~ /^.\s*\#\s*include\s+\<(.*)\>/) { my $clean = 'X' x length($1); $res =~ s@\<.*\>@<$clean>@; # The whole of a #error is a string. } elsif ($res =~ /^.\s*\#\s*(?:error|warning)\s+(.*)\b/) { my $clean = 'X' x length($1); $res =~ s@(\#\s*(?:error|warning)\s+).*@$1$clean@; } return $res; } sub get_quoted_string { my ($line, $rawline) = @_; return "" if ($line !~ m/(\"[X]+\")/g); return substr($rawline, $-[0], $+[0] - $-[0]); } sub ctx_statement_block { my ($linenr, $remain, $off) = @_; my $line = $linenr - 1; my $blk = ''; my $soff = $off; my $coff = $off - 1; my $coff_set = 0; my $loff = 0; my $type = ''; my $level = 0; my @stack = (); my $p; my $c; my $len = 0; my $remainder; while (1) { @stack = (['', 0]) if ($#stack == -1); #warn "CSB: blk<$blk> remain<$remain>\n"; # If we are about to drop off the end, pull in more # context. if ($off >= $len) { for (; $remain > 0; $line++) { last if (!defined $lines[$line]); next if ($lines[$line] =~ /^-/); $remain--; $loff = $len; $blk .= $lines[$line] . "\n"; $len = length($blk); $line++; last; } # Bail if there is no further context. #warn "CSB: blk<$blk> off<$off> len<$len>\n"; if ($off >= $len) { last; } if ($level == 0 && substr($blk, $off) =~ /^.\s*#\s*define/) { $level++; $type = '#'; } } $p = $c; $c = substr($blk, $off, 1); $remainder = substr($blk, $off); #warn "CSB: c<$c> type<$type> level<$level> remainder<$remainder> coff_set<$coff_set>\n"; # Handle nested #if/#else. if ($remainder =~ /^#\s*(?:ifndef|ifdef|if)\s/) { push(@stack, [ $type, $level ]); } elsif ($remainder =~ /^#\s*(?:else|elif)\b/) { ($type, $level) = @{$stack[$#stack - 1]}; } elsif ($remainder =~ /^#\s*endif\b/) { ($type, $level) = @{pop(@stack)}; } # Statement ends at the ';' or a close '}' at the # outermost level. if ($level == 0 && $c eq ';') { last; } # An else is really a conditional as long as its not else if if ($level == 0 && $coff_set == 0 && (!defined($p) || $p =~ /(?:\s|\}|\+)/) && $remainder =~ /^(else)(?:\s|{)/ && $remainder !~ /^else\s+if\b/) { $coff = $off + length($1) - 1; $coff_set = 1; #warn "CSB: mark coff<$coff> soff<$soff> 1<$1>\n"; #warn "[" . substr($blk, $soff, $coff - $soff + 1) . "]\n"; } if (($type eq '' || $type eq '(') && $c eq '(') { $level++; $type = '('; } if ($type eq '(' && $c eq ')') { $level--; $type = ($level != 0)? '(' : ''; if ($level == 0 && $coff < $soff) { $coff = $off; $coff_set = 1; #warn "CSB: mark coff<$coff>\n"; } } if (($type eq '' || $type eq '{') && $c eq '{') { $level++; $type = '{'; } if ($type eq '{' && $c eq '}') { $level--; $type = ($level != 0)? '{' : ''; if ($level == 0) { if (substr($blk, $off + 1, 1) eq ';') { $off++; } last; } } # Preprocessor commands end at the newline unless escaped. if ($type eq '#' && $c eq "\n" && $p ne "\\") { $level--; $type = ''; $off++; last; } $off++; } # We are truly at the end, so shuffle to the next line. if ($off == $len) { $loff = $len + 1; $line++; $remain--; } my $statement = substr($blk, $soff, $off - $soff + 1); my $condition = substr($blk, $soff, $coff - $soff + 1); #warn "STATEMENT<$statement>\n"; #warn "CONDITION<$condition>\n"; #print "coff<$coff> soff<$off> loff<$loff>\n"; return ($statement, $condition, $line, $remain + 1, $off - $loff + 1, $level); } sub statement_lines { my ($stmt) = @_; # Strip the diff line prefixes and rip blank lines at start and end. $stmt =~ s/(^|\n)./$1/g; $stmt =~ s/^\s*//; $stmt =~ s/\s*$//; my @stmt_lines = ($stmt =~ /\n/g); return $#stmt_lines + 2; } sub statement_rawlines { my ($stmt) = @_; my @stmt_lines = ($stmt =~ /\n/g); return $#stmt_lines + 2; } sub statement_block_size { my ($stmt) = @_; $stmt =~ s/(^|\n)./$1/g; $stmt =~ s/^\s*{//; $stmt =~ s/}\s*$//; $stmt =~ s/^\s*//; $stmt =~ s/\s*$//; my @stmt_lines = ($stmt =~ /\n/g); my @stmt_statements = ($stmt =~ /;/g); my $stmt_lines = $#stmt_lines + 2; my $stmt_statements = $#stmt_statements + 1; if ($stmt_lines > $stmt_statements) { return $stmt_lines; } else { return $stmt_statements; } } sub ctx_statement_full { my ($linenr, $remain, $off) = @_; my ($statement, $condition, $level); my (@chunks); # Grab the first conditional/block pair. ($statement, $condition, $linenr, $remain, $off, $level) = ctx_statement_block($linenr, $remain, $off); #print "F: c<$condition> s<$statement> remain<$remain>\n"; push(@chunks, [ $condition, $statement ]); if (!($remain > 0 && $condition =~ /^\s*(?:\n[+-])?\s*(?:if|else|do)\b/s)) { return ($level, $linenr, @chunks); } # Pull in the following conditional/block pairs and see if they # could continue the statement. for (;;) { ($statement, $condition, $linenr, $remain, $off, $level) = ctx_statement_block($linenr, $remain, $off); #print "C: c<$condition> s<$statement> remain<$remain>\n"; last if (!($remain > 0 && $condition =~ /^(?:\s*\n[+-])*\s*(?:else|do)\b/s)); #print "C: push\n"; push(@chunks, [ $condition, $statement ]); } return ($level, $linenr, @chunks); } sub ctx_block_get { my ($linenr, $remain, $outer, $open, $close, $off) = @_; my $line; my $start = $linenr - 1; my $blk = ''; my @o; my @c; my @res = (); my $level = 0; my @stack = ($level); for ($line = $start; $remain > 0; $line++) { next if ($rawlines[$line] =~ /^-/); $remain--; $blk .= $rawlines[$line]; # Handle nested #if/#else. if ($lines[$line] =~ /^.\s*#\s*(?:ifndef|ifdef|if)\s/) { push(@stack, $level); } elsif ($lines[$line] =~ /^.\s*#\s*(?:else|elif)\b/) { $level = $stack[$#stack - 1]; } elsif ($lines[$line] =~ /^.\s*#\s*endif\b/) { $level = pop(@stack); } foreach my $c (split(//, $lines[$line])) { ##print "C<$c>L<$level><$open$close>O<$off>\n"; if ($off > 0) { $off--; next; } if ($c eq $close && $level > 0) { $level--; last if ($level == 0); } elsif ($c eq $open) { $level++; } } if (!$outer || $level <= 1) { push(@res, $rawlines[$line]); } last if ($level == 0); } return ($level, @res); } sub ctx_block_outer { my ($linenr, $remain) = @_; my ($level, @r) = ctx_block_get($linenr, $remain, 1, '{', '}', 0); return @r; } sub ctx_block { my ($linenr, $remain) = @_; my ($level, @r) = ctx_block_get($linenr, $remain, 0, '{', '}', 0); return @r; } sub ctx_statement { my ($linenr, $remain, $off) = @_; my ($level, @r) = ctx_block_get($linenr, $remain, 0, '(', ')', $off); return @r; } sub ctx_block_level { my ($linenr, $remain) = @_; return ctx_block_get($linenr, $remain, 0, '{', '}', 0); } sub ctx_statement_level { my ($linenr, $remain, $off) = @_; return ctx_block_get($linenr, $remain, 0, '(', ')', $off); } sub ctx_locate_comment { my ($first_line, $end_line) = @_; # Catch a comment on the end of the line itself. my ($current_comment) = ($rawlines[$end_line - 1] =~ m@.*(/\*.*\*/)\s*(?:\\\s*)?$@); return $current_comment if (defined $current_comment); # Look through the context and try and figure out if there is a # comment. my $in_comment = 0; $current_comment = ''; for (my $linenr = $first_line; $linenr < $end_line; $linenr++) { my $line = $rawlines[$linenr - 1]; #warn " $line\n"; if ($linenr == $first_line and $line =~ m@^.\s*\*@) { $in_comment = 1; } if ($line =~ m@/\*@) { $in_comment = 1; } if (!$in_comment && $current_comment ne '') { $current_comment = ''; } $current_comment .= $line . "\n" if ($in_comment); if ($line =~ m@\*/@) { $in_comment = 0; } } chomp($current_comment); return($current_comment); } sub ctx_has_comment { my ($first_line, $end_line) = @_; my $cmt = ctx_locate_comment($first_line, $end_line); ##print "LINE: $rawlines[$end_line - 1 ]\n"; ##print "CMMT: $cmt\n"; return ($cmt ne ''); } sub raw_line { my ($linenr, $cnt) = @_; my $offset = $linenr - 1; $cnt++; my $line; while ($cnt) { $line = $rawlines[$offset++]; next if (defined($line) && $line =~ /^-/); $cnt--; } return $line; } sub cat_vet { my ($vet) = @_; my ($res, $coded); $res = ''; while ($vet =~ /([^[:cntrl:]]*)([[:cntrl:]]|$)/g) { $res .= $1; if ($2 ne '') { $coded = sprintf("^%c", unpack('C', $2) + 64); $res .= $coded; } } $res =~ s/$/\$/; return $res; } my $av_preprocessor = 0; my $av_pending; my @av_paren_type; my $av_pend_colon; sub annotate_reset { $av_preprocessor = 0; $av_pending = '_'; @av_paren_type = ('E'); $av_pend_colon = 'O'; } sub annotate_values { my ($stream, $type) = @_; my $res; my $var = '_' x length($stream); my $cur = $stream; print "$stream\n" if ($dbg_values > 1); while (length($cur)) { @av_paren_type = ('E') if ($#av_paren_type < 0); print " <" . join('', @av_paren_type) . "> <$type> <$av_pending>" if ($dbg_values > 1); if ($cur =~ /^(\s+)/o) { print "WS($1)\n" if ($dbg_values > 1); if ($1 =~ /\n/ && $av_preprocessor) { $type = pop(@av_paren_type); $av_preprocessor = 0; } } elsif ($cur =~ /^(\(\s*$Type\s*)\)/ && $av_pending eq '_') { print "CAST($1)\n" if ($dbg_values > 1); push(@av_paren_type, $type); $type = 'c'; } elsif ($cur =~ /^($Type)\s*(?:$Ident|,|\)|\(|\s*$)/) { print "DECLARE($1)\n" if ($dbg_values > 1); $type = 'T'; } elsif ($cur =~ /^($Modifier)\s*/) { print "MODIFIER($1)\n" if ($dbg_values > 1); $type = 'T'; } elsif ($cur =~ /^(\#\s*define\s*$Ident)(\(?)/o) { print "DEFINE($1,$2)\n" if ($dbg_values > 1); $av_preprocessor = 1; push(@av_paren_type, $type); if ($2 ne '') { $av_pending = 'N'; } $type = 'E'; } elsif ($cur =~ /^(\#\s*(?:undef\s*$Ident|include\b))/o) { print "UNDEF($1)\n" if ($dbg_values > 1); $av_preprocessor = 1; push(@av_paren_type, $type); } elsif ($cur =~ /^(\#\s*(?:ifdef|ifndef|if))/o) { print "PRE_START($1)\n" if ($dbg_values > 1); $av_preprocessor = 1; push(@av_paren_type, $type); push(@av_paren_type, $type); $type = 'E'; } elsif ($cur =~ /^(\#\s*(?:else|elif))/o) { print "PRE_RESTART($1)\n" if ($dbg_values > 1); $av_preprocessor = 1; push(@av_paren_type, $av_paren_type[$#av_paren_type]); $type = 'E'; } elsif ($cur =~ /^(\#\s*(?:endif))/o) { print "PRE_END($1)\n" if ($dbg_values > 1); $av_preprocessor = 1; # Assume all arms of the conditional end as this # one does, and continue as if the #endif was not here. pop(@av_paren_type); push(@av_paren_type, $type); $type = 'E'; } elsif ($cur =~ /^(\\\n)/o) { print "PRECONT($1)\n" if ($dbg_values > 1); } elsif ($cur =~ /^(__attribute__)\s*\(?/o) { print "ATTR($1)\n" if ($dbg_values > 1); $av_pending = $type; $type = 'N'; } elsif ($cur =~ /^(sizeof)\s*(\()?/o) { print "SIZEOF($1)\n" if ($dbg_values > 1); if (defined $2) { $av_pending = 'V'; } $type = 'N'; } elsif ($cur =~ /^(if|while|for)\b/o) { print "COND($1)\n" if ($dbg_values > 1); $av_pending = 'E'; $type = 'N'; } elsif ($cur =~/^(case)/o) { print "CASE($1)\n" if ($dbg_values > 1); $av_pend_colon = 'C'; $type = 'N'; } elsif ($cur =~/^(return|else|goto|typeof|__typeof__)\b/o) { print "KEYWORD($1)\n" if ($dbg_values > 1); $type = 'N'; } elsif ($cur =~ /^(\()/o) { print "PAREN('$1')\n" if ($dbg_values > 1); push(@av_paren_type, $av_pending); $av_pending = '_'; $type = 'N'; } elsif ($cur =~ /^(\))/o) { my $new_type = pop(@av_paren_type); if ($new_type ne '_') { $type = $new_type; print "PAREN('$1') -> $type\n" if ($dbg_values > 1); } else { print "PAREN('$1')\n" if ($dbg_values > 1); } } elsif ($cur =~ /^($Ident)\s*\(/o) { print "FUNC($1)\n" if ($dbg_values > 1); $type = 'V'; $av_pending = 'V'; } elsif ($cur =~ /^($Ident\s*):(?:\s*\d+\s*(,|=|;))?/) { if (defined $2 && $type eq 'C' || $type eq 'T') { $av_pend_colon = 'B'; } elsif ($type eq 'E') { $av_pend_colon = 'L'; } print "IDENT_COLON($1,$type>$av_pend_colon)\n" if ($dbg_values > 1); $type = 'V'; } elsif ($cur =~ /^($Ident|$Constant)/o) { print "IDENT($1)\n" if ($dbg_values > 1); $type = 'V'; } elsif ($cur =~ /^($Assignment)/o) { print "ASSIGN($1)\n" if ($dbg_values > 1); $type = 'N'; } elsif ($cur =~/^(;|{|})/) { print "END($1)\n" if ($dbg_values > 1); $type = 'E'; $av_pend_colon = 'O'; } elsif ($cur =~/^(,)/) { print "COMMA($1)\n" if ($dbg_values > 1); $type = 'C'; } elsif ($cur =~ /^(\?)/o) { print "QUESTION($1)\n" if ($dbg_values > 1); $type = 'N'; } elsif ($cur =~ /^(:)/o) { print "COLON($1,$av_pend_colon)\n" if ($dbg_values > 1); substr($var, length($res), 1, $av_pend_colon); if ($av_pend_colon eq 'C' || $av_pend_colon eq 'L') { $type = 'E'; } else { $type = 'N'; } $av_pend_colon = 'O'; } elsif ($cur =~ /^(\[)/o) { print "CLOSE($1)\n" if ($dbg_values > 1); $type = 'N'; } elsif ($cur =~ /^(-(?![->])|\+(?!\+)|\*|\&\&|\&)/o) { my $variant; print "OPV($1)\n" if ($dbg_values > 1); if ($type eq 'V') { $variant = 'B'; } else { $variant = 'U'; } substr($var, length($res), 1, $variant); $type = 'N'; } elsif ($cur =~ /^($Operators)/o) { print "OP($1)\n" if ($dbg_values > 1); if ($1 ne '++' && $1 ne '--') { $type = 'N'; } } elsif ($cur =~ /(^.)/o) { print "C($1)\n" if ($dbg_values > 1); } if (defined $1) { $cur = substr($cur, length($1)); $res .= $type x length($1); } } return ($res, $var); } sub possible { my ($possible, $line) = @_; my $notPermitted = qr{(?: ^(?: $Modifier| $Storage| $Type| DEFINE_\S+ )$| ^(?: goto| return| case| else| asm|__asm__| do| \#| \#\#| )(?:\s|$)| ^(?:typedef|struct|enum)\b )}x; warn "CHECK<$possible> ($line)\n" if ($dbg_possible > 2); if ($possible !~ $notPermitted) { # Check for modifiers. $possible =~ s/\s*$Storage\s*//g; $possible =~ s/\s*$Sparse\s*//g; if ($possible =~ /^\s*$/) { } elsif ($possible =~ /\s/) { $possible =~ s/\s*$Type\s*//g; for my $modifier (split(' ', $possible)) { if ($modifier !~ $notPermitted) { warn "MODIFIER: $modifier ($possible) ($line)\n" if ($dbg_possible); push(@modifierList, $modifier); } } } else { warn "POSSIBLE: $possible ($line)\n" if ($dbg_possible); push(@typeList, $possible); } build_types(); } else { warn "NOTPOSS: $possible ($line)\n" if ($dbg_possible > 1); } } my $prefix = ''; sub show_type { return defined $use_type{$_[0]} if (scalar keys %use_type > 0); return !defined $ignore_type{$_[0]}; } sub report { if (!show_type($_[1]) || (defined $tst_only && $_[2] !~ /\Q$tst_only\E/)) { return 0; } my $line; if ($show_types) { $line = "$prefix$_[0]:$_[1]: $_[2]\n"; } else { $line = "$prefix$_[0]: $_[2]\n"; } $line = (split('\n', $line))[0] . "\n" if ($terse); push(our @report, $line); return 1; } sub report_dump { our @report; } sub ERROR { if (report("ERROR", $_[0], $_[1])) { our $clean = 0; our $cnt_error++; return 1; } return 0; } sub WARN { if (report("WARNING", $_[0], $_[1])) { our $clean = 0; our $cnt_warn++; return 1; } return 0; } sub CHK { if ($check && report("CHECK", $_[0], $_[1])) { our $clean = 0; our $cnt_chk++; return 1; } return 0; } sub check_absolute_file { my ($absolute, $herecurr) = @_; my $file = $absolute; ##print "absolute<$absolute>\n"; # See if any suffix of this path is a path within the tree. while ($file =~ s@^[^/]*/@@) { if (-f "$root/$file") { ##print "file<$file>\n"; last; } } if (! -f _) { return 0; } # It is, so see if the prefix is acceptable. my $prefix = $absolute; substr($prefix, -length($file)) = ''; ##print "prefix<$prefix>\n"; if ($prefix ne ".../") { WARN("USE_RELATIVE_PATH", "use relative pathname instead of absolute in changelog text\n" . $herecurr); } } sub trim { my ($string) = @_; $string =~ s/^\s+|\s+$//g; return $string; } sub ltrim { my ($string) = @_; $string =~ s/^\s+//; return $string; } sub rtrim { my ($string) = @_; $string =~ s/\s+$//; return $string; } sub string_find_replace { my ($string, $find, $replace) = @_; $string =~ s/$find/$replace/g; return $string; } sub tabify { my ($leading) = @_; my $source_indent = 8; my $max_spaces_before_tab = $source_indent - 1; my $spaces_to_tab = " " x $source_indent; #convert leading spaces to tabs 1 while $leading =~ s@^([\t]*)$spaces_to_tab@$1\t@g; #Remove spaces before a tab 1 while $leading =~ s@^([\t]*)( {1,$max_spaces_before_tab})\t@$1\t@g; return "$leading"; } sub pos_last_openparen { my ($line) = @_; my $pos = 0; my $opens = $line =~ tr/\(/\(/; my $closes = $line =~ tr/\)/\)/; my $last_openparen = 0; if (($opens == 0) || ($closes >= $opens)) { return -1; } my $len = length($line); for ($pos = 0; $pos < $len; $pos++) { my $string = substr($line, $pos); if ($string =~ /^($FuncArg|$balanced_parens)/) { $pos += length($1) - 1; } elsif (substr($line, $pos, 1) eq '(') { $last_openparen = $pos; } elsif (index($string, '(') == -1) { last; } } return $last_openparen + 1; } sub process { my $filename = shift; my $linenr=0; my $prevline=""; my $prevrawline=""; my $stashline=""; my $stashrawline=""; my $length; my $indent; my $previndent=0; my $stashindent=0; our $clean = 1; my $signoff = 0; my $is_patch = 0; my $in_header_lines = 1; my $in_commit_log = 0; #Scanning lines before patch my $non_utf8_charset = 0; our @report = (); our $cnt_lines = 0; our $cnt_error = 0; our $cnt_warn = 0; our $cnt_chk = 0; # Trace the real file/line as we go. my $realfile = ''; my $realline = 0; my $realcnt = 0; my $here = ''; my $in_comment = 0; my $comment_edge = 0; my $first_line = 0; my $p1_prefix = ''; my $prev_values = 'E'; # suppression flags my %suppress_ifbraces; my %suppress_whiletrailers; my %suppress_export; my $suppress_statement = 0; my %signatures = (); # Pre-scan the patch sanitizing the lines. # Pre-scan the patch looking for any __setup documentation. # my @setup_docs = (); my $setup_docs = 0; my $camelcase_file_seeded = 0; sanitise_line_reset(); my $line; foreach my $rawline (@rawlines) { $linenr++; $line = $rawline; push(@fixed, $rawline) if ($fix); if ($rawline=~/^\+\+\+\s+(\S+)/) { $setup_docs = 0; if ($1 =~ m@Documentation/kernel-parameters.txt$@) { $setup_docs = 1; } #next; } if ($rawline=~/^\@\@ -\d+(?:,\d+)? \+(\d+)(,(\d+))? \@\@/) { $realline=$1-1; if (defined $2) { $realcnt=$3+1; } else { $realcnt=1+1; } $in_comment = 0; # Guestimate if this is a continuing comment. Run # the context looking for a comment "edge". If this # edge is a close comment then we must be in a comment # at context start. my $edge; my $cnt = $realcnt; for (my $ln = $linenr + 1; $cnt > 0; $ln++) { next if (defined $rawlines[$ln - 1] && $rawlines[$ln - 1] =~ /^-/); $cnt--; #print "RAW<$rawlines[$ln - 1]>\n"; last if (!defined $rawlines[$ln - 1]); if ($rawlines[$ln - 1] =~ m@(/\*|\*/)@ && $rawlines[$ln - 1] !~ m@"[^"]*(?:/\*|\*/)[^"]*"@) { ($edge) = $1; last; } } if (defined $edge && $edge eq '*/') { $in_comment = 1; } # Guestimate if this is a continuing comment. If this # is the start of a diff block and this line starts # ' *' then it is very likely a comment. if (!defined $edge && $rawlines[$linenr] =~ m@^.\s*(?:\*\*+| \*)(?:\s|$)@) { $in_comment = 1; } ##print "COMMENT:$in_comment edge<$edge> $rawline\n"; sanitise_line_reset($in_comment); } elsif ($realcnt && $rawline =~ /^(?:\+| |$)/) { # Standardise the strings and chars within the input to # simplify matching -- only bother with positive lines. $line = sanitise_line($rawline); } push(@lines, $line); if ($realcnt > 1) { $realcnt-- if ($line =~ /^(?:\+| |$)/); } else { $realcnt = 0; } #print "==>$rawline\n"; #print "-->$line\n"; if ($setup_docs && $line =~ /^\+/) { push(@setup_docs, $line); } } $prefix = ''; $realcnt = 0; $linenr = 0; foreach my $line (@lines) { $linenr++; my $sline = $line; #copy of $line $sline =~ s/$;/ /g; #with comments as spaces my $rawline = $rawlines[$linenr - 1]; #extract the line range in the file after the patch is applied if ($line=~/^\@\@ -\d+(?:,\d+)? \+(\d+)(,(\d+))? \@\@/) { $is_patch = 1; $first_line = $linenr + 1; $realline=$1-1; if (defined $2) { $realcnt=$3+1; } else { $realcnt=1+1; } annotate_reset(); $prev_values = 'E'; %suppress_ifbraces = (); %suppress_whiletrailers = (); %suppress_export = (); $suppress_statement = 0; next; # track the line number as we move through the hunk, note that # new versions of GNU diff omit the leading space on completely # blank context lines so we need to count that too. } elsif ($line =~ /^( |\+|$)/) { $realline++; $realcnt-- if ($realcnt != 0); # Measure the line length and indent. ($length, $indent) = line_stats($rawline); # Track the previous line. ($prevline, $stashline) = ($stashline, $line); ($previndent, $stashindent) = ($stashindent, $indent); ($prevrawline, $stashrawline) = ($stashrawline, $rawline); #warn "line<$line>\n"; } elsif ($realcnt == 1) { $realcnt--; } my $hunk_line = ($realcnt != 0); #make up the handle for any error we report on this line $prefix = "$filename:$realline: " if ($emacs && $file); $prefix = "$filename:$linenr: " if ($emacs && !$file); $here = "#$linenr: " if (!$file); $here = "#$realline: " if ($file); # extract the filename as it passes if ($line =~ /^diff --git.*?(\S+)$/) { $realfile = $1; $realfile =~ s@^([^/]*)/@@ if (!$file); $in_commit_log = 0; } elsif ($line =~ /^\+\+\+\s+(\S+)/) { $realfile = $1; $realfile =~ s@^([^/]*)/@@ if (!$file); $in_commit_log = 0; $p1_prefix = $1; if (!$file && $tree && $p1_prefix ne '' && -e "$root/$p1_prefix") { WARN("PATCH_PREFIX", "patch prefix '$p1_prefix' exists, appears to be a -p0 patch\n"); } if ($realfile =~ m@^include/asm/@) { ERROR("MODIFIED_INCLUDE_ASM", "do not modify files in include/asm, change architecture specific files in include/asm-\n" . "$here$rawline\n"); } next; } $here .= "FILE: $realfile:$realline:" if ($realcnt != 0); my $hereline = "$here\n$rawline\n"; my $herecurr = "$here\n$rawline\n"; my $hereprev = "$here\n$prevrawline\n$rawline\n"; $cnt_lines++ if ($realcnt != 0); # Check for incorrect file permissions if ($line =~ /^new (file )?mode.*[7531]\d{0,2}$/) { my $permhere = $here . "FILE: $realfile\n"; if ($realfile !~ m@scripts/@ && $realfile !~ /\.(py|pl|awk|sh)$/) { ERROR("EXECUTE_PERMISSIONS", "do not set execute permissions for source files\n" . $permhere); } } # Check the patch for a signoff: if ($line =~ /^\s*signed-off-by:/i) { $signoff++; $in_commit_log = 0; } # Check signature styles if (!$in_header_lines && $line =~ /^(\s*)([a-z0-9_-]+by:|$signature_tags)(\s*)(.*)/i) { my $space_before = $1; my $sign_off = $2; my $space_after = $3; my $email = $4; my $ucfirst_sign_off = ucfirst(lc($sign_off)); if ($sign_off !~ /$signature_tags/) { WARN("BAD_SIGN_OFF", "Non-standard signature: $sign_off\n" . $herecurr); } if (defined $space_before && $space_before ne "") { if (WARN("BAD_SIGN_OFF", "Do not use whitespace before $ucfirst_sign_off\n" . $herecurr) && $fix) { $fixed[$linenr - 1] = "$ucfirst_sign_off $email"; } } if ($sign_off =~ /-by:$/i && $sign_off ne $ucfirst_sign_off) { if (WARN("BAD_SIGN_OFF", "'$ucfirst_sign_off' is the preferred signature form\n" . $herecurr) && $fix) { $fixed[$linenr - 1] = "$ucfirst_sign_off $email"; } } if (!defined $space_after || $space_after ne " ") { if (WARN("BAD_SIGN_OFF", "Use a single space after $ucfirst_sign_off\n" . $herecurr) && $fix) { $fixed[$linenr - 1] = "$ucfirst_sign_off $email"; } } my ($email_name, $email_address, $comment) = parse_email($email); my $suggested_email = format_email(($email_name, $email_address)); if ($suggested_email eq "") { ERROR("BAD_SIGN_OFF", "Unrecognized email address: '$email'\n" . $herecurr); } else { my $dequoted = $suggested_email; $dequoted =~ s/^"//; $dequoted =~ s/" $comment" ne $email && "$suggested_email$comment" ne $email) { WARN("BAD_SIGN_OFF", "email address '$email' might be better as '$suggested_email$comment'\n" . $herecurr); } } # Check for duplicate signatures my $sig_nospace = $line; $sig_nospace =~ s/\s//g; $sig_nospace = lc($sig_nospace); if (defined $signatures{$sig_nospace}) { WARN("BAD_SIGN_OFF", "Duplicate signature\n" . $herecurr); } else { $signatures{$sig_nospace} = 1; } } # Check for wrappage within a valid hunk of the file if ($realcnt != 0 && $line !~ m{^(?:\+|-| |\\ No newline|$)}) { ERROR("CORRUPTED_PATCH", "patch seems to be corrupt (line wrapped?)\n" . $herecurr) if (!$emitted_corrupt++); } # Check for absolute kernel paths. if ($tree) { while ($line =~ m{(?:^|\s)(/\S*)}g) { my $file = $1; if ($file =~ m{^(.*?)(?::\d+)+:?$} && check_absolute_file($1, $herecurr)) { # } else { check_absolute_file($file, $herecurr); } } } # UTF-8 regex found at http://www.w3.org/International/questions/qa-forms-utf-8.en.php if (($realfile =~ /^$/ || $line =~ /^\+/) && $rawline !~ m/^$UTF8*$/) { my ($utf8_prefix) = ($rawline =~ /^($UTF8*)/); my $blank = copy_spacing($rawline); my $ptr = substr($blank, 0, length($utf8_prefix)) . "^"; my $hereptr = "$hereline$ptr\n"; CHK("INVALID_UTF8", "Invalid UTF-8, patch and commit message should be encoded in UTF-8\n" . $hereptr); } # Check if it's the start of a commit log # (not a header line and we haven't seen the patch filename) if ($in_header_lines && $realfile =~ /^$/ && $rawline !~ /^(commit\b|from\b|[\w-]+:).+$/i) { $in_header_lines = 0; $in_commit_log = 1; } # Check if there is UTF-8 in a commit log when a mail header has explicitly # declined it, i.e defined some charset where it is missing. if ($in_header_lines && $rawline =~ /^Content-Type:.+charset="(.+)".*$/ && $1 !~ /utf-8/i) { $non_utf8_charset = 1; } if ($in_commit_log && $non_utf8_charset && $realfile =~ /^$/ && $rawline =~ /$NON_ASCII_UTF8/) { WARN("UTF8_BEFORE_PATCH", "8-bit UTF-8 used in possible commit log\n" . $herecurr); } # ignore non-hunk lines and lines being removed next if (!$hunk_line || $line =~ /^-/); #trailing whitespace if ($line =~ /^\+.*\015/) { my $herevet = "$here\n" . cat_vet($rawline) . "\n"; if (ERROR("DOS_LINE_ENDINGS", "DOS line endings\n" . $herevet) && $fix) { $fixed[$linenr - 1] =~ s/[\s\015]+$//; } } elsif ($rawline =~ /^\+.*\S\s+$/ || $rawline =~ /^\+\s+$/) { my $herevet = "$here\n" . cat_vet($rawline) . "\n"; if (ERROR("TRAILING_WHITESPACE", "trailing whitespace\n" . $herevet) && $fix) { $fixed[$linenr - 1] =~ s/\s+$//; } $rpt_cleaners = 1; } # Check for FSF mailing addresses. if ($rawline =~ /\bwrite to the Free/i || $rawline =~ /\b59\s+Temple\s+Pl/i || $rawline =~ /\b51\s+Franklin\s+St/i) { my $herevet = "$here\n" . cat_vet($rawline) . "\n"; my $msg_type = \&ERROR; $msg_type = \&CHK if ($file); &{$msg_type}("FSF_MAILING_ADDRESS", "Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL.\n" . $herevet) } # check for Kconfig help text having a real description # Only applies when adding the entry originally, after that we do not have # sufficient context to determine whether it is indeed long enough. if ($realfile =~ /Kconfig/ && $line =~ /.\s*config\s+/) { my $length = 0; my $cnt = $realcnt; my $ln = $linenr + 1; my $f; my $is_start = 0; my $is_end = 0; for (; $cnt > 0 && defined $lines[$ln - 1]; $ln++) { $f = $lines[$ln - 1]; $cnt-- if ($lines[$ln - 1] !~ /^-/); $is_end = $lines[$ln - 1] =~ /^\+/; next if ($f =~ /^-/); if ($lines[$ln - 1] =~ /.\s*(?:bool|tristate)\s*\"/) { $is_start = 1; } elsif ($lines[$ln - 1] =~ /.\s*(?:---)?help(?:---)?$/) { $length = -1; } $f =~ s/^.//; $f =~ s/#.*//; $f =~ s/^\s+//; next if ($f =~ /^$/); if ($f =~ /^\s*config\s/) { $is_end = 1; last; } $length++; } WARN("CONFIG_DESCRIPTION", "please write a paragraph that describes the config symbol fully\n" . $herecurr) if ($is_start && $is_end && $length < 4); #print "is_start<$is_start> is_end<$is_end> length<$length>\n"; } # discourage the addition of CONFIG_EXPERIMENTAL in Kconfig. if ($realfile =~ /Kconfig/ && $line =~ /.\s*depends on\s+.*\bEXPERIMENTAL\b/) { WARN("CONFIG_EXPERIMENTAL", "Use of CONFIG_EXPERIMENTAL is deprecated. For alternatives, see https://lkml.org/lkml/2012/10/23/580\n"); } if (($realfile =~ /Makefile.*/ || $realfile =~ /Kbuild.*/) && ($line =~ /\+(EXTRA_[A-Z]+FLAGS).*/)) { my $flag = $1; my $replacement = { 'EXTRA_AFLAGS' => 'asflags-y', 'EXTRA_CFLAGS' => 'ccflags-y', 'EXTRA_CPPFLAGS' => 'cppflags-y', 'EXTRA_LDFLAGS' => 'ldflags-y', }; WARN("DEPRECATED_VARIABLE", "Use of $flag is deprecated, please use \`$replacement->{$flag} instead.\n" . $herecurr) if ($replacement->{$flag}); } # check for DT compatible documentation if (defined $root && $realfile =~ /\.dts/ && $rawline =~ /^\+\s*compatible\s*=/) { my @compats = $rawline =~ /\"([a-zA-Z0-9\-\,\.\+_]+)\"/g; foreach my $compat (@compats) { my $compat2 = $compat; my $dt_path = $root . "/Documentation/devicetree/bindings/"; $compat2 =~ s/\,[a-z]*\-/\,<\.\*>\-/; `grep -Erq "$compat|$compat2" $dt_path`; if ( $? >> 8 ) { WARN("UNDOCUMENTED_DT_STRING", "DT compatible string \"$compat\" appears un-documented -- check $dt_path\n" . $herecurr); } my $vendor = $compat; my $vendor_path = $dt_path . "vendor-prefixes.txt"; next if (! -f $vendor_path); $vendor =~ s/^([a-zA-Z0-9]+)\,.*/$1/; `grep -Eq "$vendor" $vendor_path`; if ( $? >> 8 ) { WARN("UNDOCUMENTED_DT_STRING", "DT compatible string vendor \"$vendor\" appears un-documented -- check $vendor_path\n" . $herecurr); } } } # check we are in a valid source file if not then ignore this hunk next if ($realfile !~ /\.(h|c|s|S|pl|sh)$/); #line length limit if ($line =~ /^\+/ && $prevrawline !~ /\/\*\*/ && $rawline !~ /^.\s*\*\s*\@$Ident\s/ && !($line =~ /^\+\s*$logFunctions\s*\(\s*(?:(KERN_\S+\s*|[^"]*))?"[X\t]*"\s*(?:|,|\)\s*;)\s*$/ || $line =~ /^\+\s*"[^"]*"\s*(?:\s*|,|\)\s*;)\s*$/) && $length > $max_line_length) { WARN("LONG_LINE", "line over $max_line_length characters\n" . $herecurr); } # Check for user-visible strings broken across lines, which breaks the ability # to grep for the string. Make exceptions when the previous string ends in a # newline (multiple lines in one string constant) or '\t', '\r', ';', or '{' # (common in inline assembly) or is a octal \123 or hexadecimal \xaf value if ($line =~ /^\+\s*"/ && $prevline =~ /"\s*$/ && $prevrawline !~ /(?:\\(?:[ntr]|[0-7]{1,3}|x[0-9a-fA-F]{1,2})|;\s*|\{\s*)"\s*$/) { WARN("SPLIT_STRING", "quoted string split across lines\n" . $hereprev); } # check for spaces before a quoted newline if ($rawline =~ /^.*\".*\s\\n/) { if (WARN("QUOTED_WHITESPACE_BEFORE_NEWLINE", "unnecessary whitespace before a quoted newline\n" . $herecurr) && $fix) { $fixed[$linenr - 1] =~ s/^(\+.*\".*)\s+\\n/$1\\n/; } } # check for adding lines without a newline. if ($line =~ /^\+/ && defined $lines[$linenr] && $lines[$linenr] =~ /^\\ No newline at end of file/) { WARN("MISSING_EOF_NEWLINE", "adding a line without newline at end of file\n" . $herecurr); } # Blackfin: use hi/lo macros if ($realfile =~ m@arch/blackfin/.*\.S$@) { if ($line =~ /\.[lL][[:space:]]*=.*&[[:space:]]*0x[fF][fF][fF][fF]/) { my $herevet = "$here\n" . cat_vet($line) . "\n"; ERROR("LO_MACRO", "use the LO() macro, not (... & 0xFFFF)\n" . $herevet); } if ($line =~ /\.[hH][[:space:]]*=.*>>[[:space:]]*16/) { my $herevet = "$here\n" . cat_vet($line) . "\n"; ERROR("HI_MACRO", "use the HI() macro, not (... >> 16)\n" . $herevet); } } # check we are in a valid source file C or perl if not then ignore this hunk next if ($realfile !~ /\.(h|c|pl)$/); # at the beginning of a line any tabs must come first and anything # more than 8 must use tabs. if ($rawline =~ /^\+\s* \t\s*\S/ || $rawline =~ /^\+\s* \s*/) { my $herevet = "$here\n" . cat_vet($rawline) . "\n"; $rpt_cleaners = 1; if (ERROR("CODE_INDENT", "code indent should use tabs where possible\n" . $herevet) && $fix) { $fixed[$linenr - 1] =~ s/^\+([ \t]+)/"\+" . tabify($1)/e; } } # check for space before tabs. if ($rawline =~ /^\+/ && $rawline =~ / \t/) { my $herevet = "$here\n" . cat_vet($rawline) . "\n"; if (WARN("SPACE_BEFORE_TAB", "please, no space before tabs\n" . $herevet) && $fix) { while ($fixed[$linenr - 1] =~ s/(^\+.*) {8,8}+\t/$1\t\t/) {} while ($fixed[$linenr - 1] =~ s/(^\+.*) +\t/$1\t/) {} } } # check for && or || at the start of a line if ($rawline =~ /^\+\s*(&&|\|\|)/) { CHK("LOGICAL_CONTINUATIONS", "Logical continuations should be on the previous line\n" . $hereprev); } # check multi-line statement indentation matches previous line if ($^V && $^V ge 5.10.0 && $prevline =~ /^\+(\t*)(if \(|$Ident\().*(\&\&|\|\||,)\s*$/) { $prevline =~ /^\+(\t*)(.*)$/; my $oldindent = $1; my $rest = $2; my $pos = pos_last_openparen($rest); if ($pos >= 0) { $line =~ /^(\+| )([ \t]*)/; my $newindent = $2; my $goodtabindent = $oldindent . "\t" x ($pos / 8) . " " x ($pos % 8); my $goodspaceindent = $oldindent . " " x $pos; if ($newindent ne $goodtabindent && $newindent ne $goodspaceindent) { if (CHK("PARENTHESIS_ALIGNMENT", "Alignment should match open parenthesis\n" . $hereprev) && $fix && $line =~ /^\+/) { $fixed[$linenr - 1] =~ s/^\+[ \t]*/\+$goodtabindent/; } } } } if ($line =~ /^\+.*\*[ \t]*\)[ \t]+(?!$Assignment|$Arithmetic)/) { if (CHK("SPACING", "No space is necessary after a cast\n" . $hereprev) && $fix) { $fixed[$linenr - 1] =~ s/^(\+.*\*[ \t]*\))[ \t]+/$1/; } } if ($realfile =~ m@^(drivers/net/|net/)@ && $prevrawline =~ /^\+[ \t]*\/\*[ \t]*$/ && $rawline =~ /^\+[ \t]*\*/) { WARN("NETWORKING_BLOCK_COMMENT_STYLE", "networking block comments don't use an empty /* line, use /* Comment...\n" . $hereprev); } if ($realfile =~ m@^(drivers/net/|net/)@ && $prevrawline =~ /^\+[ \t]*\/\*/ && #starting /* $prevrawline !~ /\*\/[ \t]*$/ && #no trailing */ $rawline =~ /^\+/ && #line is new $rawline !~ /^\+[ \t]*\*/) { #no leading * WARN("NETWORKING_BLOCK_COMMENT_STYLE", "networking block comments start with * on subsequent lines\n" . $hereprev); } if ($realfile =~ m@^(drivers/net/|net/)@ && $rawline !~ m@^\+[ \t]*\*/[ \t]*$@ && #trailing */ $rawline !~ m@^\+.*/\*.*\*/[ \t]*$@ && #inline /*...*/ $rawline !~ m@^\+.*\*{2,}/[ \t]*$@ && #trailing **/ $rawline =~ m@^\+[ \t]*.+\*\/[ \t]*$@) { #non blank */ WARN("NETWORKING_BLOCK_COMMENT_STYLE", "networking block comments put the trailing */ on a separate line\n" . $herecurr); } # check for spaces at the beginning of a line. # Exceptions: # 1) within comments # 2) indented preprocessor commands # 3) hanging labels if ($rawline =~ /^\+ / && $line !~ /^\+ *(?:$;|#|$Ident:)/) { my $herevet = "$here\n" . cat_vet($rawline) . "\n"; if (WARN("LEADING_SPACE", "please, no spaces at the start of a line\n" . $herevet) && $fix) { $fixed[$linenr - 1] =~ s/^\+([ \t]+)/"\+" . tabify($1)/e; } } # check we are in a valid C source file if not then ignore this hunk next if ($realfile !~ /\.(h|c)$/); # discourage the addition of CONFIG_EXPERIMENTAL in #if(def). if ($line =~ /^\+\s*\#\s*if.*\bCONFIG_EXPERIMENTAL\b/) { WARN("CONFIG_EXPERIMENTAL", "Use of CONFIG_EXPERIMENTAL is deprecated. For alternatives, see https://lkml.org/lkml/2012/10/23/580\n"); } # check for RCS/CVS revision markers if ($rawline =~ /^\+.*\$(Revision|Log|Id)(?:\$|)/) { WARN("CVS_KEYWORD", "CVS style keyword markers, these will _not_ be updated\n". $herecurr); } # Blackfin: don't use __builtin_bfin_[cs]sync if ($line =~ /__builtin_bfin_csync/) { my $herevet = "$here\n" . cat_vet($line) . "\n"; ERROR("CSYNC", "use the CSYNC() macro in asm/blackfin.h\n" . $herevet); } if ($line =~ /__builtin_bfin_ssync/) { my $herevet = "$here\n" . cat_vet($line) . "\n"; ERROR("SSYNC", "use the SSYNC() macro in asm/blackfin.h\n" . $herevet); } # check for old HOTPLUG __dev section markings if ($line =~ /\b(__dev(init|exit)(data|const|))\b/) { WARN("HOTPLUG_SECTION", "Using $1 is unnecessary\n" . $herecurr); } # Check for potential 'bare' types my ($stat, $cond, $line_nr_next, $remain_next, $off_next, $realline_next); #print "LINE<$line>\n"; if ($linenr >= $suppress_statement && $realcnt && $sline =~ /.\s*\S/) { ($stat, $cond, $line_nr_next, $remain_next, $off_next) = ctx_statement_block($linenr, $realcnt, 0); $stat =~ s/\n./\n /g; $cond =~ s/\n./\n /g; #print "linenr<$linenr> <$stat>\n"; # If this statement has no statement boundaries within # it there is no point in retrying a statement scan # until we hit end of it. my $frag = $stat; $frag =~ s/;+\s*$//; if ($frag !~ /(?:{|;)/) { #print "skip<$line_nr_next>\n"; $suppress_statement = $line_nr_next; } # Find the real next line. $realline_next = $line_nr_next; if (defined $realline_next && (!defined $lines[$realline_next - 1] || substr($lines[$realline_next - 1], $off_next) =~ /^\s*$/)) { $realline_next++; } my $s = $stat; $s =~ s/{.*$//s; # Ignore goto labels. if ($s =~ /$Ident:\*$/s) { # Ignore functions being called } elsif ($s =~ /^.\s*$Ident\s*\(/s) { } elsif ($s =~ /^.\s*else\b/s) { # declarations always start with types } elsif ($prev_values eq 'E' && $s =~ /^.\s*(?:$Storage\s+)?(?:$Inline\s+)?(?:const\s+)?((?:\s*$Ident)+?)\b(?:\s+$Sparse)?\s*\**\s*(?:$Ident|\(\*[^\)]*\))(?:\s*$Modifier)?\s*(?:;|=|,|\()/s) { my $type = $1; $type =~ s/\s+/ /g; possible($type, "A:" . $s); # definitions in global scope can only start with types } elsif ($s =~ /^.(?:$Storage\s+)?(?:$Inline\s+)?(?:const\s+)?($Ident)\b\s*(?!:)/s) { possible($1, "B:" . $s); } # any (foo ... *) is a pointer cast, and foo is a type while ($s =~ /\(($Ident)(?:\s+$Sparse)*[\s\*]+\s*\)/sg) { possible($1, "C:" . $s); } # Check for any sort of function declaration. # int foo(something bar, other baz); # void (*store_gdt)(x86_descr_ptr *); if ($prev_values eq 'E' && $s =~ /^(.(?:typedef\s*)?(?:(?:$Storage|$Inline)\s*)*\s*$Type\s*(?:\b$Ident|\(\*\s*$Ident\))\s*)\(/s) { my ($name_len) = length($1); my $ctx = $s; substr($ctx, 0, $name_len + 1, ''); $ctx =~ s/\)[^\)]*$//; for my $arg (split(/\s*,\s*/, $ctx)) { if ($arg =~ /^(?:const\s+)?($Ident)(?:\s+$Sparse)*\s*\**\s*(:?\b$Ident)?$/s || $arg =~ /^($Ident)$/s) { possible($1, "D:" . $s); } } } } # # Checks which may be anchored in the context. # # Check for switch () and associated case and default # statements should be at the same indent. if ($line=~/\bswitch\s*\(.*\)/) { my $err = ''; my $sep = ''; my @ctx = ctx_block_outer($linenr, $realcnt); shift(@ctx); for my $ctx (@ctx) { my ($clen, $cindent) = line_stats($ctx); if ($ctx =~ /^\+\s*(case\s+|default:)/ && $indent != $cindent) { $err .= "$sep$ctx\n"; $sep = ''; } else { $sep = "[...]\n"; } } if ($err ne '') { ERROR("SWITCH_CASE_INDENT_LEVEL", "switch and case should be at the same indent\n$hereline$err"); } } # if/while/etc brace do not go on next line, unless defining a do while loop, # or if that brace on the next line is for something else if ($line =~ /(.*)\b((?:if|while|for|switch)\s*\(|do\b|else\b)/ && $line !~ /^.\s*\#/) { my $pre_ctx = "$1$2"; my ($level, @ctx) = ctx_statement_level($linenr, $realcnt, 0); if ($line =~ /^\+\t{6,}/) { WARN("DEEP_INDENTATION", "Too many leading tabs - consider code refactoring\n" . $herecurr); } my $ctx_cnt = $realcnt - $#ctx - 1; my $ctx = join("\n", @ctx); my $ctx_ln = $linenr; my $ctx_skip = $realcnt; while ($ctx_skip > $ctx_cnt || ($ctx_skip == $ctx_cnt && defined $lines[$ctx_ln - 1] && $lines[$ctx_ln - 1] =~ /^-/)) { ##print "SKIP<$ctx_skip> CNT<$ctx_cnt>\n"; $ctx_skip-- if (!defined $lines[$ctx_ln - 1] || $lines[$ctx_ln - 1] !~ /^-/); $ctx_ln++; } #print "realcnt<$realcnt> ctx_cnt<$ctx_cnt>\n"; #print "pre<$pre_ctx>\nline<$line>\nctx<$ctx>\nnext<$lines[$ctx_ln - 1]>\n"; if ($ctx !~ /{\s*/ && defined($lines[$ctx_ln -1]) && $lines[$ctx_ln - 1] =~ /^\+\s*{/) { ERROR("OPEN_BRACE", "that open brace { should be on the previous line\n" . "$here\n$ctx\n$rawlines[$ctx_ln - 1]\n"); } if ($level == 0 && $pre_ctx !~ /}\s*while\s*\($/ && $ctx =~ /\)\s*\;\s*$/ && defined $lines[$ctx_ln - 1]) { my ($nlength, $nindent) = line_stats($lines[$ctx_ln - 1]); if ($nindent > $indent) { WARN("TRAILING_SEMICOLON", "trailing semicolon indicates no statements, indent implies otherwise\n" . "$here\n$ctx\n$rawlines[$ctx_ln - 1]\n"); } } } # Check relative indent for conditionals and blocks. if ($line =~ /\b(?:(?:if|while|for)\s*\(|do\b)/ && $line !~ /^.\s*#/ && $line !~ /\}\s*while\s*/) { ($stat, $cond, $line_nr_next, $remain_next, $off_next) = ctx_statement_block($linenr, $realcnt, 0) if (!defined $stat); my ($s, $c) = ($stat, $cond); substr($s, 0, length($c), ''); # Make sure we remove the line prefixes as we have # none on the first line, and are going to readd them # where necessary. $s =~ s/\n./\n/gs; # Find out how long the conditional actually is. my @newlines = ($c =~ /\n/gs); my $cond_lines = 1 + $#newlines; # We want to check the first line inside the block # starting at the end of the conditional, so remove: # 1) any blank line termination # 2) any opening brace { on end of the line # 3) any do (...) { my $continuation = 0; my $check = 0; $s =~ s/^.*\bdo\b//; $s =~ s/^\s*{//; if ($s =~ s/^\s*\\//) { $continuation = 1; } if ($s =~ s/^\s*?\n//) { $check = 1; $cond_lines++; } # Also ignore a loop construct at the end of a # preprocessor statement. if (($prevline =~ /^.\s*#\s*define\s/ || $prevline =~ /\\\s*$/) && $continuation == 0) { $check = 0; } my $cond_ptr = -1; $continuation = 0; while ($cond_ptr != $cond_lines) { $cond_ptr = $cond_lines; # If we see an #else/#elif then the code # is not linear. if ($s =~ /^\s*\#\s*(?:else|elif)/) { $check = 0; } # Ignore: # 1) blank lines, they should be at 0, # 2) preprocessor lines, and # 3) labels. if ($continuation || $s =~ /^\s*?\n/ || $s =~ /^\s*#\s*?/ || $s =~ /^\s*$Ident\s*:/) { $continuation = ($s =~ /^.*?\\\n/) ? 1 : 0; if ($s =~ s/^.*?\n//) { $cond_lines++; } } } my (undef, $sindent) = line_stats("+" . $s); my $stat_real = raw_line($linenr, $cond_lines); # Check if either of these lines are modified, else # this is not this patch's fault. if (!defined($stat_real) || $stat !~ /^\+/ && $stat_real !~ /^\+/) { $check = 0; } if (defined($stat_real) && $cond_lines > 1) { $stat_real = "[...]\n$stat_real"; } #print "line<$line> prevline<$prevline> indent<$indent> sindent<$sindent> check<$check> continuation<$continuation> s<$s> cond_lines<$cond_lines> stat_real<$stat_real> stat<$stat>\n"; if ($check && (($sindent % 8) != 0 || ($sindent <= $indent && $s ne ''))) { WARN("SUSPECT_CODE_INDENT", "suspect code indent for conditional statements ($indent, $sindent)\n" . $herecurr . "$stat_real\n"); } } # Track the 'values' across context and added lines. my $opline = $line; $opline =~ s/^./ /; my ($curr_values, $curr_vars) = annotate_values($opline . "\n", $prev_values); $curr_values = $prev_values . $curr_values; if ($dbg_values) { my $outline = $opline; $outline =~ s/\t/ /g; print "$linenr > .$outline\n"; print "$linenr > $curr_values\n"; print "$linenr > $curr_vars\n"; } $prev_values = substr($curr_values, -1); #ignore lines not being added next if ($line =~ /^[^\+]/); # TEST: allow direct testing of the type matcher. if ($dbg_type) { if ($line =~ /^.\s*$Declare\s*$/) { ERROR("TEST_TYPE", "TEST: is type\n" . $herecurr); } elsif ($dbg_type > 1 && $line =~ /^.+($Declare)/) { ERROR("TEST_NOT_TYPE", "TEST: is not type ($1 is)\n". $herecurr); } next; } # TEST: allow direct testing of the attribute matcher. if ($dbg_attr) { if ($line =~ /^.\s*$Modifier\s*$/) { ERROR("TEST_ATTR", "TEST: is attr\n" . $herecurr); } elsif ($dbg_attr > 1 && $line =~ /^.+($Modifier)/) { ERROR("TEST_NOT_ATTR", "TEST: is not attr ($1 is)\n". $herecurr); } next; } # check for initialisation to aggregates open brace on the next line if ($line =~ /^.\s*{/ && $prevline =~ /(?:^|[^=])=\s*$/) { ERROR("OPEN_BRACE", "that open brace { should be on the previous line\n" . $hereprev); } # # Checks which are anchored on the added line. # # check for malformed paths in #include statements (uses RAW line) if ($rawline =~ m{^.\s*\#\s*include\s+[<"](.*)[">]}) { my $path = $1; if ($path =~ m{//}) { ERROR("MALFORMED_INCLUDE", "malformed #include filename\n" . $herecurr); } if ($path =~ "^uapi/" && $realfile =~ m@\binclude/uapi/@) { ERROR("UAPI_INCLUDE", "No #include in ...include/uapi/... should use a uapi/ path prefix\n" . $herecurr); } } # no C99 // comments if ($line =~ m{//}) { if (ERROR("C99_COMMENTS", "do not use C99 // comments\n" . $herecurr) && $fix) { my $line = $fixed[$linenr - 1]; if ($line =~ /\/\/(.*)$/) { my $comment = trim($1); $fixed[$linenr - 1] =~ s@\/\/(.*)$@/\* $comment \*/@; } } } # Remove C99 comments. $line =~ s@//.*@@; $opline =~ s@//.*@@; # EXPORT_SYMBOL should immediately follow the thing it is exporting, consider # the whole statement. #print "APW <$lines[$realline_next - 1]>\n"; if (defined $realline_next && exists $lines[$realline_next - 1] && !defined $suppress_export{$realline_next} && ($lines[$realline_next - 1] =~ /EXPORT_SYMBOL.*\((.*)\)/ || $lines[$realline_next - 1] =~ /EXPORT_UNUSED_SYMBOL.*\((.*)\)/)) { # Handle definitions which produce identifiers with # a prefix: # XXX(foo); # EXPORT_SYMBOL(something_foo); my $name = $1; if ($stat =~ /^(?:.\s*}\s*\n)?.([A-Z_]+)\s*\(\s*($Ident)/ && $name =~ /^${Ident}_$2/) { #print "FOO C name<$name>\n"; $suppress_export{$realline_next} = 1; } elsif ($stat !~ /(?: \n.}\s*$| ^.DEFINE_$Ident\(\Q$name\E\)| ^.DECLARE_$Ident\(\Q$name\E\)| ^.LIST_HEAD\(\Q$name\E\)| ^.(?:$Storage\s+)?$Type\s*\(\s*\*\s*\Q$name\E\s*\)\s*\(| \b\Q$name\E(?:\s+$Attribute)*\s*(?:;|=|\[|\() )/x) { #print "FOO A<$lines[$realline_next - 1]> stat<$stat> name<$name>\n"; $suppress_export{$realline_next} = 2; } else { $suppress_export{$realline_next} = 1; } } if (!defined $suppress_export{$linenr} && $prevline =~ /^.\s*$/ && ($line =~ /EXPORT_SYMBOL.*\((.*)\)/ || $line =~ /EXPORT_UNUSED_SYMBOL.*\((.*)\)/)) { #print "FOO B <$lines[$linenr - 1]>\n"; $suppress_export{$linenr} = 2; } if (defined $suppress_export{$linenr} && $suppress_export{$linenr} == 2) { WARN("EXPORT_SYMBOL", "EXPORT_SYMBOL(foo); should immediately follow its function/variable\n" . $herecurr); } # check for global initialisers. if ($line =~ /^\+(\s*$Type\s*$Ident\s*(?:\s+$Modifier))*\s*=\s*(0|NULL|false)\s*;/) { if (ERROR("GLOBAL_INITIALISERS", "do not initialise globals to 0 or NULL\n" . $herecurr) && $fix) { $fixed[$linenr - 1] =~ s/($Type\s*$Ident\s*(?:\s+$Modifier))*\s*=\s*(0|NULL|false)\s*;/$1;/; } } # check for static initialisers. if ($line =~ /^\+.*\bstatic\s.*=\s*(0|NULL|false)\s*;/) { if (ERROR("INITIALISED_STATIC", "do not initialise statics to 0 or NULL\n" . $herecurr) && $fix) { $fixed[$linenr - 1] =~ s/(\bstatic\s.*?)\s*=\s*(0|NULL|false)\s*;/$1;/; } } # check for static const char * arrays. if ($line =~ /\bstatic\s+const\s+char\s*\*\s*(\w+)\s*\[\s*\]\s*=\s*/) { WARN("STATIC_CONST_CHAR_ARRAY", "static const char * array should probably be static const char * const\n" . $herecurr); } # check for static char foo[] = "bar" declarations. if ($line =~ /\bstatic\s+char\s+(\w+)\s*\[\s*\]\s*=\s*"/) { WARN("STATIC_CONST_CHAR_ARRAY", "static char array declaration should probably be static const char\n" . $herecurr); } # check for function declarations without arguments like "int foo()" if ($line =~ /(\b$Type\s+$Ident)\s*\(\s*\)/) { if (ERROR("FUNCTION_WITHOUT_ARGS", "Bad function definition - $1() should probably be $1(void)\n" . $herecurr) && $fix) { $fixed[$linenr - 1] =~ s/(\b($Type)\s+($Ident))\s*\(\s*\)/$2 $3(void)/; } } # check for uses of DEFINE_PCI_DEVICE_TABLE if ($line =~ /\bDEFINE_PCI_DEVICE_TABLE\s*\(\s*(\w+)\s*\)\s*=/) { if (WARN("DEFINE_PCI_DEVICE_TABLE", "Prefer struct pci_device_id over deprecated DEFINE_PCI_DEVICE_TABLE\n" . $herecurr) && $fix) { $fixed[$linenr - 1] =~ s/\b(?:static\s+|)DEFINE_PCI_DEVICE_TABLE\s*\(\s*(\w+)\s*\)\s*=\s*/static const struct pci_device_id $1\[\] = /; } } # check for new typedefs, only function parameters and sparse annotations # make sense. if ($line =~ /\btypedef\s/ && $line !~ /\btypedef\s+$Type\s*\(\s*\*?$Ident\s*\)\s*\(/ && $line !~ /\btypedef\s+$Type\s+$Ident\s*\(/ && $line !~ /\b$typeTypedefs\b/ && $line !~ /\b__bitwise(?:__|)\b/) { WARN("NEW_TYPEDEFS", "do not add new typedefs\n" . $herecurr); } # * goes on variable not on type # (char*[ const]) while ($line =~ m{(\($NonptrType(\s*(?:$Modifier\b\s*|\*\s*)+)\))}g) { #print "AA<$1>\n"; my ($ident, $from, $to) = ($1, $2, $2); # Should start with a space. $to =~ s/^(\S)/ $1/; # Should not end with a space. $to =~ s/\s+$//; # '*'s should not have spaces between. while ($to =~ s/\*\s+\*/\*\*/) { } ## print "1: from<$from> to<$to> ident<$ident>\n"; if ($from ne $to) { if (ERROR("POINTER_LOCATION", "\"(foo$from)\" should be \"(foo$to)\"\n" . $herecurr) && $fix) { my $sub_from = $ident; my $sub_to = $ident; $sub_to =~ s/\Q$from\E/$to/; $fixed[$linenr - 1] =~ s@\Q$sub_from\E@$sub_to@; } } } while ($line =~ m{(\b$NonptrType(\s*(?:$Modifier\b\s*|\*\s*)+)($Ident))}g) { #print "BB<$1>\n"; my ($match, $from, $to, $ident) = ($1, $2, $2, $3); # Should start with a space. $to =~ s/^(\S)/ $1/; # Should not end with a space. $to =~ s/\s+$//; # '*'s should not have spaces between. while ($to =~ s/\*\s+\*/\*\*/) { } # Modifiers should have spaces. $to =~ s/(\b$Modifier$)/$1 /; ## print "2: from<$from> to<$to> ident<$ident>\n"; if ($from ne $to && $ident !~ /^$Modifier$/) { if (ERROR("POINTER_LOCATION", "\"foo${from}bar\" should be \"foo${to}bar\"\n" . $herecurr) && $fix) { my $sub_from = $match; my $sub_to = $match; $sub_to =~ s/\Q$from\E/$to/; $fixed[$linenr - 1] =~ s@\Q$sub_from\E@$sub_to@; } } } # # no BUG() or BUG_ON() # if ($line =~ /\b(BUG|BUG_ON)\b/) { # print "Try to use WARN_ON & Recovery code rather than BUG() or BUG_ON()\n"; # print "$herecurr"; # $clean = 0; # } if ($line =~ /\bLINUX_VERSION_CODE\b/) { WARN("LINUX_VERSION_CODE", "LINUX_VERSION_CODE should be avoided, code should be for the version to which it is merged\n" . $herecurr); } # check for uses of printk_ratelimit if ($line =~ /\bprintk_ratelimit\s*\(/) { WARN("PRINTK_RATELIMITED", "Prefer printk_ratelimited or pr__ratelimited to printk_ratelimit\n" . $herecurr); } # printk should use KERN_* levels. Note that follow on printk's on the # same line do not need a level, so we use the current block context # to try and find and validate the current printk. In summary the current # printk includes all preceding printk's which have no newline on the end. # we assume the first bad printk is the one to report. if ($line =~ /\bprintk\((?!KERN_)\s*"/) { my $ok = 0; for (my $ln = $linenr - 1; $ln >= $first_line; $ln--) { #print "CHECK<$lines[$ln - 1]\n"; # we have a preceding printk if it ends # with "\n" ignore it, else it is to blame if ($lines[$ln - 1] =~ m{\bprintk\(}) { if ($rawlines[$ln - 1] !~ m{\\n"}) { $ok = 1; } last; } } if ($ok == 0) { WARN("PRINTK_WITHOUT_KERN_LEVEL", "printk() should include KERN_ facility level\n" . $herecurr); } } if ($line =~ /\bprintk\s*\(\s*KERN_([A-Z]+)/) { my $orig = $1; my $level = lc($orig); $level = "warn" if ($level eq "warning"); my $level2 = $level; $level2 = "dbg" if ($level eq "debug"); WARN("PREFER_PR_LEVEL", "Prefer netdev_$level2(netdev, ... then dev_$level2(dev, ... then pr_$level(... to printk(KERN_$orig ...\n" . $herecurr); } if ($line =~ /\bpr_warning\s*\(/) { if (WARN("PREFER_PR_LEVEL", "Prefer pr_warn(... to pr_warning(...\n" . $herecurr) && $fix) { $fixed[$linenr - 1] =~ s/\bpr_warning\b/pr_warn/; } } if ($line =~ /\bdev_printk\s*\(\s*KERN_([A-Z]+)/) { my $orig = $1; my $level = lc($orig); $level = "warn" if ($level eq "warning"); $level = "dbg" if ($level eq "debug"); WARN("PREFER_DEV_LEVEL", "Prefer dev_$level(... to dev_printk(KERN_$orig, ...\n" . $herecurr); } # function brace can't be on same line, except for #defines of do while, # or if closed on same line if (($line=~/$Type\s*$Ident\(.*\).*\s{/) and !($line=~/\#\s*define.*do\s{/) and !($line=~/}/)) { ERROR("OPEN_BRACE", "open brace '{' following function declarations go on the next line\n" . $herecurr); } # open braces for enum, union and struct go on the same line. if ($line =~ /^.\s*{/ && $prevline =~ /^.\s*(?:typedef\s+)?(enum|union|struct)(?:\s+$Ident)?\s*$/) { ERROR("OPEN_BRACE", "open brace '{' following $1 go on the same line\n" . $hereprev); } # missing space after union, struct or enum definition if ($line =~ /^.\s*(?:typedef\s+)?(enum|union|struct)(?:\s+$Ident){1,2}[=\{]/) { if (WARN("SPACING", "missing space after $1 definition\n" . $herecurr) && $fix) { $fixed[$linenr - 1] =~ s/^(.\s*(?:typedef\s+)?(?:enum|union|struct)(?:\s+$Ident){1,2})([=\{])/$1 $2/; } } # Function pointer declarations # check spacing between type, funcptr, and args # canonical declaration is "type (*funcptr)(args...)" # # the $Declare variable will capture all spaces after the type # so check it for trailing missing spaces or multiple spaces if ($line =~ /^.\s*($Declare)\((\s*)\*(\s*)$Ident(\s*)\)(\s*)\(/) { my $declare = $1; my $pre_pointer_space = $2; my $post_pointer_space = $3; my $funcname = $4; my $post_funcname_space = $5; my $pre_args_space = $6; if ($declare !~ /\s$/) { WARN("SPACING", "missing space after return type\n" . $herecurr); } # unnecessary space "type (*funcptr)(args...)" elsif ($declare =~ /\s{2,}$/) { WARN("SPACING", "Multiple spaces after return type\n" . $herecurr); } # unnecessary space "type ( *funcptr)(args...)" if (defined $pre_pointer_space && $pre_pointer_space =~ /^\s/) { WARN("SPACING", "Unnecessary space after function pointer open parenthesis\n" . $herecurr); } # unnecessary space "type (* funcptr)(args...)" if (defined $post_pointer_space && $post_pointer_space =~ /^\s/) { WARN("SPACING", "Unnecessary space before function pointer name\n" . $herecurr); } # unnecessary space "type (*funcptr )(args...)" if (defined $post_funcname_space && $post_funcname_space =~ /^\s/) { WARN("SPACING", "Unnecessary space after function pointer name\n" . $herecurr); } # unnecessary space "type (*funcptr) (args...)" if (defined $pre_args_space && $pre_args_space =~ /^\s/) { WARN("SPACING", "Unnecessary space before function pointer arguments\n" . $herecurr); } if (show_type("SPACING") && $fix) { $fixed[$linenr - 1] =~ s/^(.\s*$Declare)\(\s*\*\s*($Ident)\s*\)\s*\(/rtrim($1) . " " . "\(\*$2\)\("/ex; } } # check for spacing round square brackets; allowed: # 1. with a type on the left -- int [] a; # 2. at the beginning of a line for slice initialisers -- [0...10] = 5, # 3. inside a curly brace -- = { [0...10] = 5 } while ($line =~ /(.*?\s)\[/g) { my ($where, $prefix) = ($-[1], $1); if ($prefix !~ /$Type\s+$/ && ($where != 0 || $prefix !~ /^.\s+$/) && $prefix !~ /[{,]\s+$/) { if (ERROR("BRACKET_SPACE", "space prohibited before open square bracket '['\n" . $herecurr) && $fix) { $fixed[$linenr - 1] =~ s/^(\+.*?)\s+\[/$1\[/; } } } # check for spaces between functions and their parentheses. while ($line =~ /($Ident)\s+\(/g) { my $name = $1; my $ctx_before = substr($line, 0, $-[1]); my $ctx = "$ctx_before$name"; # Ignore those directives where spaces _are_ permitted. if ($name =~ /^(?: if|for|while|switch|return|case| volatile|__volatile__| __attribute__|format|__extension__| asm|__asm__)$/x) { # cpp #define statements have non-optional spaces, ie # if there is a space between the name and the open # parenthesis it is simply not a parameter group. } elsif ($ctx_before =~ /^.\s*\#\s*define\s*$/) { # cpp #elif statement condition may start with a ( } elsif ($ctx =~ /^.\s*\#\s*elif\s*$/) { # If this whole things ends with a type its most # likely a typedef for a function. } elsif ($ctx =~ /$Type$/) { } else { if (WARN("SPACING", "space prohibited between function name and open parenthesis '('\n" . $herecurr) && $fix) { $fixed[$linenr - 1] =~ s/\b$name\s+\(/$name\(/; } } } # Check operator spacing. if (!($line=~/\#\s*include/)) { my $fixed_line = ""; my $line_fixed = 0; my $ops = qr{ <<=|>>=|<=|>=|==|!=| \+=|-=|\*=|\/=|%=|\^=|\|=|&=| =>|->|<<|>>|<|>|=|!|~| &&|\|\||,|\^|\+\+|--|&|\||\+|-|\*|\/|%| \?:|\?|: }x; my @elements = split(/($ops|;)/, $opline); ## print("element count: <" . $#elements . ">\n"); ## foreach my $el (@elements) { ## print("el: <$el>\n"); ## } my @fix_elements = (); my $off = 0; foreach my $el (@elements) { push(@fix_elements, substr($rawline, $off, length($el))); $off += length($el); } $off = 0; my $blank = copy_spacing($opline); my $last_after = -1; for (my $n = 0; $n < $#elements; $n += 2) { my $good = $fix_elements[$n] . $fix_elements[$n + 1]; ## print("n: <$n> good: <$good>\n"); $off += length($elements[$n]); # Pick up the preceding and succeeding characters. my $ca = substr($opline, 0, $off); my $cc = ''; if (length($opline) >= ($off + length($elements[$n + 1]))) { $cc = substr($opline, $off + length($elements[$n + 1])); } my $cb = "$ca$;$cc"; my $a = ''; $a = 'V' if ($elements[$n] ne ''); $a = 'W' if ($elements[$n] =~ /\s$/); $a = 'C' if ($elements[$n] =~ /$;$/); $a = 'B' if ($elements[$n] =~ /(\[|\()$/); $a = 'O' if ($elements[$n] eq ''); $a = 'E' if ($ca =~ /^\s*$/); my $op = $elements[$n + 1]; my $c = ''; if (defined $elements[$n + 2]) { $c = 'V' if ($elements[$n + 2] ne ''); $c = 'W' if ($elements[$n + 2] =~ /^\s/); $c = 'C' if ($elements[$n + 2] =~ /^$;/); $c = 'B' if ($elements[$n + 2] =~ /^(\)|\]|;)/); $c = 'O' if ($elements[$n + 2] eq ''); $c = 'E' if ($elements[$n + 2] =~ /^\s*\\$/); } else { $c = 'E'; } my $ctx = "${a}x${c}"; my $at = "(ctx:$ctx)"; my $ptr = substr($blank, 0, $off) . "^"; my $hereptr = "$hereline$ptr\n"; # Pull out the value of this operator. my $op_type = substr($curr_values, $off + 1, 1); # Get the full operator variant. my $opv = $op . substr($curr_vars, $off, 1); # Ignore operators passed as parameters. if ($op_type ne 'V' && $ca =~ /\s$/ && $cc =~ /^\s*,/) { # # Ignore comments # } elsif ($op =~ /^$;+$/) { # ; should have either the end of line or a space or \ after it } elsif ($op eq ';') { if ($ctx !~ /.x[WEBC]/ && $cc !~ /^\\/ && $cc !~ /^;/) { if (ERROR("SPACING", "space required after that '$op' $at\n" . $hereptr)) { $good = $fix_elements[$n] . trim($fix_elements[$n + 1]) . " "; $line_fixed = 1; } } # // is a comment } elsif ($op eq '//') { # No spaces for: # -> # : when part of a bitfield } elsif ($op eq '->' || $opv eq ':B') { if ($ctx =~ /Wx.|.xW/) { if (ERROR("SPACING", "spaces prohibited around that '$op' $at\n" . $hereptr)) { $good = rtrim($fix_elements[$n]) . trim($fix_elements[$n + 1]); if (defined $fix_elements[$n + 2]) { $fix_elements[$n + 2] =~ s/^\s+//; } $line_fixed = 1; } } # , must have a space on the right. } elsif ($op eq ',') { if ($ctx !~ /.x[WEC]/ && $cc !~ /^}/) { if (ERROR("SPACING", "space required after that '$op' $at\n" . $hereptr)) { $good = $fix_elements[$n] . trim($fix_elements[$n + 1]) . " "; $line_fixed = 1; $last_after = $n; } } # '*' as part of a type definition -- reported already. } elsif ($opv eq '*_') { #warn "'*' is part of type\n"; # unary operators should have a space before and # none after. May be left adjacent to another # unary operator, or a cast } elsif ($op eq '!' || $op eq '~' || $opv eq '*U' || $opv eq '-U' || $opv eq '&U' || $opv eq '&&U') { if ($ctx !~ /[WEBC]x./ && $ca !~ /(?:\)|!|~|\*|-|\&|\||\+\+|\-\-|\{)$/) { if (ERROR("SPACING", "space required before that '$op' $at\n" . $hereptr)) { if ($n != $last_after + 2) { $good = $fix_elements[$n] . " " . ltrim($fix_elements[$n + 1]); $line_fixed = 1; } } } if ($op eq '*' && $cc =~/\s*$Modifier\b/) { # A unary '*' may be const } elsif ($ctx =~ /.xW/) { if (ERROR("SPACING", "space prohibited after that '$op' $at\n" . $hereptr)) { $good = $fix_elements[$n] . rtrim($fix_elements[$n + 1]); if (defined $fix_elements[$n + 2]) { $fix_elements[$n + 2] =~ s/^\s+//; } $line_fixed = 1; } } # unary ++ and unary -- are allowed no space on one side. } elsif ($op eq '++' or $op eq '--') { if ($ctx !~ /[WEOBC]x[^W]/ && $ctx !~ /[^W]x[WOBEC]/) { if (ERROR("SPACING", "space required one side of that '$op' $at\n" . $hereptr)) { $good = $fix_elements[$n] . trim($fix_elements[$n + 1]) . " "; $line_fixed = 1; } } if ($ctx =~ /Wx[BE]/ || ($ctx =~ /Wx./ && $cc =~ /^;/)) { if (ERROR("SPACING", "space prohibited before that '$op' $at\n" . $hereptr)) { $good = rtrim($fix_elements[$n]) . trim($fix_elements[$n + 1]); $line_fixed = 1; } } if ($ctx =~ /ExW/) { if (ERROR("SPACING", "space prohibited after that '$op' $at\n" . $hereptr)) { $good = $fix_elements[$n] . trim($fix_elements[$n + 1]); if (defined $fix_elements[$n + 2]) { $fix_elements[$n + 2] =~ s/^\s+//; } $line_fixed = 1; } } # << and >> may either have or not have spaces both sides } elsif ($op eq '<<' or $op eq '>>' or $op eq '&' or $op eq '^' or $op eq '|' or $op eq '+' or $op eq '-' or $op eq '*' or $op eq '/' or $op eq '%') { if ($ctx =~ /Wx[^WCE]|[^WCE]xW/) { if (ERROR("SPACING", "need consistent spacing around '$op' $at\n" . $hereptr)) { $good = rtrim($fix_elements[$n]) . " " . trim($fix_elements[$n + 1]) . " "; if (defined $fix_elements[$n + 2]) { $fix_elements[$n + 2] =~ s/^\s+//; } $line_fixed = 1; } } # A colon needs no spaces before when it is # terminating a case value or a label. } elsif ($opv eq ':C' || $opv eq ':L') { if ($ctx =~ /Wx./) { if (ERROR("SPACING", "space prohibited before that '$op' $at\n" . $hereptr)) { $good = rtrim($fix_elements[$n]) . trim($fix_elements[$n + 1]); $line_fixed = 1; } } # All the others need spaces both sides. } elsif ($ctx !~ /[EWC]x[CWE]/) { my $ok = 0; # Ignore email addresses if (($op eq '<' && $cc =~ /^\S+\@\S+>/) || ($op eq '>' && $ca =~ /<\S+\@\S+$/)) { $ok = 1; } # messages are ERROR, but ?: are CHK if ($ok == 0) { my $msg_type = \&ERROR; $msg_type = \&CHK if (($op eq '?:' || $op eq '?' || $op eq ':') && $ctx =~ /VxV/); if (&{$msg_type}("SPACING", "spaces required around that '$op' $at\n" . $hereptr)) { $good = rtrim($fix_elements[$n]) . " " . trim($fix_elements[$n + 1]) . " "; if (defined $fix_elements[$n + 2]) { $fix_elements[$n + 2] =~ s/^\s+//; } $line_fixed = 1; } } } $off += length($elements[$n + 1]); ## print("n: <$n> GOOD: <$good>\n"); $fixed_line = $fixed_line . $good; } if (($#elements % 2) == 0) { $fixed_line = $fixed_line . $fix_elements[$#elements]; } if ($fix && $line_fixed && $fixed_line ne $fixed[$linenr - 1]) { $fixed[$linenr - 1] = $fixed_line; } } # check for whitespace before a non-naked semicolon if ($line =~ /^\+.*\S\s+;\s*$/) { if (WARN("SPACING", "space prohibited before semicolon\n" . $herecurr) && $fix) { 1 while $fixed[$linenr - 1] =~ s/^(\+.*\S)\s+;/$1;/; } } # check for multiple assignments if ($line =~ /^.\s*$Lval\s*=\s*$Lval\s*=(?!=)/) { CHK("MULTIPLE_ASSIGNMENTS", "multiple assignments should be avoided\n" . $herecurr); } ## # check for multiple declarations, allowing for a function declaration ## # continuation. ## if ($line =~ /^.\s*$Type\s+$Ident(?:\s*=[^,{]*)?\s*,\s*$Ident.*/ && ## $line !~ /^.\s*$Type\s+$Ident(?:\s*=[^,{]*)?\s*,\s*$Type\s*$Ident.*/) { ## ## # Remove any bracketed sections to ensure we do not ## # falsly report the parameters of functions. ## my $ln = $line; ## while ($ln =~ s/\([^\(\)]*\)//g) { ## } ## if ($ln =~ /,/) { ## WARN("MULTIPLE_DECLARATION", ## "declaring multiple variables together should be avoided\n" . $herecurr); ## } ## } #need space before brace following if, while, etc if (($line =~ /\(.*\){/ && $line !~ /\($Type\){/) || $line =~ /do{/) { if (ERROR("SPACING", "space required before the open brace '{'\n" . $herecurr) && $fix) { $fixed[$linenr - 1] =~ s/^(\+.*(?:do|\))){/$1 {/; } } ## # check for blank lines before declarations ## if ($line =~ /^.\t+$Type\s+$Ident(?:\s*=.*)?;/ && ## $prevrawline =~ /^.\s*$/) { ## WARN("SPACING", ## "No blank lines before declarations\n" . $hereprev); ## } ## # closing brace should have a space following it when it has anything # on the line if ($line =~ /}(?!(?:,|;|\)))\S/) { if (ERROR("SPACING", "space required after that close brace '}'\n" . $herecurr) && $fix) { $fixed[$linenr - 1] =~ s/}((?!(?:,|;|\)))\S)/} $1/; } } # check spacing on square brackets if ($line =~ /\[\s/ && $line !~ /\[\s*$/) { if (ERROR("SPACING", "space prohibited after that open square bracket '['\n" . $herecurr) && $fix) { $fixed[$linenr - 1] =~ s/\[\s+/\[/; } } if ($line =~ /\s\]/) { if (ERROR("SPACING", "space prohibited before that close square bracket ']'\n" . $herecurr) && $fix) { $fixed[$linenr - 1] =~ s/\s+\]/\]/; } } # check spacing on parentheses if ($line =~ /\(\s/ && $line !~ /\(\s*(?:\\)?$/ && $line !~ /for\s*\(\s+;/) { if (ERROR("SPACING", "space prohibited after that open parenthesis '('\n" . $herecurr) && $fix) { $fixed[$linenr - 1] =~ s/\(\s+/\(/; } } if ($line =~ /(\s+)\)/ && $line !~ /^.\s*\)/ && $line !~ /for\s*\(.*;\s+\)/ && $line !~ /:\s+\)/) { if (ERROR("SPACING", "space prohibited before that close parenthesis ')'\n" . $herecurr) && $fix) { $fixed[$linenr - 1] =~ s/\s+\)/\)/; } } #goto labels aren't indented, allow a single space however if ($line=~/^.\s+[A-Za-z\d_]+:(?![0-9]+)/ and !($line=~/^. [A-Za-z\d_]+:/) and !($line=~/^.\s+default:/)) { if (WARN("INDENTED_LABEL", "labels should not be indented\n" . $herecurr) && $fix) { $fixed[$linenr - 1] =~ s/^(.)\s+/$1/; } } # Return is not a function. if (defined($stat) && $stat =~ /^.\s*return(\s*)\(/s) { my $spacing = $1; if ($^V && $^V ge 5.10.0 && $stat =~ /^.\s*return\s*$balanced_parens\s*;\s*$/) { ERROR("RETURN_PARENTHESES", "return is not a function, parentheses are not required\n" . $herecurr); } elsif ($spacing !~ /\s+/) { ERROR("SPACING", "space required before the open parenthesis '('\n" . $herecurr); } } # if statements using unnecessary parentheses - ie: if ((foo == bar)) if ($^V && $^V ge 5.10.0 && $line =~ /\bif\s*((?:\(\s*){2,})/) { my $openparens = $1; my $count = $openparens =~ tr@\(@\(@; my $msg = ""; if ($line =~ /\bif\s*(?:\(\s*){$count,$count}$LvalOrFunc\s*($Compare)\s*$LvalOrFunc(?:\s*\)){$count,$count}/) { my $comp = $4; #Not $1 because of $LvalOrFunc $msg = " - maybe == should be = ?" if ($comp eq "=="); WARN("UNNECESSARY_PARENTHESES", "Unnecessary parentheses$msg\n" . $herecurr); } } # Return of what appears to be an errno should normally be -'ve if ($line =~ /^.\s*return\s*(E[A-Z]*)\s*;/) { my $name = $1; if ($name ne 'EOF' && $name ne 'ERROR') { WARN("USE_NEGATIVE_ERRNO", "return of an errno should typically be -ve (return -$1)\n" . $herecurr); } } # Need a space before open parenthesis after if, while etc if ($line =~ /\b(if|while|for|switch)\(/) { if (ERROR("SPACING", "space required before the open parenthesis '('\n" . $herecurr) && $fix) { $fixed[$linenr - 1] =~ s/\b(if|while|for|switch)\(/$1 \(/; } } # Check for illegal assignment in if conditional -- and check for trailing # statements after the conditional. if ($line =~ /do\s*(?!{)/) { ($stat, $cond, $line_nr_next, $remain_next, $off_next) = ctx_statement_block($linenr, $realcnt, 0) if (!defined $stat); my ($stat_next) = ctx_statement_block($line_nr_next, $remain_next, $off_next); $stat_next =~ s/\n./\n /g; ##print "stat<$stat> stat_next<$stat_next>\n"; if ($stat_next =~ /^\s*while\b/) { # If the statement carries leading newlines, # then count those as offsets. my ($whitespace) = ($stat_next =~ /^((?:\s*\n[+-])*\s*)/s); my $offset = statement_rawlines($whitespace) - 1; $suppress_whiletrailers{$line_nr_next + $offset} = 1; } } if (!defined $suppress_whiletrailers{$linenr} && defined($stat) && defined($cond) && $line =~ /\b(?:if|while|for)\s*\(/ && $line !~ /^.\s*#/) { my ($s, $c) = ($stat, $cond); if ($c =~ /\bif\s*\(.*[^<>!=]=[^=].*/s) { ERROR("ASSIGN_IN_IF", "do not use assignment in if condition\n" . $herecurr); } # Find out what is on the end of the line after the # conditional. substr($s, 0, length($c), ''); $s =~ s/\n.*//g; $s =~ s/$;//g; # Remove any comments if (length($c) && $s !~ /^\s*{?\s*\\*\s*$/ && $c !~ /}\s*while\s*/) { # Find out how long the conditional actually is. my @newlines = ($c =~ /\n/gs); my $cond_lines = 1 + $#newlines; my $stat_real = ''; $stat_real = raw_line($linenr, $cond_lines) . "\n" if ($cond_lines); if (defined($stat_real) && $cond_lines > 1) { $stat_real = "[...]\n$stat_real"; } ERROR("TRAILING_STATEMENTS", "trailing statements should be on next line\n" . $herecurr . $stat_real); } } # Check for bitwise tests written as boolean if ($line =~ / (?: (?:\[|\(|\&\&|\|\|) \s*0[xX][0-9]+\s* (?:\&\&|\|\|) | (?:\&\&|\|\|) \s*0[xX][0-9]+\s* (?:\&\&|\|\||\)|\]) )/x) { WARN("HEXADECIMAL_BOOLEAN_TEST", "boolean test with hexadecimal, perhaps just 1 \& or \|?\n" . $herecurr); } # if and else should not have general statements after it if ($line =~ /^.\s*(?:}\s*)?else\b(.*)/) { my $s = $1; $s =~ s/$;//g; # Remove any comments if ($s !~ /^\s*(?:\sif|(?:{|)\s*\\?\s*$)/) { ERROR("TRAILING_STATEMENTS", "trailing statements should be on next line\n" . $herecurr); } } # if should not continue a brace if ($line =~ /}\s*if\b/) { ERROR("TRAILING_STATEMENTS", "trailing statements should be on next line\n" . $herecurr); } # case and default should not have general statements after them if ($line =~ /^.\s*(?:case\s*.*|default\s*):/g && $line !~ /\G(?: (?:\s*$;*)(?:\s*{)?(?:\s*$;*)(?:\s*\\)?\s*$| \s*return\s+ )/xg) { ERROR("TRAILING_STATEMENTS", "trailing statements should be on next line\n" . $herecurr); } # Check for }else {, these must be at the same # indent level to be relevant to each other. if ($prevline=~/}\s*$/ and $line=~/^.\s*else\s*/ and $previndent == $indent) { ERROR("ELSE_AFTER_BRACE", "else should follow close brace '}'\n" . $hereprev); } if ($prevline=~/}\s*$/ and $line=~/^.\s*while\s*/ and $previndent == $indent) { my ($s, $c) = ctx_statement_block($linenr, $realcnt, 0); # Find out what is on the end of the line after the # conditional. substr($s, 0, length($c), ''); $s =~ s/\n.*//g; if ($s =~ /^\s*;/) { ERROR("WHILE_AFTER_BRACE", "while should follow close brace '}'\n" . $hereprev); } } #Specific variable tests while ($line =~ m{($Constant|$Lval)}g) { my $var = $1; #gcc binary extension if ($var =~ /^$Binary$/) { if (WARN("GCC_BINARY_CONSTANT", "Avoid gcc v4.3+ binary constant extension: <$var>\n" . $herecurr) && $fix) { my $hexval = sprintf("0x%x", oct($var)); $fixed[$linenr - 1] =~ s/\b$var\b/$hexval/; } } #CamelCase if ($var !~ /^$Constant$/ && $var =~ /[A-Z][a-z]|[a-z][A-Z]/ && #Ignore Page variants $var !~ /^(?:Clear|Set|TestClear|TestSet|)Page[A-Z]/ && #Ignore SI style variants like nS, mV and dB (ie: max_uV, regulator_min_uA_show) $var !~ /^(?:[a-z_]*?)_?[a-z][A-Z](?:_[a-z_]+)?$/) { while ($var =~ m{($Ident)}g) { my $word = $1; next if ($word !~ /[A-Z][a-z]|[a-z][A-Z]/); if ($check) { seed_camelcase_includes(); if (!$file && !$camelcase_file_seeded) { seed_camelcase_file($realfile); $camelcase_file_seeded = 1; } } if (!defined $camelcase{$word}) { $camelcase{$word} = 1; CHK("CAMELCASE", "Avoid CamelCase: <$word>\n" . $herecurr); } } } } #no spaces allowed after \ in define if ($line =~ /\#\s*define.*\\\s+$/) { if (WARN("WHITESPACE_AFTER_LINE_CONTINUATION", "Whitespace after \\ makes next lines useless\n" . $herecurr) && $fix) { $fixed[$linenr - 1] =~ s/\s+$//; } } #warn if is #included and is available (uses RAW line) if ($tree && $rawline =~ m{^.\s*\#\s*include\s*\}) { my $file = "$1.h"; my $checkfile = "include/linux/$file"; if (-f "$root/$checkfile" && $realfile ne $checkfile && $1 !~ /$allowed_asm_includes/) { if ($realfile =~ m{^arch/}) { CHK("ARCH_INCLUDE_LINUX", "Consider using #include instead of \n" . $herecurr); } else { WARN("INCLUDE_LINUX", "Use #include instead of \n" . $herecurr); } } } # multi-statement macros should be enclosed in a do while loop, grab the # first statement and ensure its the whole macro if its not enclosed # in a known good container if ($realfile !~ m@/vmlinux.lds.h$@ && $line =~ /^.\s*\#\s*define\s*$Ident(\()?/) { my $ln = $linenr; my $cnt = $realcnt; my ($off, $dstat, $dcond, $rest); my $ctx = ''; ($dstat, $dcond, $ln, $cnt, $off) = ctx_statement_block($linenr, $realcnt, 0); $ctx = $dstat; #print "dstat<$dstat> dcond<$dcond> cnt<$cnt> off<$off>\n"; #print "LINE<$lines[$ln-1]> len<" . length($lines[$ln-1]) . "\n"; $dstat =~ s/^.\s*\#\s*define\s+$Ident(?:\([^\)]*\))?\s*//; $dstat =~ s/$;//g; $dstat =~ s/\\\n.//g; $dstat =~ s/^\s*//s; $dstat =~ s/\s*$//s; # Flatten any parentheses and braces while ($dstat =~ s/\([^\(\)]*\)/1/ || $dstat =~ s/\{[^\{\}]*\}/1/ || $dstat =~ s/\[[^\[\]]*\]/1/) { } # Flatten any obvious string concatentation. while ($dstat =~ s/("X*")\s*$Ident/$1/ || $dstat =~ s/$Ident\s*("X*")/$1/) { } my $exceptions = qr{ $Declare| module_param_named| MODULE_PARM_DESC| DECLARE_PER_CPU| DEFINE_PER_CPU| __typeof__\(| union| struct| \.$Ident\s*=\s*| ^\"|\"$ }x; #print "REST<$rest> dstat<$dstat> ctx<$ctx>\n"; if ($dstat ne '' && $dstat !~ /^(?:$Ident|-?$Constant),$/ && # 10, // foo(), $dstat !~ /^(?:$Ident|-?$Constant);$/ && # foo(); $dstat !~ /^[!~-]?(?:$Lval|$Constant)$/ && # 10 // foo() // !foo // ~foo // -foo // foo->bar // foo.bar->baz $dstat !~ /^'X'$/ && # character constants $dstat !~ /$exceptions/ && $dstat !~ /^\.$Ident\s*=/ && # .foo = $dstat !~ /^(?:\#\s*$Ident|\#\s*$Constant)\s*$/ && # stringification #foo $dstat !~ /^do\s*$Constant\s*while\s*$Constant;?$/ && # do {...} while (...); // do {...} while (...) $dstat !~ /^for\s*$Constant$/ && # for (...) $dstat !~ /^for\s*$Constant\s+(?:$Ident|-?$Constant)$/ && # for (...) bar() $dstat !~ /^do\s*{/ && # do {... $dstat !~ /^\({/ && # ({... $ctx !~ /^.\s*#\s*define\s+TRACE_(?:SYSTEM|INCLUDE_FILE|INCLUDE_PATH)\b/) { $ctx =~ s/\n*$//; my $herectx = $here . "\n"; my $cnt = statement_rawlines($ctx); for (my $n = 0; $n < $cnt; $n++) { $herectx .= raw_line($linenr, $n) . "\n"; } if ($dstat =~ /;/) { ERROR("MULTISTATEMENT_MACRO_USE_DO_WHILE", "Macros with multiple statements should be enclosed in a do - while loop\n" . "$herectx"); } else { ERROR("COMPLEX_MACRO", "Macros with complex values should be enclosed in parenthesis\n" . "$herectx"); } } # check for line continuations outside of #defines, preprocessor #, and asm } else { if ($prevline !~ /^..*\\$/ && $line !~ /^\+\s*\#.*\\$/ && # preprocessor $line !~ /^\+.*\b(__asm__|asm)\b.*\\$/ && # asm $line =~ /^\+.*\\$/) { WARN("LINE_CONTINUATIONS", "Avoid unnecessary line continuations\n" . $herecurr); } } # do {} while (0) macro tests: # single-statement macros do not need to be enclosed in do while (0) loop, # macro should not end with a semicolon if ($^V && $^V ge 5.10.0 && $realfile !~ m@/vmlinux.lds.h$@ && $line =~ /^.\s*\#\s*define\s+$Ident(\()?/) { my $ln = $linenr; my $cnt = $realcnt; my ($off, $dstat, $dcond, $rest); my $ctx = ''; ($dstat, $dcond, $ln, $cnt, $off) = ctx_statement_block($linenr, $realcnt, 0); $ctx = $dstat; $dstat =~ s/\\\n.//g; if ($dstat =~ /^\+\s*#\s*define\s+$Ident\s*${balanced_parens}\s*do\s*{(.*)\s*}\s*while\s*\(\s*0\s*\)\s*([;\s]*)\s*$/) { my $stmts = $2; my $semis = $3; $ctx =~ s/\n*$//; my $cnt = statement_rawlines($ctx); my $herectx = $here . "\n"; for (my $n = 0; $n < $cnt; $n++) { $herectx .= raw_line($linenr, $n) . "\n"; } if (($stmts =~ tr/;/;/) == 1 && $stmts !~ /^\s*(if|while|for|switch)\b/) { WARN("SINGLE_STATEMENT_DO_WHILE_MACRO", "Single statement macros should not use a do {} while (0) loop\n" . "$herectx"); } if (defined $semis && $semis ne "") { WARN("DO_WHILE_MACRO_WITH_TRAILING_SEMICOLON", "do {} while (0) macros should not be semicolon terminated\n" . "$herectx"); } } } # make sure symbols are always wrapped with VMLINUX_SYMBOL() ... # all assignments may have only one of the following with an assignment: # . # ALIGN(...) # VMLINUX_SYMBOL(...) if ($realfile eq 'vmlinux.lds.h' && $line =~ /(?:(?:^|\s)$Ident\s*=|=\s*$Ident(?:\s|$))/) { WARN("MISSING_VMLINUX_SYMBOL", "vmlinux.lds.h needs VMLINUX_SYMBOL() around C-visible symbols\n" . $herecurr); } # check for redundant bracing round if etc if ($line =~ /(^.*)\bif\b/ && $1 !~ /else\s*$/) { my ($level, $endln, @chunks) = ctx_statement_full($linenr, $realcnt, 1); #print "chunks<$#chunks> linenr<$linenr> endln<$endln> level<$level>\n"; #print "APW: <<$chunks[1][0]>><<$chunks[1][1]>>\n"; if ($#chunks > 0 && $level == 0) { my @allowed = (); my $allow = 0; my $seen = 0; my $herectx = $here . "\n"; my $ln = $linenr - 1; for my $chunk (@chunks) { my ($cond, $block) = @{$chunk}; # If the condition carries leading newlines, then count those as offsets. my ($whitespace) = ($cond =~ /^((?:\s*\n[+-])*\s*)/s); my $offset = statement_rawlines($whitespace) - 1; $allowed[$allow] = 0; #print "COND<$cond> whitespace<$whitespace> offset<$offset>\n"; # We have looked at and allowed this specific line. $suppress_ifbraces{$ln + $offset} = 1; $herectx .= "$rawlines[$ln + $offset]\n[...]\n"; $ln += statement_rawlines($block) - 1; substr($block, 0, length($cond), ''); $seen++ if ($block =~ /^\s*{/); #print "cond<$cond> block<$block> allowed<$allowed[$allow]>\n"; if (statement_lines($cond) > 1) { #print "APW: ALLOWED: cond<$cond>\n"; $allowed[$allow] = 1; } if ($block =~/\b(?:if|for|while)\b/) { #print "APW: ALLOWED: block<$block>\n"; $allowed[$allow] = 1; } if (statement_block_size($block) > 1) { #print "APW: ALLOWED: lines block<$block>\n"; $allowed[$allow] = 1; } $allow++; } if ($seen) { my $sum_allowed = 0; foreach (@allowed) { $sum_allowed += $_; } if ($sum_allowed == 0) { WARN("BRACES", "braces {} are not necessary for any arm of this statement\n" . $herectx); } elsif ($sum_allowed != $allow && $seen != $allow) { CHK("BRACES", "braces {} should be used on all arms of this statement\n" . $herectx); } } } } if (!defined $suppress_ifbraces{$linenr - 1} && $line =~ /\b(if|while|for|else)\b/) { my $allowed = 0; # Check the pre-context. if (substr($line, 0, $-[0]) =~ /(\}\s*)$/) { #print "APW: ALLOWED: pre<$1>\n"; $allowed = 1; } my ($level, $endln, @chunks) = ctx_statement_full($linenr, $realcnt, $-[0]); # Check the condition. my ($cond, $block) = @{$chunks[0]}; #print "CHECKING<$linenr> cond<$cond> block<$block>\n"; if (defined $cond) { substr($block, 0, length($cond), ''); } if (statement_lines($cond) > 1) { #print "APW: ALLOWED: cond<$cond>\n"; $allowed = 1; } if ($block =~/\b(?:if|for|while)\b/) { #print "APW: ALLOWED: block<$block>\n"; $allowed = 1; } if (statement_block_size($block) > 1) { #print "APW: ALLOWED: lines block<$block>\n"; $allowed = 1; } # Check the post-context. if (defined $chunks[1]) { my ($cond, $block) = @{$chunks[1]}; if (defined $cond) { substr($block, 0, length($cond), ''); } if ($block =~ /^\s*\{/) { #print "APW: ALLOWED: chunk-1 block<$block>\n"; $allowed = 1; } } if ($level == 0 && $block =~ /^\s*\{/ && !$allowed) { my $herectx = $here . "\n"; my $cnt = statement_rawlines($block); for (my $n = 0; $n < $cnt; $n++) { $herectx .= raw_line($linenr, $n) . "\n"; } WARN("BRACES", "braces {} are not necessary for single statement blocks\n" . $herectx); } } # check for unnecessary blank lines around braces if (($line =~ /^.\s*}\s*$/ && $prevrawline =~ /^.\s*$/)) { CHK("BRACES", "Blank lines aren't necessary before a close brace '}'\n" . $hereprev); } if (($rawline =~ /^.\s*$/ && $prevline =~ /^..*{\s*$/)) { CHK("BRACES", "Blank lines aren't necessary after an open brace '{'\n" . $hereprev); } # no volatiles please my $asm_volatile = qr{\b(__asm__|asm)\s+(__volatile__|volatile)\b}; if ($line =~ /\bvolatile\b/ && $line !~ /$asm_volatile/) { WARN("VOLATILE", "Use of volatile is usually wrong: see Documentation/volatile-considered-harmful.txt\n" . $herecurr); } # warn about #if 0 if ($line =~ /^.\s*\#\s*if\s+0\b/) { CHK("REDUNDANT_CODE", "if this code is redundant consider removing it\n" . $herecurr); } # check for needless "if () fn()" uses if ($prevline =~ /\bif\s*\(\s*($Lval)\s*\)/) { my $expr = '\s*\(\s*' . quotemeta($1) . '\s*\)\s*;'; if ($line =~ /\b(kfree|usb_free_urb|debugfs_remove(?:_recursive)?)$expr/) { WARN('NEEDLESS_IF', "$1(NULL) is safe this check is probably not required\n" . $hereprev); } } # check for bad placement of section $InitAttribute (e.g.: __initdata) if ($line =~ /(\b$InitAttribute\b)/) { my $attr = $1; if ($line =~ /^\+\s*static\s+(?:const\s+)?(?:$attr\s+)?($NonptrTypeWithAttr)\s+(?:$attr\s+)?($Ident(?:\[[^]]*\])?)\s*[=;]/) { my $ptr = $1; my $var = $2; if ((($ptr =~ /\b(union|struct)\s+$attr\b/ && ERROR("MISPLACED_INIT", "$attr should be placed after $var\n" . $herecurr)) || ($ptr !~ /\b(union|struct)\s+$attr\b/ && WARN("MISPLACED_INIT", "$attr should be placed after $var\n" . $herecurr))) && $fix) { $fixed[$linenr - 1] =~ s/(\bstatic\s+(?:const\s+)?)(?:$attr\s+)?($NonptrTypeWithAttr)\s+(?:$attr\s+)?($Ident(?:\[[^]]*\])?)\s*([=;])\s*/"$1" . trim(string_find_replace($2, "\\s*$attr\\s*", " ")) . " " . trim(string_find_replace($3, "\\s*$attr\\s*", "")) . " $attr" . ("$4" eq ";" ? ";" : " = ")/e; } } } # check for $InitAttributeData (ie: __initdata) with const if ($line =~ /\bconst\b/ && $line =~ /($InitAttributeData)/) { my $attr = $1; $attr =~ /($InitAttributePrefix)(.*)/; my $attr_prefix = $1; my $attr_type = $2; if (ERROR("INIT_ATTRIBUTE", "Use of const init definition must use ${attr_prefix}initconst\n" . $herecurr) && $fix) { $fixed[$linenr - 1] =~ s/$InitAttributeData/${attr_prefix}initconst/; } } # check for $InitAttributeConst (ie: __initconst) without const if ($line !~ /\bconst\b/ && $line =~ /($InitAttributeConst)/) { my $attr = $1; if (ERROR("INIT_ATTRIBUTE", "Use of $attr requires a separate use of const\n" . $herecurr) && $fix) { my $lead = $fixed[$linenr - 1] =~ /(^\+\s*(?:static\s+))/; $lead = rtrim($1); $lead = "$lead " if ($lead !~ /^\+$/); $lead = "${lead}const "; $fixed[$linenr - 1] =~ s/(^\+\s*(?:static\s+))/$lead/; } } # prefer usleep_range over udelay if ($line =~ /\budelay\s*\(\s*(\d+)\s*\)/) { # ignore udelay's < 10, however if (! ($1 < 10) ) { CHK("USLEEP_RANGE", "usleep_range is preferred over udelay; see Documentation/timers/timers-howto.txt\n" . $line); } } # warn about unexpectedly long msleep's if ($line =~ /\bmsleep\s*\((\d+)\);/) { if ($1 < 20) { WARN("MSLEEP", "msleep < 20ms can sleep for up to 20ms; see Documentation/timers/timers-howto.txt\n" . $line); } } # check for comparisons of jiffies if ($line =~ /\bjiffies\s*$Compare|$Compare\s*jiffies\b/) { WARN("JIFFIES_COMPARISON", "Comparing jiffies is almost always wrong; prefer time_after, time_before and friends\n" . $herecurr); } # check for comparisons of get_jiffies_64() if ($line =~ /\bget_jiffies_64\s*\(\s*\)\s*$Compare|$Compare\s*get_jiffies_64\s*\(\s*\)/) { WARN("JIFFIES_COMPARISON", "Comparing get_jiffies_64() is almost always wrong; prefer time_after64, time_before64 and friends\n" . $herecurr); } # warn about #ifdefs in C files # if ($line =~ /^.\s*\#\s*if(|n)def/ && ($realfile =~ /\.c$/)) { # print "#ifdef in C files should be avoided\n"; # print "$herecurr"; # $clean = 0; # } # warn about spacing in #ifdefs if ($line =~ /^.\s*\#\s*(ifdef|ifndef|elif)\s\s+/) { if (ERROR("SPACING", "exactly one space required after that #$1\n" . $herecurr) && $fix) { $fixed[$linenr - 1] =~ s/^(.\s*\#\s*(ifdef|ifndef|elif))\s{2,}/$1 /; } } # check for spinlock_t definitions without a comment. if ($line =~ /^.\s*(struct\s+mutex|spinlock_t)\s+\S+;/ || $line =~ /^.\s*(DEFINE_MUTEX)\s*\(/) { my $which = $1; if (!ctx_has_comment($first_line, $linenr)) { CHK("UNCOMMENTED_DEFINITION", "$1 definition without comment\n" . $herecurr); } } # check for memory barriers without a comment. if ($line =~ /\b(mb|rmb|wmb|read_barrier_depends|smp_mb|smp_rmb|smp_wmb|smp_read_barrier_depends)\(/) { if (!ctx_has_comment($first_line, $linenr)) { WARN("MEMORY_BARRIER", "memory barrier without comment\n" . $herecurr); } } # check of hardware specific defines if ($line =~ m@^.\s*\#\s*if.*\b(__i386__|__powerpc64__|__sun__|__s390x__)\b@ && $realfile !~ m@include/asm-@) { CHK("ARCH_DEFINES", "architecture specific defines should be avoided\n" . $herecurr); } # Check that the storage class is at the beginning of a declaration if ($line =~ /\b$Storage\b/ && $line !~ /^.\s*$Storage\b/) { WARN("STORAGE_CLASS", "storage class should be at the beginning of the declaration\n" . $herecurr) } # check the location of the inline attribute, that it is between # storage class and type. if ($line =~ /\b$Type\s+$Inline\b/ || $line =~ /\b$Inline\s+$Storage\b/) { ERROR("INLINE_LOCATION", "inline keyword should sit between storage class and type\n" . $herecurr); } # Check for __inline__ and __inline, prefer inline if ($realfile !~ m@\binclude/uapi/@ && $line =~ /\b(__inline__|__inline)\b/) { if (WARN("INLINE", "plain inline is preferred over $1\n" . $herecurr) && $fix) { $fixed[$linenr - 1] =~ s/\b(__inline__|__inline)\b/inline/; } } # Check for __attribute__ packed, prefer __packed if ($realfile !~ m@\binclude/uapi/@ && $line =~ /\b__attribute__\s*\(\s*\(.*\bpacked\b/) { WARN("PREFER_PACKED", "__packed is preferred over __attribute__((packed))\n" . $herecurr); } # Check for new packed members, warn to use care if ($line =~ /\b(__attribute__\s*\(\s*\(.*\bpacked|__packed)\b/) { WARN("NEW_PACKED", "Adding new packed members is to be done with care\n" . $herecurr); } # Check for __attribute__ aligned, prefer __aligned if ($realfile !~ m@\binclude/uapi/@ && $line =~ /\b__attribute__\s*\(\s*\(.*aligned/) { WARN("PREFER_ALIGNED", "__aligned(size) is preferred over __attribute__((aligned(size)))\n" . $herecurr); } # Check for __attribute__ format(printf, prefer __printf if ($realfile !~ m@\binclude/uapi/@ && $line =~ /\b__attribute__\s*\(\s*\(\s*format\s*\(\s*printf/) { if (WARN("PREFER_PRINTF", "__printf(string-index, first-to-check) is preferred over __attribute__((format(printf, string-index, first-to-check)))\n" . $herecurr) && $fix) { $fixed[$linenr - 1] =~ s/\b__attribute__\s*\(\s*\(\s*format\s*\(\s*printf\s*,\s*(.*)\)\s*\)\s*\)/"__printf(" . trim($1) . ")"/ex; } } # Check for __attribute__ format(scanf, prefer __scanf if ($realfile !~ m@\binclude/uapi/@ && $line =~ /\b__attribute__\s*\(\s*\(\s*format\s*\(\s*scanf\b/) { if (WARN("PREFER_SCANF", "__scanf(string-index, first-to-check) is preferred over __attribute__((format(scanf, string-index, first-to-check)))\n" . $herecurr) && $fix) { $fixed[$linenr - 1] =~ s/\b__attribute__\s*\(\s*\(\s*format\s*\(\s*scanf\s*,\s*(.*)\)\s*\)\s*\)/"__scanf(" . trim($1) . ")"/ex; } } # check for sizeof(&) if ($line =~ /\bsizeof\s*\(\s*\&/) { WARN("SIZEOF_ADDRESS", "sizeof(& should be avoided\n" . $herecurr); } # check for sizeof without parenthesis if ($line =~ /\bsizeof\s+((?:\*\s*|)$Lval|$Type(?:\s+$Lval|))/) { if (WARN("SIZEOF_PARENTHESIS", "sizeof $1 should be sizeof($1)\n" . $herecurr) && $fix) { $fixed[$linenr - 1] =~ s/\bsizeof\s+((?:\*\s*|)$Lval|$Type(?:\s+$Lval|))/"sizeof(" . trim($1) . ")"/ex; } } # check for line continuations in quoted strings with odd counts of " if ($rawline =~ /\\$/ && $rawline =~ tr/"/"/ % 2) { WARN("LINE_CONTINUATIONS", "Avoid line continuations in quoted strings\n" . $herecurr); } # check for struct spinlock declarations if ($line =~ /^.\s*\bstruct\s+spinlock\s+\w+\s*;/) { WARN("USE_SPINLOCK_T", "struct spinlock should be spinlock_t\n" . $herecurr); } # check for seq_printf uses that could be seq_puts if ($sline =~ /\bseq_printf\s*\(.*"\s*\)\s*;\s*$/) { my $fmt = get_quoted_string($line, $rawline); if ($fmt ne "" && $fmt !~ /[^\\]\%/) { if (WARN("PREFER_SEQ_PUTS", "Prefer seq_puts to seq_printf\n" . $herecurr) && $fix) { $fixed[$linenr - 1] =~ s/\bseq_printf\b/seq_puts/; } } } # Check for misused memsets if ($^V && $^V ge 5.10.0 && defined $stat && $stat =~ /^\+(?:.*?)\bmemset\s*\(\s*$FuncArg\s*,\s*$FuncArg\s*\,\s*$FuncArg\s*\)/s) { my $ms_addr = $2; my $ms_val = $7; my $ms_size = $12; if ($ms_size =~ /^(0x|)0$/i) { ERROR("MEMSET", "memset to 0's uses 0 as the 2nd argument, not the 3rd\n" . "$here\n$stat\n"); } elsif ($ms_size =~ /^(0x|)1$/i) { WARN("MEMSET", "single byte memset is suspicious. Swapped 2nd/3rd argument?\n" . "$here\n$stat\n"); } } # Check for memcpy(foo, bar, ETH_ALEN) that could be ether_addr_copy(foo, bar) if ($^V && $^V ge 5.10.0 && $line =~ /^\+(?:.*?)\bmemcpy\s*\(\s*$FuncArg\s*,\s*$FuncArg\s*\,\s*ETH_ALEN\s*\)/s) { if (WARN("PREFER_ETHER_ADDR_COPY", "Prefer ether_addr_copy() over memcpy() if the Ethernet addresses are __aligned(2)\n" . $herecurr) && $fix) { $fixed[$linenr - 1] =~ s/\bmemcpy\s*\(\s*$FuncArg\s*,\s*$FuncArg\s*\,\s*ETH_ALEN\s*\)/ether_addr_copy($2, $7)/; } } # typecasts on min/max could be min_t/max_t if ($^V && $^V ge 5.10.0 && defined $stat && $stat =~ /^\+(?:.*?)\b(min|max)\s*\(\s*$FuncArg\s*,\s*$FuncArg\s*\)/) { if (defined $2 || defined $7) { my $call = $1; my $cast1 = deparenthesize($2); my $arg1 = $3; my $cast2 = deparenthesize($7); my $arg2 = $8; my $cast; if ($cast1 ne "" && $cast2 ne "" && $cast1 ne $cast2) { $cast = "$cast1 or $cast2"; } elsif ($cast1 ne "") { $cast = $cast1; } else { $cast = $cast2; } WARN("MINMAX", "$call() should probably be ${call}_t($cast, $arg1, $arg2)\n" . "$here\n$stat\n"); } } # check usleep_range arguments if ($^V && $^V ge 5.10.0 && defined $stat && $stat =~ /^\+(?:.*?)\busleep_range\s*\(\s*($FuncArg)\s*,\s*($FuncArg)\s*\)/) { my $min = $1; my $max = $7; if ($min eq $max) { WARN("USLEEP_RANGE", "usleep_range should not use min == max args; see Documentation/timers/timers-howto.txt\n" . "$here\n$stat\n"); } elsif ($min =~ /^\d+$/ && $max =~ /^\d+$/ && $min > $max) { WARN("USLEEP_RANGE", "usleep_range args reversed, use min then max; see Documentation/timers/timers-howto.txt\n" . "$here\n$stat\n"); } } # check for naked sscanf if ($^V && $^V ge 5.10.0 && defined $stat && $stat =~ /\bsscanf\b/ && ($stat !~ /$Ident\s*=\s*sscanf\s*$balanced_parens/ && $stat !~ /\bsscanf\s*$balanced_parens\s*(?:$Compare)/ && $stat !~ /(?:$Compare)\s*\bsscanf\s*$balanced_parens/)) { my $lc = $stat =~ tr@\n@@; $lc = $lc + $linenr; my $stat_real = raw_line($linenr, 0); for (my $count = $linenr + 1; $count <= $lc; $count++) { $stat_real = $stat_real . "\n" . raw_line($count, 0); } WARN("NAKED_SSCANF", "unchecked sscanf return value\n" . "$here\n$stat_real\n"); } # check for new externs in .h files. if ($realfile =~ /\.h$/ && $line =~ /^\+\s*(extern\s+)$Type\s*$Ident\s*\(/s) { if (CHK("AVOID_EXTERNS", "extern prototypes should be avoided in .h files\n" . $herecurr) && $fix) { $fixed[$linenr - 1] =~ s/(.*)\bextern\b\s*(.*)/$1$2/; } } # check for new externs in .c files. if ($realfile =~ /\.c$/ && defined $stat && $stat =~ /^.\s*(?:extern\s+)?$Type\s+($Ident)(\s*)\(/s) { my $function_name = $1; my $paren_space = $2; my $s = $stat; if (defined $cond) { substr($s, 0, length($cond), ''); } if ($s =~ /^\s*;/ && $function_name ne 'uninitialized_var') { WARN("AVOID_EXTERNS", "externs should be avoided in .c files\n" . $herecurr); } if ($paren_space =~ /\n/) { WARN("FUNCTION_ARGUMENTS", "arguments for function declarations should follow identifier\n" . $herecurr); } } elsif ($realfile =~ /\.c$/ && defined $stat && $stat =~ /^.\s*extern\s+/) { WARN("AVOID_EXTERNS", "externs should be avoided in .c files\n" . $herecurr); } # checks for new __setup's if ($rawline =~ /\b__setup\("([^"]*)"/) { my $name = $1; if (!grep(/$name/, @setup_docs)) { CHK("UNDOCUMENTED_SETUP", "__setup appears un-documented -- check Documentation/kernel-parameters.txt\n" . $herecurr); } } # check for pointless casting of kmalloc return if ($line =~ /\*\s*\)\s*[kv][czm]alloc(_node){0,1}\b/) { WARN("UNNECESSARY_CASTS", "unnecessary cast may hide bugs, see http://c-faq.com/malloc/mallocnocast.html\n" . $herecurr); } # alloc style # p = alloc(sizeof(struct foo), ...) should be p = alloc(sizeof(*p), ...) if ($^V && $^V ge 5.10.0 && $line =~ /\b($Lval)\s*\=\s*(?:$balanced_parens)?\s*([kv][mz]alloc(?:_node)?)\s*\(\s*(sizeof\s*\(\s*struct\s+$Lval\s*\))/) { CHK("ALLOC_SIZEOF_STRUCT", "Prefer $3(sizeof(*$1)...) over $3($4...)\n" . $herecurr); } # check for krealloc arg reuse if ($^V && $^V ge 5.10.0 && $line =~ /\b($Lval)\s*\=\s*(?:$balanced_parens)?\s*krealloc\s*\(\s*\1\s*,/) { WARN("KREALLOC_ARG_REUSE", "Reusing the krealloc arg is almost always a bug\n" . $herecurr); } # check for alloc argument mismatch if ($line =~ /\b(kcalloc|kmalloc_array)\s*\(\s*sizeof\b/) { WARN("ALLOC_ARRAY_ARGS", "$1 uses number as first arg, sizeof is generally wrong\n" . $herecurr); } # check for GFP_NOWAIT use if ($line =~ /\b__GFP_NOFAIL\b/) { WARN("__GFP_NOFAIL", "Use of __GFP_NOFAIL is deprecated, no new users should be added\n" . $herecurr); } # check for multiple semicolons if ($line =~ /;\s*;\s*$/) { if (WARN("ONE_SEMICOLON", "Statements terminations use 1 semicolon\n" . $herecurr) && $fix) { $fixed[$linenr - 1] =~ s/(\s*;\s*){2,}$/;/g; } } # check for case / default statements not preceeded by break/fallthrough/switch if ($line =~ /^.\s*(?:case\s+(?:$Ident|$Constant)\s*|default):/) { my $has_break = 0; my $has_statement = 0; my $count = 0; my $prevline = $linenr; while ($prevline > 1 && $count < 3 && !$has_break) { $prevline--; my $rline = $rawlines[$prevline - 1]; my $fline = $lines[$prevline - 1]; last if ($fline =~ /^\@\@/); next if ($fline =~ /^\-/); next if ($fline =~ /^.(?:\s*(?:case\s+(?:$Ident|$Constant)[\s$;]*|default):[\s$;]*)*$/); $has_break = 1 if ($rline =~ /fall[\s_-]*(through|thru)/i); next if ($fline =~ /^.[\s$;]*$/); $has_statement = 1; $count++; $has_break = 1 if ($fline =~ /\bswitch\b|\b(?:break\s*;[\s$;]*$|return\b|goto\b|continue\b)/); } if (!$has_break && $has_statement) { WARN("MISSING_BREAK", "Possible switch case/default not preceeded by break or fallthrough comment\n" . $herecurr); } } # check for switch/default statements without a break; if ($^V && $^V ge 5.10.0 && defined $stat && $stat =~ /^\+[$;\s]*(?:case[$;\s]+\w+[$;\s]*:[$;\s]*|)*[$;\s]*\bdefault[$;\s]*:[$;\s]*;/g) { my $ctx = ''; my $herectx = $here . "\n"; my $cnt = statement_rawlines($stat); for (my $n = 0; $n < $cnt; $n++) { $herectx .= raw_line($linenr, $n) . "\n"; } WARN("DEFAULT_NO_BREAK", "switch default: should use break\n" . $herectx); } # check for gcc specific __FUNCTION__ if ($line =~ /\b__FUNCTION__\b/) { if (WARN("USE_FUNC", "__func__ should be used instead of gcc specific __FUNCTION__\n" . $herecurr) && $fix) { $fixed[$linenr - 1] =~ s/\b__FUNCTION__\b/__func__/g; } } # check for use of yield() if ($line =~ /\byield\s*\(\s*\)/) { WARN("YIELD", "Using yield() is generally wrong. See yield() kernel-doc (sched/core.c)\n" . $herecurr); } # check for comparisons against true and false if ($line =~ /\+\s*(.*?)\b(true|false|$Lval)\s*(==|\!=)\s*(true|false|$Lval)\b(.*)$/i) { my $lead = $1; my $arg = $2; my $test = $3; my $otype = $4; my $trail = $5; my $op = "!"; ($arg, $otype) = ($otype, $arg) if ($arg =~ /^(?:true|false)$/i); my $type = lc($otype); if ($type =~ /^(?:true|false)$/) { if (("$test" eq "==" && "$type" eq "true") || ("$test" eq "!=" && "$type" eq "false")) { $op = ""; } CHK("BOOL_COMPARISON", "Using comparison to $otype is error prone\n" . $herecurr); ## maybe suggesting a correct construct would better ## "Using comparison to $otype is error prone. Perhaps use '${lead}${op}${arg}${trail}'\n" . $herecurr); } } # check for semaphores initialized locked if ($line =~ /^.\s*sema_init.+,\W?0\W?\)/) { WARN("CONSIDER_COMPLETION", "consider using a completion\n" . $herecurr); } # recommend kstrto* over simple_strto* and strict_strto* if ($line =~ /\b((simple|strict)_(strto(l|ll|ul|ull)))\s*\(/) { WARN("CONSIDER_KSTRTO", "$1 is obsolete, use k$3 instead\n" . $herecurr); } # check for __initcall(), use device_initcall() explicitly please if ($line =~ /^.\s*__initcall\s*\(/) { WARN("USE_DEVICE_INITCALL", "please use device_initcall() instead of __initcall()\n" . $herecurr); } # check for various ops structs, ensure they are const. my $struct_ops = qr{acpi_dock_ops| address_space_operations| backlight_ops| block_device_operations| dentry_operations| dev_pm_ops| dma_map_ops| extent_io_ops| file_lock_operations| file_operations| hv_ops| ide_dma_ops| intel_dvo_dev_ops| item_operations| iwl_ops| kgdb_arch| kgdb_io| kset_uevent_ops| lock_manager_operations| microcode_ops| mtrr_ops| neigh_ops| nlmsvc_binding| pci_raw_ops| pipe_buf_operations| platform_hibernation_ops| platform_suspend_ops| proto_ops| rpc_pipe_ops| seq_operations| snd_ac97_build_ops| soc_pcmcia_socket_ops| stacktrace_ops| sysfs_ops| tty_operations| usb_mon_operations| wd_ops}x; if ($line !~ /\bconst\b/ && $line =~ /\bstruct\s+($struct_ops)\b/) { WARN("CONST_STRUCT", "struct $1 should normally be const\n" . $herecurr); } # use of NR_CPUS is usually wrong # ignore definitions of NR_CPUS and usage to define arrays as likely right if ($line =~ /\bNR_CPUS\b/ && $line !~ /^.\s*\s*#\s*if\b.*\bNR_CPUS\b/ && $line !~ /^.\s*\s*#\s*define\b.*\bNR_CPUS\b/ && $line !~ /^.\s*$Declare\s.*\[[^\]]*NR_CPUS[^\]]*\]/ && $line !~ /\[[^\]]*\.\.\.[^\]]*NR_CPUS[^\]]*\]/ && $line !~ /\[[^\]]*NR_CPUS[^\]]*\.\.\.[^\]]*\]/) { WARN("NR_CPUS", "usage of NR_CPUS is often wrong - consider using cpu_possible(), num_possible_cpus(), for_each_possible_cpu(), etc\n" . $herecurr); } # Use of __ARCH_HAS_ or ARCH_HAVE_ is wrong. if ($line =~ /\+\s*#\s*define\s+((?:__)?ARCH_(?:HAS|HAVE)\w*)\b/) { ERROR("DEFINE_ARCH_HAS", "#define of '$1' is wrong - use Kconfig variables or standard guards instead\n" . $herecurr); } # check for %L{u,d,i} in strings my $string; while ($line =~ /(?:^|")([X\t]*)(?:"|$)/g) { $string = substr($rawline, $-[1], $+[1] - $-[1]); $string =~ s/%%/__/g; if ($string =~ /(?mutex.\n" . $herecurr); } } if ($line =~ /debugfs_create_file.*S_IWUGO/ || $line =~ /DEVICE_ATTR.*S_IWUGO/ ) { WARN("EXPORTED_WORLD_WRITABLE", "Exporting world writable files is usually an error. Consider more restrictive permissions.\n" . $herecurr); } } # If we have no input at all, then there is nothing to report on # so just keep quiet. if ($#rawlines == -1) { exit(0); } # In mailback mode only produce a report in the negative, for # things that appear to be patches. if ($mailback && ($clean == 1 || !$is_patch)) { exit(0); } # This is not a patch, and we are are in 'no-patch' mode so # just keep quiet. if (!$chk_patch && !$is_patch) { exit(0); } if (!$is_patch) { ERROR("NOT_UNIFIED_DIFF", "Does not appear to be a unified-diff format patch\n"); } if ($is_patch && $chk_signoff && $signoff == 0) { ERROR("MISSING_SIGN_OFF", "Missing Signed-off-by: line(s)\n"); } print report_dump(); if ($summary && !($clean == 1 && $quiet == 1)) { print "$filename " if ($summary_file); print "total: $cnt_error errors, $cnt_warn warnings, " . (($check)? "$cnt_chk checks, " : "") . "$cnt_lines lines checked\n"; print "\n" if ($quiet == 0); } if ($quiet == 0) { if ($^V lt 5.10.0) { print("NOTE: perl $^V is not modern enough to detect all possible issues.\n"); print("An upgrade to at least perl v5.10.0 is suggested.\n\n"); } # If there were whitespace errors which cleanpatch can fix # then suggest that. if ($rpt_cleaners) { print "NOTE: whitespace errors detected, you may wish to use scripts/cleanpatch or\n"; print " scripts/cleanfile\n\n"; $rpt_cleaners = 0; } } hash_show_words(\%use_type, "Used"); hash_show_words(\%ignore_type, "Ignored"); if ($clean == 0 && $fix && "@rawlines" ne "@fixed") { my $newfile = $filename; $newfile .= ".EXPERIMENTAL-checkpatch-fixes" if (!$fix_inplace); my $linecount = 0; my $f; open($f, '>', $newfile) or die "$P: Can't open $newfile for write\n"; foreach my $fixed_line (@fixed) { $linecount++; if ($file) { if ($linecount > 3) { $fixed_line =~ s/^\+//; print $f $fixed_line. "\n"; } } else { print $f $fixed_line . "\n"; } } close($f); if (!$quiet) { print << "EOM"; Wrote EXPERIMENTAL --fix correction(s) to '$newfile' Do _NOT_ trust the results written to this file. Do _NOT_ submit these changes without inspecting them for correctness. This EXPERIMENTAL file is simply a convenience to help rewrite patches. No warranties, expressed or implied... EOM } } if ($clean == 1 && $quiet == 0) { print "$vname has no obvious style problems and is ready for submission.\n" } if ($clean == 0 && $quiet == 0) { print << "EOM"; $vname has style problems, please review. If any of these errors are false positives, please report them to the maintainer, see CHECKPATCH in MAINTAINERS. EOM } return $clean; } n3490'>3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 6820 6821 6822 6823 6824 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948 6949 6950 6951 6952 6953 6954 6955 6956 6957 6958 6959 6960 6961 6962 6963 6964 6965 6966 6967 6968 6969 6970 6971 6972 6973 6974 6975 6976 6977 6978 6979 6980 6981 6982 6983 6984 6985 6986 6987 6988 6989 6990 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008 7009 7010 7011 7012 7013 7014 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258 7259 7260 7261 7262 7263 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602 7603 7604 7605 7606 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 7636 7637 7638 7639 7640 7641 7642 7643 7644 7645 7646 7647 7648 7649 7650 7651 7652 7653 7654 7655 7656 7657 7658 7659 7660 7661 7662 7663 7664 7665 7666 7667 7668 7669 7670 7671 7672 7673 7674 7675 7676 7677 7678 7679 7680 7681 7682 7683 7684 7685 7686 7687 7688 7689 7690 7691 7692 7693 7694 7695 7696 7697 7698 7699 7700 7701 7702 7703 7704 7705 7706 7707 7708 7709 7710 7711 7712 7713 7714 7715 7716 7717 7718 7719 7720 7721 7722 7723 7724 7725 7726 7727 7728 7729 7730 7731 7732 7733 7734 7735 7736 7737 7738 7739 7740 7741 7742 7743 7744 7745 7746 7747 7748 7749 7750 7751 7752 7753 7754 7755 7756 7757 7758 7759 7760 7761 7762 7763 7764 7765 7766 7767 7768 7769 7770 7771 7772 7773 7774 7775 7776 7777 7778 7779 7780 7781 7782 7783 7784 7785 7786 7787 7788 7789 7790 7791 7792 7793 7794 7795 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806 7807 7808 7809 7810 7811 7812 7813 7814 7815 7816 7817 7818 7819 7820 7821 7822 7823 7824 7825 7826 7827 7828 7829 7830 7831 7832 7833 7834 7835 7836 7837 7838 7839 7840 7841 7842 7843 7844 7845 7846 7847 7848 7849 7850 7851 7852 7853 7854 7855 7856 7857 7858 7859 7860 7861 7862 7863 7864 7865 7866 7867 7868 7869 7870 7871 7872 7873 7874 7875 7876 7877 7878 7879 7880 7881 7882 7883 7884 7885 7886 7887 7888 7889 7890 7891 7892 7893 7894 7895 7896 7897 7898 7899 7900 7901 7902 7903 7904 7905 7906 7907 7908 7909 7910 7911 7912 7913 7914 7915 7916 7917 7918 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934 7935 7936 7937 7938 7939 7940 7941 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953 7954 7955 7956 7957 7958 7959 7960 7961 7962 7963 7964 7965 7966 7967 7968 7969 7970 7971 7972 7973 7974 7975 7976 7977 7978 7979 7980 7981 7982 7983 7984 7985 7986 7987 7988 7989 7990 7991 7992 7993 7994 7995 7996 7997 7998 7999 8000 8001 8002 8003 8004 8005 8006 8007 8008 8009 8010 8011 8012 8013 8014 8015 8016 8017 8018 8019 8020 8021 8022 8023 8024 8025 8026 8027 8028 8029 8030 8031 8032 8033 8034 8035 8036 8037 8038 8039 8040 8041 8042 8043 8044 8045 8046 8047 8048 8049 8050 8051 8052 8053 8054 8055 8056 8057 8058 8059 8060 8061 8062 8063 8064 8065 8066 8067 8068 8069 8070 8071 8072 8073 8074 8075 8076 8077 8078 8079 8080 8081 8082 8083 8084 8085 8086 8087 8088 8089 8090 8091 8092 8093 8094 8095 8096 8097 8098 8099 8100 8101 8102 8103 8104 8105 8106 8107 8108 8109 8110 8111 8112 8113 8114 8115 8116 8117 8118 8119 8120 8121 8122 8123 8124 8125 8126 8127 8128 8129 8130 8131 8132 8133 8134 8135 8136 8137 8138 8139 8140 8141 8142 8143 8144 8145 8146 8147 8148 8149 8150 8151 8152 8153 8154 8155 8156 8157 8158 8159 8160 8161 8162 8163 8164 8165 8166 8167 8168 8169 8170 8171 8172 8173 8174 8175 8176 8177 8178 8179 8180 8181 8182 8183 8184 8185 8186 8187 8188 8189 8190 8191 8192 8193 8194 8195 8196 8197 8198 8199 8200 8201 8202 8203 8204 8205 8206 8207 8208 8209 8210 8211 8212 8213 8214 8215 8216 8217 8218 8219 8220 8221 8222 8223 8224 8225 8226 8227 8228 8229 8230 8231 8232 8233 8234 8235 8236 8237 8238 8239 8240 8241 8242 8243 8244 8245 8246 8247 8248 8249 8250 8251 8252 8253 8254 8255 8256 8257 8258 8259 8260 8261 8262 8263 8264 8265 8266 8267 8268 8269 8270 8271 8272 8273 8274 8275 8276 8277 8278 8279 8280 8281 8282 8283 8284 8285 8286 8287 8288 8289 8290 8291 8292 8293 8294 8295 8296 8297 8298 8299 8300 8301 8302 8303 8304 8305 8306 8307 8308 8309 8310 8311 8312 8313 8314 8315 8316 8317 8318 8319 8320 8321 8322 8323 8324 8325 8326 8327 8328 8329 8330 8331 8332 8333 8334 8335 8336 8337 8338 8339 8340 8341 8342 8343 8344 8345 8346 8347 8348 8349 8350 8351 8352 8353 8354 8355 8356 8357 8358 8359 8360 8361 8362 8363 8364 8365 8366 8367 8368 8369 8370 8371 8372 8373 8374 8375 8376 8377 8378 8379 8380 8381 8382 8383 8384 8385 8386 8387 8388 8389 8390 8391 8392 8393 8394 8395 8396 8397 8398 8399 8400 8401 8402 8403 8404 8405 8406 8407 8408 8409 8410 8411 8412 8413 8414 8415 8416 8417 8418 8419 8420 8421 8422 8423 8424 8425 8426 8427 8428 8429 8430 8431 8432 8433 8434 8435 8436 8437 8438 8439 8440 8441 8442 8443 8444 8445 8446 8447 8448 8449 8450 8451 8452 8453 8454 8455 8456 8457 8458 8459 8460 8461 8462 8463 8464 8465 8466 8467 8468 8469 8470 8471 8472
# translation of ar.po to Arabic
# translation of anaconda.po to Arabic
# Copyright (C) 2004 THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# Ossama M. Khayat <okhayat@yahoo.com>, 2004.
# Youcef Rabah Rahal <rahal@arabeyes.org>, 2004.
# Basem Narmok <narm@localhost.localdomain>, 2004.
# Mohamed Eldesoky <mohamed@eldesoky.net>, 2004.
# Muhammad Alkarouri <malkarouri@yahoo.co.uk>, 2004.
# Hicham Amaoui <amaoui@altern.ort>, 2004.
# Munzir Taha <munzirtaha@newhorizons.com.sa>, 2004.
# Mohammad Ghoniem <Mohammad.Ghoniem@gmail.com>, 2005.
#
msgid ""
msgstr ""
"Project-Id-Version: ar\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2005-06-01 15:14-0400\n"
"PO-Revision-Date: 2005-06-30 23:45+0300\n"
"Last-Translator: Munzir Taha <munzirtaha@newhorizons.com.sa>\n"
"Language-Team: Arabic <fedora-trans-ar@redhat.com>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: KBabel 1.9.1\n"

#: ../anaconda:102
msgid "Starting VNC..."
msgstr "جاري تشغيل VNC..."

#: ../anaconda:137
#, c-format
msgid "%s %s installation on host %s"
msgstr "تثبيت %s%s على المضيف %s"

#: ../anaconda:139
#, c-format
msgid "%s %s installation"
msgstr "تثبيت %s %s"

#: ../anaconda:159
msgid "Unable to set vnc password - using no password!"
msgstr "لم يمكن تحديد كلمة السّر - استخدام دون كلمة سرّ!"

#: ../anaconda:160
msgid "Make sure your password is at least 6 characters in length."
msgstr "تأكّد من أن طول كلمة السّرّ لا يقل عنّ 6 أحرف."

#: ../anaconda:183
msgid ""
"\n"
"\n"
"WARNING!!! VNC server running with NO PASSWORD!\n"
"You can use the vncpassword=<password> boot option\n"
"if you would like to secure the server.\n"
"\n"
msgstr ""
"\n"
"\n"
"تحذير!!! خادم VNC يعمل بلا كلمة سرّ!\n"
"يمكنك استخدام خيار الإقلاع vncpassword=<password>\n"
"إن كنت ترغب بتأمين الخادم.\n"
"\n"

#: ../anaconda:187
msgid "The VNC server is now running."
msgstr "خادم VNC يعمل حاليّاً."

#: ../anaconda:190
#, c-format
msgid "Attempting to connect to vnc client on host %s..."
msgstr "جاري محاولة الاتّصال بمضيف vnc %s..."

#: ../anaconda:204
msgid "Giving up attempting to connect after 50 tries!\n"
msgstr "جاري الاستسلام بعد المحاولة خمسين مرّة!\n"

#: ../anaconda:206
#, c-format
msgid "Please manually connect your vnc client to %s to begin the install."
msgstr "رجاء اتصل يدويّاً بمستفيد vnc %s لتبدأ التثبيت."

#: ../anaconda:208
msgid "Please manually connect your vnc client to begin the install."
msgstr "رجاء اتصل يدويّاً بمستفيد vnc لتبدأ التثبيت."

#: ../anaconda:212
msgid "Will try to connect again in 15 seconds..."
msgstr "سوف أعاود المحاولة خلال 15 ثانية..."

#: ../anaconda:216
msgid "Connected!"
msgstr "مُتّصل!"

#: ../anaconda:220
#, c-format
msgid "Please connect to %s to begin the install..."
msgstr "رجاء اتصل يدويّاً بـ %s لتبدأ التثبيت..."

#: ../anaconda:222
msgid "Please connect to begin the install..."
msgstr "رجاءً قم بالاتّصال حتى تبدأ التثبيت..."

#: ../anaconda:583 ../anaconda:766 ../gui.py:241 ../gui.py:1073
#: ../rescue.py:41 ../rescue.py:228 ../rescue.py:308 ../rescue.py:336
#: ../rescue.py:346 ../rescue.py:418 ../rescue.py:424 ../text.py:324
#: ../text.py:493 ../textw/confirm_text.py:26 ../textw/confirm_text.py:54
#: ../textw/constants_text.py:36 ../textw/fdisk_text.py:41
#: ../textw/network_text.py:32 ../textw/network_text.py:178
#: ../textw/network_text.py:409 ../textw/network_text.py:417
#: ../loader2/cdinstall.c:136 ../loader2/cdinstall.c:137
#: ../loader2/cdinstall.c:256 ../loader2/cdinstall.c:259
#: ../loader2/cdinstall.c:376 ../loader2/cdinstall.c:381
#: ../loader2/cdinstall.c:386 ../loader2/cdinstall.c:451
#: ../loader2/dirbrowser.c:139 ../loader2/driverdisk.c:269
#: ../loader2/driverdisk.c:300 ../loader2/driverdisk.c:339
#: ../loader2/driverdisk.c:377 ../loader2/driverdisk.c:390
#: ../loader2/driverdisk.c:404 ../loader2/driverdisk.c:583
#: ../loader2/driverdisk.c:621 ../loader2/driverselect.c:73
#: ../loader2/driverselect.c:213 ../loader2/hdinstall.c:106
#: ../loader2/hdinstall.c:159 ../loader2/hdinstall.c:217
#: ../loader2/hdinstall.c:384 ../loader2/hdinstall.c:435
#: ../loader2/hdinstall.c:470 ../loader2/hdinstall.c:538
#: ../loader2/hdinstall.c:581 ../loader2/hdinstall.c:594 ../loader2/kbd.c:125
#: ../loader2/kickstart.c:121 ../loader2/kickstart.c:131
#: ../loader2/kickstart.c:174 ../loader2/kickstart.c:273
#: ../loader2/kickstart.c:408 ../loader2/lang.c:103 ../loader2/lang.c:380
#: ../loader2/loader.c:308 ../loader2/loader.c:321 ../loader2/loader.c:332
#: ../loader2/loader.c:691 ../loader2/loader.c:869 ../loader2/mediacheck.c:329
#: ../loader2/mediacheck.c:386 ../loader2/mediacheck.c:428
#: ../loader2/method.c:156 ../loader2/method.c:373 ../loader2/method.c:458
#: ../loader2/modules.c:982 ../loader2/net.c:231 ../loader2/net.c:269
#: ../loader2/net.c:536 ../loader2/net.c:897 ../loader2/net.c:920
#: ../loader2/net.c:1069 ../loader2/nfsinstall.c:54
#: ../loader2/nfsinstall.c:201 ../loader2/nfsinstall.c:210
#: ../loader2/nfsinstall.c:248 ../loader2/telnetd.c:84
#: ../loader2/urlinstall.c:67 ../loader2/urlinstall.c:139
#: ../loader2/urlinstall.c:152 ../loader2/urlinstall.c:442
#: ../loader2/urlinstall.c:451 ../loader2/urlinstall.c:462
#: ../loader2/urls.c:172 ../loader2/urls.c:182 ../loader2/urls.c:191
#: ../loader2/urls.c:257 ../loader2/urls.c:322 ../loader2/urls.c:327
#: ../loader2/urls.c:333 ../loader2/urls.c:447
msgid "OK"
msgstr "موافق"

#: ../anaconda:631
msgid "Unknown Error"
msgstr "خطأ مجهول"

#: ../anaconda:634
#, c-format
msgid "Error pulling second part of kickstart config: %s!"
msgstr "خطأ في قراءة الجزء الثّاني من تهيئة kickstart: %s!"

#: ../anaconda:750
msgid ""
"You do not have enough RAM to use the graphical installer.  Starting text "
"mode."
msgstr "لا يوجد لديك ذاكرة مؤقّتة كافية لتستخدم المُثبّت الرسوميّ. جاري بدء الوضع النّصّي."

#: ../anaconda:803
msgid "Install class forcing text mode installation"
msgstr "صنف التثبيت النّصي الاجباري"

#: ../anaconda:830
msgid "No video hardware found, assuming headless"
msgstr "لم يتمّ العثور على عتاد فيديو، افتراض عدم وجوده"

#: ../anaconda:841 ../anaconda:1092
msgid "Unable to instantiate a X hardware state object."
msgstr "لا يمكن ابتداء كائن لحالة عتاد X."

#: ../anaconda:865
msgid "Graphical installation not available...  Starting text mode."
msgstr "التثبيت الرسومي غير متوفر... جاري بدء التثبيت النّصّي."

#: ../anaconda:880
msgid ""
"No mouse was detected.  A mouse is required for graphical installation.  "
"Starting text mode."
msgstr "لم يعثر على ماوس. التثبيت الرّسوميّ يتطلّب وجود واحدة. بدء التثبيت النّصّي."

#: ../anaconda:890
#, c-format
msgid "Detected mouse type: %s"
msgstr "تم اكتشاف نوع ماوس: %s"

#: ../anaconda:894
#, c-format
msgid "Using mouse type: %s"
msgstr "استخدام ماوس نوع: %s"

#: ../anaconda:998
msgid "Starting graphical installation..."
msgstr "جاري بدء التثبيت الرّسوميّ"

#: ../autopart.py:971
msgid "Could not allocate cylinder-based partitions as primary partitions"
msgstr "لم يمكن تعيين التّجزيئات المبنيّة على الاسطوانات كتجزيئات أوّليّة"

#: ../autopart.py:974
msgid "Could not allocate partitions as primary partitions"
msgstr "لم يمكن تعيين التجزيئات كتجزيئات أوّليّة"

#: ../autopart.py:977
msgid "Could not allocate cylinder-based partitions"
msgstr "لم يمكن تعيين التجزيئات المبنيّة على الاسطوانات"

#: ../autopart.py:980
msgid "Could not allocate partitions"
msgstr "لم يمكن تعيين التجزيئات"

#: ../autopart.py:1042
#, python-format
msgid ""
"Boot partition %s doesn't belong to a BSD disk label. SRM won't be able to "
"boot from this partition. Use a partition belonging to a BSD disk label or "
"change this device disk label to BSD."
msgstr ""
"جزء الإقلاع %s لا ينتمي إلى علامة قرص BSD. لن يستطيع SRM الإقلاع من هذا "
"الجزء. استخدم جزء ينتمي إلى علامة قرص BSD أو غيّر علامة هذا القرص إلى BSD."

#: ../autopart.py:1044
#, python-format
msgid ""
"Boot partition %s doesn't belong to a disk with enough free space at its "
"beginning for the bootloader to live on. Make sure that there's at least 5MB "
"of free space at the beginning of the disk that contains /boot"
msgstr ""
"قسم الإقلاع %s لا ينتمي إلى قرص ذي مساحة حرّة كافية في بدايته كي يعيش فيه "
"مُحمّل الإقلاع. تأكّد من أنّ هناك على الأقل 5 ميجابايت مساحة حرّة على بداية القرص "
"الذي يحتوي /boot"

#: ../autopart.py:1046
#, python-format
msgid ""
"Boot partition %s isn't a VFAT partition.  EFI won't be able to boot from "
"this partition."
msgstr "قسم الإقلاع %s ليس قسم VFAT.  لن يستطيع EFI الإقلاع من هذا التّجزيء."

#: ../autopart.py:1048
msgid ""
"Boot partition isn't located early enough on the disk.  OpenFirmware won't "
"be able to boot this installation."
msgstr ""
"قسم الإقلاع غير واقع على القرص بقُرب كافي.  لن يستطيع OpenFirmware إقلاع "
"هذا التّثبيت."

#: ../autopart.py:1055
#, python-format
msgid "Boot partition %s may not meet booting constraints for your architecture."
msgstr "قسم الإقلاع %s قد لا يوافق قيود الإقلاع لبنية نظامك."

#: ../autopart.py:1081
#, python-format
msgid ""
"Adding this partition would not leave enough disk space for already "
"allocated logical volumes in %s."
msgstr "إضافة هذا القسم لن تترك مساحة قرص كافية للكتل المنطقيّة المعينّة مسبقاً في %s."

#: ../autopart.py:1270
msgid "Requested Partition Does Not Exist"
msgstr "القسم المطلوب غير موجود"

#: ../autopart.py:1271
#, python-format
msgid ""
"Unable to locate partition %s to use for %s.\n"
"\n"
"Press 'OK' to reboot your system."
msgstr ""
"لم يمكن تحديد القسم %s لاستخدامه لـ%s.\n"
"\n"
"اضغط الزّر ‘موافق‘ لإعادة تشغيل نظامك."

#: ../autopart.py:1298
msgid "Requested Raid Device Does Not Exist"
msgstr "جهاز RAID المطلوب غير موجود"

#: ../autopart.py:1299
#, python-format
msgid ""
"Unable to locate raid device %s to use for %s.\n"
"\n"
"Press 'OK' to reboot your system."
msgstr ""
"لم يمكن العثور على جهاز raid %s لاستخدامه لـ %s.\n"
"\n"
"اضغط 'موافق' لتعيد تشغيل نظامك."

#: ../autopart.py:1330
msgid "Requested Volume Group Does Not Exist"
msgstr "مجموعة الكُتل المطلوبة غير موجودة"

#: ../autopart.py:1331
#, python-format
msgid ""
"Unable to locate volume group %s to use for %s.\n"
"\n"
"Press 'OK' to reboot your system."
msgstr ""
"لم يمكن العثور على مجموعة الكُتل %s لاستخدامها لـ%s.\n"
"\n"
"اضغط 'موافق' لتعيد تشغيل نظامك."

#: ../autopart.py:1368
msgid "Requested Logical Volume Does Not Exist"
msgstr "الكتلة المنطقيّة المطلوبة غير موجودة"

#: ../autopart.py:1369
#, python-format
msgid ""
"Unable to locate logical volume %s to use for %s.\n"
"\n"
"Press 'OK' to reboot your system."
msgstr ""
"لم يمكن العثور على الكتلة المنطقيّة %s لاستخدامها لـ%s.\n"
"\n"
"اضغط على الزر ‘موافق‘ لتعيد تشغيل نظامك."

#: ../autopart.py:1483 ../autopart.py:1531
msgid "Automatic Partitioning Errors"
msgstr "أخطاء التجزئة التلقائيّة"

#: ../autopart.py:1484
#, python-format
msgid ""
"The following errors occurred with your partitioning:\n"
"\n"
"%s\n"
"\n"
"Press 'OK' to reboot your system."
msgstr ""
"حدثت الأخطاء التالية خلال التقسيم:\n"
"\n"
"%s\n"
"\n"
"اضغط على الزر ‘موافق‘ لتعيد تشغيل نظامك."

#: ../autopart.py:1494
msgid "Warnings During Automatic Partitioning"
msgstr "تحذيرات خلال التّجزئة التّلقائيّة"

#: ../autopart.py:1495
#, python-format
msgid ""
"Following warnings occurred during automatic partitioning:\n"
"\n"
"%s"
msgstr ""
"حدثت التحذيرات التّالية خلال عمليّة التّجزئة التّلقائيّة:\n"
"\n"
"%s"

#: ../autopart.py:1508 ../autopart.py:1525
msgid ""
"\n"
"\n"
"Press 'OK' to reboot your system."
msgstr ""
"\n"
"\n"
"اضغط على الزر ‘موافق‘ لتعيد تشغيل نظامك."

#: ../autopart.py:1509 ../iw/partition_gui.py:995
#: ../textw/partition_text.py:225
msgid "Error Partitioning"
msgstr "خطأ في التّجزئة"

#: ../autopart.py:1510
#, python-format
msgid ""
"Could not allocate requested partitions: \n"
"\n"
"%s.%s"
msgstr ""
"لم يمكن تخصيص التقسيمات المطلوبة: ·\n"
"\n"
"%s.%s"

#: ../autopart.py:1527
msgid ""
"\n"
"\n"
"You can choose a different automatic partitioning option, or click 'Back' to "
"select manual partitioning.\n"
"\n"
"Press 'OK' to continue."
msgstr ""
"\n"
"\n"
"يمكنك اختيار خيار تجزئة تلقائيّ آخر، أو اضغط على ‘رجوع‘ لتحدّد التّجزئة "
"اليدويّة.\n"
"\n"
"اضغط ‘موافق‘ لتكمل."

#: ../autopart.py:1532
#, python-format
msgid ""
"The following errors occurred with your partitioning:\n"
"\n"
"%s\n"
"\n"
"This can happen if there is not enough space on your hard drive(s) for the "
"installation.%s"
msgstr ""
"حدثت الأخطاء التالية بتجزئتك:\n"
"\n"
"%s\n"
"\n"
"يمكن أن يحدث هذا إن لم يكن هناك مساحة كافية على قرصك الصّلب من أجل التّثبيت.%s"

#: ../autopart.py:1543
msgid "Unrecoverable Error"
msgstr "خطأ غير قابل للإصلاح"

#: ../autopart.py:1544
msgid "Your system will now be rebooted."
msgstr "سوف يتمّ الآن إعادة تشغيل نظامك."

#: ../autopart.py:1690 ../bootloader.py:179 ../gui.py:1070 ../image.py:475
#: ../packages.py:446 ../partedUtils.py:289 ../partedUtils.py:319
#: ../partedUtils.py:844 ../partedUtils.py:901 ../upgrade.py:328
#: ../upgrade.py:439 ../upgrade.py:491 ../upgrade.py:514 ../upgrade.py:554
#: ../iw/blpasswidget.py:145 ../iw/bootloader_advanced_gui.py:42
#: ../iw/bootloader_main_gui.py:92 ../iw/fdasd_gui.py:93
#: ../iw/upgrade_swap_gui.py:200 ../iw/upgrade_swap_gui.py:208
#: ../iw/upgrade_swap_gui.py:215 ../iw/zfcp_gui.py:248
#: ../textw/bootloader_text.py:125 ../textw/bootloader_text.py:460
#: ../textw/fdasd_text.py:84 ../textw/partition_text.py:229
#: ../textw/upgrade_text.py:177 ../loader2/loader.c:363
msgid "Warning"
msgstr "تحذير"

#: ../autopart.py:1696
msgid ""
"Automatic Partitioning sets partitions based on the selected installation "
"type. You also can customize the partitions once they have been created.\n"
"\n"
"The manual disk partitioning tool, Disk Druid, allows you to create "
"partitions in an interactive environment. You can set the file system types, "
"mount points, partition sizes, and more."
msgstr ""
"التجزئة الآليّة تحدّد التجزيئات بناءً على نوع التُثبيت المُحدّد. يمكنك أيضاً تخصيص "
"التجزيئات حالما يتمّ إنشاءها.\n"
"\n"
"أداة تجزئة القرص اليدويّة، Disk Druid، تمكّنك من إنشاء تجزيئات في بيئة "
"تفاعليّة. يمكنك تحديد أنواع أنظمة الملفّات، أماكن التّجهيز، أحجام التّجزيئات، "
"والمزيد."

#: ../autopart.py:1707
msgid ""
"Before automatic partitioning can be set up by the installation program, you "
"must choose how to use the space on your hard drives."
msgstr ""
"قبل أن يتمكّن برنامج التثبيت من إعداد التّجزئة التّلقائيّة، عليك أن تحدّد كيفيّة "
"استخدام المساحة على أقراصك الصّلبة."

#: ../autopart.py:1712
msgid "Remove all partitions on this system"
msgstr "أزل كلّ التجزيئات على هذا النّظام"

#: ../autopart.py:1713
msgid "Remove all Linux partitions on this system"
msgstr "أزل كلّ تجزيئات لينكس على هذا النّظام"

#: ../autopart.py:1714
msgid "Keep all partitions and use existing free space"
msgstr "أبْقِ كلّ التجزيئات واستخدم المساحة الحرّة"

#: ../autopart.py:1716
#, python-format
msgid ""
"You have chosen to remove all partitions (ALL DATA) on the following drives:%"
"s\n"
"Are you sure you want to do this?"
msgstr ""
"لقد اخترت أن تزيل كل التّجزيئات (كلّ البيانات) على السّوّاقات التّالية:%s\n"
"هل أنت متأكّد أنّك تريد القيام بهذا؟"

#: ../autopart.py:1720
#, python-format
msgid ""
"You have chosen to remove all Linux partitions (and ALL DATA on them) on the "
"following drives:%s\n"
"Are you sure you want to do this?"
msgstr ""
"لقد اخترت أن تزيل كل تجزيئات لينكس (وكلّ البيانات التّي عليها) على السّوّاقات "
"التّالية:%s\n"
"هل أنت متأكّد أنّك تريد القيام بهذا؟"

#: ../bootloader.py:118
msgid "Bootloader"
msgstr "مُحمّل الإقلاع"

#: ../bootloader.py:118
msgid "Installing bootloader..."
msgstr "جاري تثبيت مُحمّل الإقلاع..."

#: ../bootloader.py:180
msgid ""
"No kernel packages were installed on your system.  Your boot loader "
"configuration will not be changed."
msgstr "لم يتمّ تثبيت أي حزم نواة على نظامك. سوف لن يتبدّل إعداد محمّل الإقلاع."

#: ../cmdline.py:42
msgid "Completed"
msgstr "اكتمل"

#: ../cmdline.py:47
msgid "In progress...   "
msgstr "قيد العمل..."

#: ../cmdline.py:68
msgid "Can't have a question in command line mode!"
msgstr "لا يمكن وضع سؤال في وضع سطر الأوامر!"

#: ../cmdline.py:87
msgid "Parted exceptions can't be handled in command line mode!"
msgstr "استثناءات parted لا يمكن التّعامل معها في وضع سطر الأوامر!"

#: ../cmdline.py:133
#, python-format
msgid "Done [%d/%d]"
msgstr "تمّ [%d/%d]"

#: ../cmdline.py:139
#, python-format
msgid "Installing %s-%s-%s... "
msgstr "جاري تثبيت %s-%s-%s... "

#: ../constants.py:73
#, python-format
msgid ""
"An unhandled exception has occurred.  This is most likely a bug.  Please "
"copy the full text of this exception or save the crash dump to a floppy then "
"file a detailed bug report against anaconda at %s"
msgstr ""
"حدث استثناء غير معالج.  على الأرجح أنّ هذا عَيْب برمجي.  رجاءً انسخ النّصّ الكامل "
"لهذا الاستثناء أو احفظ مخرجات الخلل في قرص مرن ثمّ أرسل تقرير عَيْب برمجيّ مفصّل "
"بخصوص anaconda على %s"

#: ../constants.py:80
#, python-format
msgid ""
"An unhandled exception has occurred.  This is most likely a bug.  Please "
"copy the full text of this exception and file a detailed bug report against "
"anaconda at %s"
msgstr ""
"حدث استثناء غير معالج.  على الأرجح أنّ هذا عَيْب برمجي.  رجاءً انسخ النّصّ الكامل "
"لهذا الاستثناء أو أرسل تقرير عَيْب برمجيّ مفصّل بخصوص  anaconda على %s"

#: ../exception.py:232 ../gui.py:546 ../text.py:226
msgid "Exception Occurred"
msgstr "حدث استثناء"

#: ../exception.py:300
msgid "Dump Written"
msgstr "كتبت مخرجات الخلل"

#: ../exception.py:301
msgid ""
"Your system's state has been successfully written to the floppy. Your system "
"will now be reset."
msgstr "تمّت كتابة حالة نظامك بنجاح إلى القرص المرن. سوف يتمّ الآن إعادة تشغيل نظامك."

#: ../firewall.py:54
msgid "Remote Login (SSH)"
msgstr "الدّخول عن بعد (SSH)"

#: ../firewall.py:55
msgid "Web Server (HTTP, HTTPS)"
msgstr "ملقم وب (HTTP, HTTPS)"

#: ../firewall.py:56
msgid "File Transfer (FTP)"
msgstr "نقل الملفّات (FTP)"

#: ../firewall.py:58
msgid "Mail Server (SMTP)"
msgstr "خادم البريد (SMTP)"

#: ../floppy.py:103
msgid "Unable to make boot floppy"
msgstr "لم يمكن عمل قرص الإقلاع المرن"

#: ../floppy.py:104
msgid ""
"The size of the kernel modules needed for your machine make it impossible to "
"create a boot disk that will fit on a floppy diskette."
msgstr ""
"حجم وحدات النّواة المطلوب لجهازك يجعل من المستحيل إنشاء قرص إقلاع بحيث يمكن "
"حفظه في قرص مرن."

#: ../floppy.py:113
msgid "Insert a floppy disk"
msgstr "أدخل قرصاً مرناً"

#: ../floppy.py:114
msgid ""
"Please remove any diskettes from the floppy drive, and insert the floppy "
"diskette that is to contain the boot disk.\n"
"\n"
"All data will be ERASED during creation of the boot disk."
msgstr ""
"رجاء ازل أي أقراص مرنة من السّوّاقة، وأدخل القرص المرن الذي يحتوي قرص "
"الإقلاع.\n"
"\n"
"سيتمّ إزالة كلّ البيانات خلال إنشاء قرص الإقلاع."

#: ../floppy.py:118 ../packages.py:456
msgid "_Cancel"
msgstr "ا_لغاء"

#: ../floppy.py:118
msgid "_Make boot disk"
msgstr "ا_نشئ قرص إقلاع"

#: ../floppy.py:129 ../floppy.py:154 ../floppy.py:169 ../floppy.py:200
#: ../fsset.py:607 ../fsset.py:1349 ../fsset.py:1387 ../fsset.py:1398
#: ../fsset.py:1448 ../fsset.py:1459 ../fsset.py:1494 ../fsset.py:1544
#: ../fsset.py:1588 ../fsset.py:1607 ../harddrive.py:165 ../image.py:154
#: ../image.py:192 ../image.py:328 ../image.py:532 ../packages.py:162
#: ../packages.py:175 ../packages.py:184 ../packages.py:196 ../packages.py:432
#: ../packages.py:630 ../packages.py:729 ../partIntfHelpers.py:403
#: ../partedUtils.py:661 ../upgrade.py:359 ../upgrade.py:384 ../upgrade.py:411
#: ../iw/osbootwidget.py:216 ../iw/osbootwidget.py:225
#: ../iw/raid_dialog_gui.py:605 ../iw/raid_dialog_gui.py:644
#: ../textw/fdasd_text.py:73 ../textw/upgrade_text.py:165
#: ../textw/upgrade_text.py:172 ../loader2/cdinstall.c:137
#: ../loader2/cdinstall.c:451 ../loader2/driverdisk.c:339
#: ../loader2/driverdisk.c:377 ../loader2/driverdisk.c:404
#: ../loader2/driverdisk.c:476 ../loader2/hdinstall.c:106
#: ../loader2/hdinstall.c:159 ../loader2/hdinstall.c:217
#: ../loader2/hdinstall.c:435 ../loader2/hdinstall.c:538
#: ../loader2/hdinstall.c:581 ../loader2/hdinstall.c:594
#: ../loader2/kickstart.c:273 ../loader2/lang.c:103 ../loader2/loader.c:332
#: ../loader2/loader.c:691 ../loader2/mediacheck.c:329
#: ../loader2/mediacheck.c:386 ../loader2/method.c:156 ../loader2/method.c:373
#: ../loader2/method.c:458 ../loader2/nfsinstall.c:201
#: ../loader2/nfsinstall.c:210 ../loader2/telnetd.c:84
#: ../loader2/urlinstall.c:67 ../loader2/urlinstall.c:139
#: ../loader2/urlinstall.c:152 ../loader2/urls.c:172 ../loader2/urls.c:182
#: ../loader2/urls.c:191 ../loader2/urls.c:322 ../loader2/urls.c:327
msgid "Error"
msgstr "خطأ"

#: ../floppy.py:130 ../floppy.py:155
msgid ""
"An error occurred while making the boot disk. Please make sure that there is "
"a floppy in the first floppy drive."
msgstr ""
"حدث خطأ خلال إنشاء قرص الإقلاع. رجاء تأكّد من أنّه هناك قرص مرن في سوّاقة "
"الأقراص المرنة الأولى."

#: ../floppy.py:141
msgid "Creating"
msgstr "جاري الإنشاء"

#: ../floppy.py:141
msgid "Creating boot disk..."
msgstr "جاري إنشاء قرص إقلاع"

#: ../floppy.py:170
msgid ""
"An error occurred while attempting to verify the boot disk.  Please make "
"sure that you have a good floppy in the first floppy drive."
msgstr ""
"حدث خطأ خلال محاولة التّحقّق من قرص الإقلاع. رجاء تأكّد من أنّه لديك قرص مرن جيّد "
"في سوّاقة الأقراص المرنة الأولى."

#: ../floppy.py:201
msgid ""
"Your boot floppy appears to be invalid.  This is likely due to a bad "
"floppy.  Please make sure that you have a good floppy in the first floppy "
"drive."
msgstr ""
"يبدو أن قرص الإقلاع غير صالح. غالباً ما يكون هذا بسبب قرص مرن سيّء. رجاءً تأكّد "
"من أنّه لديك قرص مرن جيّد في سوّاقة الأقراص المرنة الأولى."

#: ../fsset.py:182
msgid "Checking for Bad Blocks"
msgstr "جاري تفحّص وجود كتل سيّئة"

#: ../fsset.py:183
#, python-format
msgid "Checking for bad blocks on /dev/%s..."
msgstr "جاري تفحّص وجود كتل سيّئة على /dev/%s..."

#: ../fsset.py:608
#, python-format
msgid ""
"An error occurred migrating %s to ext3.  It is possible to continue without "
"migrating this file system if desired.\n"
"\n"
"Would you like to continue without migrating %s?"
msgstr ""
"حدث حطأ خلال ترحيل %s إلى ext3.  من الممكن الاستمرار دون ترحيل نظام الملفّات "
"هذا إن رغبت.\n"
"\n"
"هل تودّ الاستمرار دون ترحيل %s؟"

#: ../fsset.py:1257
msgid "RAID Device"
msgstr "جهاز RAID"

#: ../fsset.py:1261 ../fsset.py:1267
msgid "Apple Bootstrap"
msgstr "Apple Bootstrap"

#: ../fsset.py:1272 ../partitions.py:869
msgid "PPC PReP Boot"
msgstr "إقلاع PPC PReP"

#: ../fsset.py:1275
msgid "First sector of boot partition"
msgstr "القطاع الأوّل من قسم الإقلاع"

#: ../fsset.py:1276
msgid "Master Boot Record (MBR)"
msgstr "سجلّ الإقلاع الرّئيسي (MBR)"

#: ../fsset.py:1350
#, python-format
msgid ""
"An error occurred trying to initialize swap on device %s.  This problem is "
"serious, and the install cannot continue.\n"
"\n"
"Press <Enter> to reboot your system."
msgstr ""
"حدث خطأ خلال ابتداء الذّاكرة البديلة على الجهاز %s.  هذه المشكلة جادّة، ولا "
"يمكن للتّثبيت الاستمرار.\n"
"\n"
"إضغط <Enter> لتعيد تشغيل نظامك."

#: ../fsset.py:1388
#, python-format
msgid ""
"Error enabling swap device %s: %s\n"
"\n"
"The /etc/fstab on your upgrade partition does not reference a valid swap "
"partition.\n"
"\n"
"Press OK to reboot your system."
msgstr ""
"وقع خطأ في تمكين جهاز الذّاكرة البديلة %s: %s\n"
"\n"
"ملف /etc/fstab لا يشير إلى جزء ذّاكرة بديلة صحيح.\n"
"\n"
"اضغط موافق لإعادة تشغيل نظامك."

#: ../fsset.py:1399
#, python-format
msgid ""
"Error enabling swap device %s: %s\n"
"\n"
"This most likely means this swap partition has not been initialized.\n"
"\n"
"Press OK to reboot your system."
msgstr ""
"خطأ في تمكين جهاز الذّاكرة البديلة %s: %s\n"
"\n"
"يبدو أنّ هذا يعني أنّ قسم الذّاكرة البديلة لم يُبتدأ.\n"
"\n"
"اضغط موافق لتعيد تشغيل نظامك."

#: ../fsset.py:1449
#, python-format
msgid ""
"Bad blocks have been detected on device /dev/%s. We do not recommend you use "
"this device.\n"
"\n"
"Press <Enter> to reboot your system"
msgstr ""
"تم اكتشاف كتل سيّئة على الجهاز /dev/%s. يستحسن عدم استخدامك لهذا الجهاز.\n"
"\n"
"إضغط <Enter> لتعيد تشغيل نظامك"

#: ../fsset.py:1460
#, python-format
msgid ""
"An error occurred searching for bad blocks on %s.  This problem is serious, "
"and the install cannot continue.\n"
"\n"
"Press <Enter> to reboot your system."
msgstr ""
"حدث خطأ في البحث عن الكتل السيّئة على %s.  هذه المشكلة جادّة، ولا يمكن للتّثبيت "
"أن يستمرّ.\n"
"\n"
"إضغط <Enter> لتعيد تشغيل نظامك."

#: ../fsset.py:1495
#, python-format
msgid ""
"An error occurred trying to format %s.  This problem is serious, and the "
"install cannot continue.\n"
"\n"
"Press <Enter> to reboot your system."
msgstr ""
"حدث خطأ خلال محاولة تنسيق %s.  هذه المشكلة جادّة، ولا يمكن أن يستمرّ التّثبيت.\n"
"إضغط <Enter> لتعيد تشغيل نظامك."

#: ../fsset.py:1545
#, python-format
msgid ""
"An error occurred trying to migrate %s.  This problem is serious, and the "
"install cannot continue.\n"
"\n"
"Press <Enter> to reboot your system."
msgstr ""
"حدث خطأ خلال ترحيل %s.  هذه المشكلة جادّة، ولا يمكن أن يستمرّ التّثبيت.\n"
"\n"
"إضغط <Enter> لتعيد تشغيل نظامك."

#: ../fsset.py:1566 ../fsset.py:1575
msgid "Invalid mount point"
msgstr "نقطة تجهيز غير صالحة"

#: ../fsset.py:1567
#, python-format
msgid ""
"An error occurred when trying to create %s.  Some element of this path is "
"not a directory. This is a fatal error and the install cannot continue.\n"
"\n"
"Press <Enter> to reboot your system."
msgstr ""
"حدث خطأ خلال محاولة إنشاء %s.  عنصر ما من هذا المسار ليس دليلاً. هذا خطأ فادح "
"ولا يمكن أن يستمرّ التّثبيت.\n"
"\n"
"إضغط <Enter> لتعيد تشغيل نظامك."

#: ../fsset.py:1576
#, python-format
msgid ""
"An error occurred when trying to create %s: %s.  This is a fatal error and "
"the install cannot continue.\n"
"\n"
"Press <Enter> to reboot your system."
msgstr ""
"حدث خطأ خلال محاولة إنشاء %s: %s.  هذا خطأ فادح و لا يمكن أن يستمرّ التّثبيت.\n"
"\n"
"إضغط <Enter> لتعيد تشغيل نظامك."

#: ../fsset.py:1589
#, python-format
msgid ""
"Error mounting device %s as %s: %s\n"
"\n"
"This most likely means this partition has not been formatted.\n"
"\n"
"Press OK to reboot your system."
msgstr ""
"خطأ خلال تجهيز الجهاز %s على شكل %s: %s\n"
"\n"
"يبدو أنّ هذا يعني أنّ هذا التّجزيء لم يتمّ تنسيقه.\n"
"\n"
"اضغط موافق لتعيد تشغيل نظامك."

#: ../fsset.py:1608
msgid ""
"Error finding / entry.\n"
"\n"
"This is most likely means that your fstab is incorrect.\n"
"\n"
"Press OK to reboot your system."
msgstr ""
"وقع خطأ في أثناء البحث عن المدخل.\n"
"\n"
"هذا يعني في الغالب أنّ ملف fstab غير صحيح.\n"
"\n"
"اضغط موافق لإعادة تشغيل نظامك."

#: ../fsset.py:2272
msgid "Duplicate Labels"
msgstr "عناوين متكرّرة"

#: ../fsset.py:2273
#, python-format
msgid ""
"Multiple devices on your system are labelled %s.  Labels across devices must "
"be unique for your system to function properly.\n"
"\n"
"Please fix this problem and restart the installation process."
msgstr ""
"هناك عدّة أجهزة على نظامك معنونة %s.  العناوين الخاصّة بالأجهزة يجب أن تكون "
"فريدة كي يستطيع نظامك العمل بشكل ملائم.\n"
"\n"
"رجاء صحّح هذه المشكلة وأعد تشغيل عمليّة التّثبيت."

#: ../fsset.py:2280 ../gui.py:727 ../gui.py:1183 ../image.py:96
#: ../image.py:485 ../packages.py:457 ../packages.py:1560
#: ../iw/confirm_gui.py:67 ../iw/confirm_gui.py:101
#: ../textw/confirm_text.py:38 ../textw/confirm_text.py:66
msgid "_Reboot"
msgstr "ا_عد التّشغيل"

#: ../fsset.py:2534
msgid "Formatting"
msgstr "جاري التّنسيق"

#: ../fsset.py:2535
#, python-format
msgid "Formatting %s file system..."
msgstr "تهيئة نظام الملفّات %s..."

#: ../gui.py:107
msgid "An error occurred copying the screenshots over."
msgstr "حدث خطأ في نسخ لقطات الشّاشة."

#: ../gui.py:119
msgid "Screenshots Copied"
msgstr "تمّ نسخ لقطات الشّاشة"

#: ../gui.py:120
msgid ""
"The screenshots have been saved into the directory:\n"
"\n"
"\t/root/anaconda-screenshots/\n"
"\n"
"You can access these when you reboot and login as root."
msgstr ""
"تم حفظ لقطات الشّاشة في الدليل:\n"
"\n"
"\t/root/anaconda-screenshots/\n"
"\n"
"يمكنك الوصول إليها عندما تعيد التّشغيل وتسجّل الدخول كمستخدم جذري."

#: ../gui.py:164
msgid "Saving Screenshot"
msgstr "جاري حفظ لقطة الشّاشة"

#: ../gui.py:165
#, python-format
msgid "A screenshot named '%s' has been saved."
msgstr "تمّ حفظ لقطة شاشة باسم '%s'."

#: ../gui.py:168
msgid "Error Saving Screenshot"
msgstr "خطأ في حفظ لقطة الشّاشة"

#: ../gui.py:169
msgid ""
"An error occurred while saving the screenshot.  If this occurred during "
"package installation, you may need to try several times for it to succeed."
msgstr ""
"حدث خطأ خلال حفظ لقطة الشّاشة. إذا حدث هذا خلال تثبيت الحزم، عليك التجريب عدّة "
"مرّات حتّى ينجح ذلك."

#: ../gui.py:238 ../text.py:321
msgid "Fix"
msgstr "أصْلح"

#: ../gui.py:239 ../rescue.py:180 ../text.py:322 ../textw/bootdisk_text.py:22
#: ../textw/bootloader_text.py:70 ../textw/constants_text.py:48
#: ../textw/upgrade_text.py:254 ../loader2/driverdisk.c:519
#: ../loader2/driverdisk.c:530 ../loader2/hdinstall.c:330
#: ../loader2/loader.c:363
msgid "Yes"
msgstr "نعم"

#: ../gui.py:240 ../rescue.py:180 ../rescue.py:182 ../text.py:323
#: ../textw/bootdisk_text.py:22 ../textw/bootdisk_text.py:35
#: ../textw/bootloader_text.py:70 ../textw/constants_text.py:52
#: ../textw/upgrade_text.py:254 ../textw/upgrade_text.py:261
#: ../loader2/driverdisk.c:519 ../loader2/driverdisk.c:530
#: ../loader2/loader.c:363
msgid "No"
msgstr "لا"

#: ../gui.py:242 ../text.py:325 ../loader2/net.c:274 ../loader2/net.c:587
msgid "Retry"
msgstr "أعد المحاولة"

#: ../gui.py:243 ../text.py:326
msgid "Ignore"
msgstr "تجاهل"

#: ../gui.py:244 ../gui.py:638 ../partIntfHelpers.py:233
#: ../partIntfHelpers.py:526 ../text.py:111 ../text.py:112 ../text.py:283
#: ../text.py:285 ../text.py:327 ../iw/bootloader_advanced_gui.py:48
#: ../iw/bootloader_main_gui.py:96 ../textw/bootloader_text.py:200
#: ../textw/constants_text.py:40 ../textw/userauth_text.py:88
#: ../loader2/dirbrowser.c:139 ../loader2/driverdisk.c:270
#: ../loader2/loader.c:321
msgid "Cancel"
msgstr "إلغاء"

#: ../gui.py:547 tmp/anaconda.glade.h:4
msgid "_Debug"
msgstr "ا_صلح العيب"

#: ../gui.py:549
msgid "_Save to floppy"
msgstr "_حفظ على قرص مرن"

#: ../gui.py:722 ../text.py:269
#, python-format
msgid ""
"The following error was found while parsing your kickstart configuration:\n"
"\n"
"%s"
msgstr ""
"وجد الخطأ التّالي عند تحليل تهيئة kickstart الخاصّة بك:\n"
"\n"
"%s"

#: ../gui.py:724 ../text.py:271
msgid "Error Parsing Kickstart Config"
msgstr "خطأ عند تحليل ملف إعدادات Kickstart "

#: ../gui.py:732 ../text.py:281
msgid ""
"Please insert a floppy now. All contents of the disk will be erased, so "
"please choose your diskette carefully."
msgstr ""
"الرجاء إدخال قرص مرن الآن. سوف تحذف جميع محتويات القرص، لذا رجاء اختر القرص "
"بحذر."

#: ../gui.py:847
msgid "default:LTR"
msgstr "افتراض: من اليسار إلى اليمين (LTR)"

#: ../gui.py:915 ../iw/release_notes_viewer_gui.py:44
msgid "Release notes are missing.\n"
msgstr "ملاحظات الإصدارة مفقودة.\n"

#: ../gui.py:1071
msgid "The release notes are missing."
msgstr "ملاحظات الإصدارة مفقودة."

#: ../gui.py:1170
msgid "Error!"
msgstr "خطأ!"

#: ../gui.py:1171
#, python-format
msgid ""
"An error occurred when attempting to load an installer interface component.\n"
"\n"
"className = %s"
msgstr ""
"حدث خطأ خلال محاولة تحميل مكوّن واجهة التّثبيت.\n"
"\n"
"className = %s"

#: ../gui.py:1175 ../gui.py:1180 ../packages.py:190 ../packages.py:201
#: ../packages.py:635 ../packages.py:1552 ../packages.py:1557
msgid "_Exit"
msgstr "ا_خرج"

#: ../gui.py:1176 ../packages.py:444
msgid "_Retry"
msgstr "ا_عد المحاولة"

#: ../gui.py:1179 ../packages.py:1556
msgid "The installer will now exit..."
msgstr "المثبّت سيخرج الآن"

#: ../gui.py:1182 ../packages.py:1559
msgid "Your system will now be rebooted..."
msgstr "سوف يتمّ الآن إعادة تشغيل نظامك..."

#: ../gui.py:1185 ../packages.py:1561
msgid "Rebooting System"
msgstr "جاري إعادة تشغيل النّظام"

#: ../gui.py:1266
#, python-format
msgid "%s Installer"
msgstr "مُثبّت %s"

#: ../gui.py:1274
msgid "Unable to load title bar"
msgstr "لم يمكن تحميل سطر العنوان"

#: ../gui.py:1335
msgid "Install Window"
msgstr "نافذة التثبيت"

#: ../harddrive.py:166 ../image.py:533
#, python-format
msgid ""
"The following ISO images are missing which are required for the install:\n"
"\n"
"%s\n"
"The system will now reboot."
msgstr ""
"صور ISO التّالية مفقودة وهي مطلوبة للتثبيت:\n"
"\n"
"%s\n"
"سوف يقوم النّظام بإعادة التّشغيل الآن."

#: ../hdrlist.py:45 ../hdrlist.py:948
msgid ""
"This group includes all the packages available.  Note that there are "
"substantially more packages than just the ones in all the other package "
"groups on this page."
msgstr ""
"هذه المجموعة تتضمّن كلّ الحزم المتوفّرة.  لاحظ أن هناك فعليّاً حزم أكثر من تلك "
"التي في كلّ مجموعات الحزم في هذه الصّفحة."

#: ../hdrlist.py:788
msgid "Everything"
msgstr "كلّ شيء"

#: ../hdrlist.py:952
msgid ""
"Choose this group to get the minimal possible set of packages.  Useful for "
"creating small router/firewall boxes, for example."
msgstr ""
"اختر هذه المجموعة لتحصل على أقل مجموعة ممكنة من الحزم .  يفيد هذا بإنشاء "
"أجهزة راوتر/جدار ناري، على سبيل المثال."

#: ../hdrlist.py:1001
msgid "Miscellaneous"
msgstr "متنوّعات"

#: ../image.py:87
msgid "Required Install Media"
msgstr "وسط التثبيت مطلوب"

#: ../image.py:88
#, python-format
msgid ""
"The software you have selected to install will require the following CDs:\n"
"\n"
"%s\n"
"Please have these ready before proceeding with the installation.  If you "
"need to abort the installation and reboot please select \"Reboot\"."
msgstr ""
"البرامج التي اخترت تثبيتها تتطلّب الأقراص المدمجة التّالية:\n"
"\n"
"%s\n"
"رجاء أبقها جاهزة قبل الاستمرار بالتثبيت. إن احتجت أن تجهض التثبيت وتعيد "
"التّشغيل رجاء اختر \"أعد التّشغيل\"."

#: ../image.py:96 ../packages.py:1557 ../packages.py:1560
#: ../iw/confirm_gui.py:67 ../iw/confirm_gui.py:101
#: ../textw/confirm_text.py:38 ../textw/confirm_text.py:66
#: ../textw/firewall_text.py:120
msgid "_Back"
msgstr "ال_سّابق"

#: ../image.py:96 ../image.py:486 ../kickstart.py:1507 ../kickstart.py:1535
#: ../iw/partition_gui.py:1009
msgid "_Continue"
msgstr "ا_ستمر"

#: ../image.py:155
#, python-format
msgid ""
"An error occurred unmounting the CD.  Please make sure you're not accessing %"
"s from the shell on tty2 and then click OK to retry."
msgstr ""
"حدث خطأ خلال إزالة تجهيز القرص المدمج.  رجاءً تأكّد أنّك لا تستخدم %s من سطر "
"الأوامر على tty2 ثم اضغط على موافق لتعيد المحاولة."

#: ../image.py:188
msgid "Copying File"
msgstr "جاري نسخ الملف"

#: ../image.py:189
msgid "Transferring install image to hard drive..."
msgstr "جاري نقل صورة التثبيت إلى القرص الصّلب..."

#: ../image.py:193
msgid ""
"An error occurred transferring the install image to your hard drive. You are "
"probably out of disk space."
msgstr "حدث خطأ في نقل صورة التثبيت إلى قرصك الصّلب. على ما يبدو أنّ مساحة القرص نفذت."

#: ../image.py:286
msgid "Change CDROM"
msgstr "بدّل القرص المدمج"

#: ../image.py:287
#, python-format
msgid "Please insert %s disc %d to continue."
msgstr "من فضلك أدخل قرص %s رقم %d للمتابعة.."

#: ../image.py:322
msgid "Wrong CDROM"
msgstr "قرص مدمج خطأ"

#: ../image.py:323
#, python-format
msgid "That's not the correct %s CDROM."
msgstr "ليس هذا هو قرص %s الصّحيح."

#: ../image.py:329
msgid "Unable to access the CDROM."
msgstr "لم أتمكّن من التّوصّل إلى القرص المدمج."

#: ../installclass.py:61
msgid "Install on System"
msgstr "ثبّت على النّظام"

#: ../kickstart.py:102
msgid "Scriptlet Failure"
msgstr "فشلت المخطوطة"

#: ../kickstart.py:103
#, python-format
msgid ""
"There was an error running the scriptlet.  You may examine the output in %"
"s.  This is a fatal error and your install will be aborted.\n"
"\n"
"Press the OK button to reboot your system."
msgstr ""
"وفع خطأ في تشغيل المخطوطة. يمكنك الاطلاع على المخرجات من خلال %s.    هذا خطأ "
"حرج و سوف يتم العدول عن التثبيت.  .\n"
"\n"
"اضغط زرّ موافق لإعادة تشغيل جهازك."

#: ../kickstart.py:1499
msgid "Missing Package"
msgstr "حزمة مفقودة"

#: ../kickstart.py:1500
#, python-format
msgid ""
"You have specified that the package '%s' should be installed.  This package "
"does not exist. Would you like to continue or abort your installation?"
msgstr ""
"لقد حدّدت أنّ الحزمة '%s' يجب تثبيتها. هذه الحزمة غير موجودة. هل تريد "
"الاستمرار أو إجهاض التّثبيت؟"

#: ../kickstart.py:1506 ../kickstart.py:1534
msgid "_Abort"
msgstr "ا_جهض"

#: ../kickstart.py:1526
msgid "Missing Group"
msgstr "مجموعة مفقودة"

#: ../kickstart.py:1527
#, python-format
msgid ""
"You have specified that the group '%s' should be installed.  This group does "
"not exist. Would you like to continue or abort your installation?"
msgstr ""
"لقد حدّدت أنّ المجموعة '%s' يجب أن تُثبّت. هذه المجموعة غير موجودة. هل تودّ "
"الاستمرار أو إجهاض التثبيت؟"

#: ../network.py:42
msgid "Hostname must be 64 or less characters in length."
msgstr "يجب أن يكون طول اسم المضيف 64 حرفاً أو أقل."

#: ../network.py:45
msgid "Hostname must start with a valid character in the range 'a-z' or 'A-Z'"
msgstr "يجب أن يبدأ اسم المضيف بحرف صالح من المدى 'a-z' أو 'A-Z'"

#: ../network.py:50
msgid "Hostnames can only contain the characters 'a-z', 'A-Z', '-', or '.'"
msgstr "يمكن لاسم المضيف أن يحتوي فقط الأحرف 'a-z'، 'A-Z'، '-'، أو '.'"

#: ../packages.py:46 ../iw/package_gui.py:41
msgid "Proceed with upgrade?"
msgstr "هل أستمر بالتّحديث؟"

#: ../packages.py:47 ../iw/package_gui.py:42
msgid ""
"The file systems of the Linux installation you have chosen to upgrade have "
"already been mounted. You cannot go back past this point. \n"
"\n"
msgstr ""
"أنظمة الملفّات الخاصّة بتثبيت لينكس التي اخترت تحديثها تمّ تجهيزها مسبقاً. لا "
"يمكنك العودة قبل هذه النّقطة. \n"
"\n"

#: ../packages.py:51 ../iw/package_gui.py:46
msgid "Would you like to continue with the upgrade?"
msgstr "هل تريد الاستمرار بالتّحديث؟"

#: ../packages.py:156
msgid "Reading"
msgstr "جاري القراءة"

#: ../packages.py:156
msgid "Reading package information..."
msgstr "جاري قراءة معلومات الحزمة..."

#: ../packages.py:163
msgid ""
"Unable to read header list.  This may be due to a missing file or bad "
"media.  Press <return> to try again."
msgstr ""
"لم يمكن قراءة لائحة التّرويسات. قد يكون هذا بسبب الملف المفقود أو القرص "
"السّيّء. اضغط <enter> لتحاول مرّة أخرى."

#: ../packages.py:176
msgid ""
"Unable to read comps file.  This may be due to a missing file or bad media.  "
"Press <return> to try again."
msgstr ""
"لم يمكن قراءة ملف comps. قد يكون هذا بسبب ملف مفقود أو قرص سيّء. اضغط "
"<return> لتحاول مرّة أخرى."

#: ../packages.py:185
msgid ""
"The comps file in your installation tree is missing critical groups.  Please "
"ensure that your install tree has been correctly generated."
msgstr ""
"ملف comps المرفق بشجرة التثبيت الخاصة بكم ينقصه فئات حرجة. رجاء التأكد من "
"صحة إنشاء شجرة التثبيت."

#: ../packages.py:197 ../packages.py:631
#, python-format
msgid ""
"You are trying to install on a machine which isn't supported by this release "
"of %s."
msgstr "أنت تحاول التثبيت على جهاز غير مدعوم من قبل هذه الإصدارة من %s."

#: ../packages.py:311
msgid "Dependency Check"
msgstr "التّحقّق من المعتمدات"

#: ../packages.py:312
msgid "Checking dependencies in packages selected for installation..."
msgstr "جاري التّحقّق من المعتمدات في الحزم المحدّدة للتثبيت..."

#: ../packages.py:373 ../packages.py:864
msgid "Processing"
msgstr "جاري المعالجة"

#: ../packages.py:374
msgid "Preparing to install..."
msgstr "جاري التّجهيز للتثبيت..."

#: ../packages.py:433
#, python-format
msgid ""
"The package %s-%s-%s cannot be opened. This is due to a missing file or "
"perhaps a corrupt package.  If you are installing from CD media this usually "
"means the CD media is corrupt, or the CD drive is unable to read the media.\n"
"\n"
"Press <return> to try again."
msgstr ""
"الحزمة %s-%s-%s لا يمكن فتحها. هذا بسبب الملف المفقود أو ربّما الحزمة فاسدة.  "
"إن كنت تقوم بالتثبيت من وسط قرص مدمج عادة يعني هذا أن القرص فاسد، أو أن قارئ "
"الأقراص المدمجة غير قادر على قراءة القرص.\n"
"\n"
"اضغط <return> لتحاول مرّة أخرى."

#: ../packages.py:443
msgid "Re_boot"
msgstr "أعد التّشغيل"

#: ../packages.py:447
msgid ""
"If you reboot, your system will be left in an inconsistent state that will "
"likely require reinstallation.  Are you sure you wish to continue?"
msgstr ""
"إذا قمت بإعادة التشغيل سيظل نظامك في حالة مضطربة قد تتطلب إعادة تثبيته. هل "
"تريد الاستمرار فعلا ؟"

#: ../packages.py:461
msgid "Installing..."
msgstr "جاري التثبيت..."

#: ../packages.py:482
msgid "Error Installing Package"
msgstr "خطأ في تثبيت الحزمة"

#: ../packages.py:483
#, python-format
msgid ""
"There was an error installing %s.  This can indicate media failure, lack of "
"disk space, and/or hardware problems.  This is a fatal error and your "
"install will be aborted.  Please verify your media and try your install "
"again.\n"
"\n"
"Press the OK button to reboot your system."
msgstr ""
"كان هناك خطأ في تثبيت %s.  يمكن أن يشير هذا إلى فشل في الوسط، قلّة مساحة "
"القرص، و/أو مشاكل عتاد.  هذا خطأ حرج و سوف يتم إجهاض التثبيت.  رجاءً تحقّق من "
"الوسط وحاول التثبيت مجدّداً.\n"
"\n"
"اضغط زرّ موافق لإعادة تشغيل جهازك."

#: ../packages.py:730 ../upgrade.py:360
msgid ""
"Unable to merge header list.  This may be due to a missing file or bad "
"media.  Press <return> to try again."
msgstr ""
"لم يمكن قراءة لائحة دمج التّرويسات. قد يكون هذا بسبب ملف مفقود أو قرص سيّء. "
"اضغط <return> لتحاول مرّة أخرى."

#: ../packages.py:865
msgid "Preparing RPM transaction..."
msgstr "جاري تحضير عمليّة RPM..."

#: ../packages.py:955
#, python-format
msgid ""
"Upgrading %s packages\n"
"\n"
msgstr ""
"جاري تحديث حزم %s \n"
"\n"

#: ../packages.py:957
#, python-format
msgid ""
"Installing %s packages\n"
"\n"
msgstr ""
"جاري تثبيت حزم %s \n"
"\n"

#: ../packages.py:965 ../packages.py:1265
#, python-format
msgid "Upgrading %s-%s-%s.%s.\n"
msgstr "جاري تحديث %s-%s-%s.%s.\n"

#: ../packages.py:967 ../packages.py:1267
#, python-format
msgid "Installing %s-%s-%s.%s.\n"
msgstr "جاري تثبيت %s-%s-%s.%s.\n"

#: ../packages.py:983
#, python-format
msgid ""
"\n"
"\n"
"The following packages were automatically\n"
"selected to be installed:\n"
"%s\n"
"\n"
msgstr ""
"\n"
"\n"
"تمّ تحديد الحزمة التّالية تلقائيّاً\n"
"كي يتمّ تثبيتها:\n"
"%s\n"
"\n"

#: ../packages.py:989
msgid "Install Starting"
msgstr "التثبيت على وشك البدء"

#: ../packages.py:990
msgid "Starting install process.  This may take several minutes..."
msgstr "جاري بدء عمليّة التثبيت، قد يستغرق هذا بضع دقائق..."

#: ../packages.py:1030
msgid ""
"You don't appear to have enough disk space to install the packages you've "
"selected. You need more space on the following file systems:\n"
"\n"
msgstr ""
"لا يبدو أنّه لديك مساحة قرص كافية لتثبيت الحزم التّي اخترتها. تحتاج إلى مساحة "
"إضافيّة على أنظمة الملفّات التالية:\n"
"\n"

#: ../packages.py:1034 ../packages.py:1055 ../iw/lvm_dialog_gui.py:1075
#: ../iw/partition_gui.py:361 ../iw/upgrade_swap_gui.py:148
#: ../textw/partition_text.py:1436 ../textw/upgrade_text.py:111
msgid "Mount Point"
msgstr "مكان التّجهيز"

#: ../packages.py:1035
msgid "Space Needed"
msgstr "بحاجة لمساحة"

#: ../packages.py:1051
msgid ""
"You don't appear to have enough file nodes to install the packages you've "
"selected. You need more file nodes on the following file systems:\n"
"\n"
msgstr ""
"لا يبدو أنه لديك نقاط ملفّات كافية لتثبيت الحزم التي حدّدتها. تحتاج إلى المزيد "
"من نقاط الملفّات على أنظمة الملفّات التّالية:\n"
"\n"

#: ../packages.py:1056
msgid "Nodes Needed"
msgstr "بحاجة للنّقاط"

#: ../packages.py:1067
msgid "Disk Space"
msgstr "مساحة القرص"

#: ../packages.py:1112
msgid "Post Install"
msgstr "ما بعد التثبيت"

#: ../packages.py:1113
msgid "Performing post install configuration..."
msgstr "جاري القيام بإعداد ما بعد التثبيت..."

#: ../packages.py:1291
msgid ""
"\n"
"\n"
"The following packages were available in this version but NOT upgraded:\n"
msgstr ""
"\n"
"\n"
"الحزم التّالية كانت متوفّرة في هذه النّسخة إلا أنها لم تحدّث:\n"

#: ../packages.py:1294
msgid ""
"\n"
"\n"
"The following packages were available in this version but NOT installed:\n"
msgstr ""
"\n"
"\n"
"الحزم التّالية كانت متوفّرة في هذه النّسخة إلا أنّها لم تثبّت:\n"

#: ../packages.py:1538
msgid "Warning! This is pre-release software!"
msgstr "تحذير! هذا برنامج ما قبل الإصدار!"

#: ../packages.py:1539
#, python-format
msgid ""
"Thank you for downloading this pre-release of %s.\n"
"\n"
"This is not a final release and is not intended for use on production "
"systems.  The purpose of this release is to collect feedback from testers, "
"and it is not suitable for day to day usage.\n"
"\n"
"To report feedback, please visit:\n"
"\n"
"   %s\n"
"\n"
"and file a report against '%s'.\n"
msgstr ""
"شكراً لك على تنزيل الإصدار التجريبي من %s.\n"
"\n"
"هذا الإصدار غير نهائيّ ولا يقصد استخدامه في أنظمة الإنتاج.  الغرض من هذا "
"الإصدار جمع آراء المختبرين، ولا يصلح للاستخدام اليومي.\n"
"\n"
"لتزويدنا بتقرير أو ابداء آرائك، الرجاء مراجعة :\n"
"\n"
"   %s\n"
"\n"
"وإضافة تقريراً مقابل '%s'.\n"

#: ../packages.py:1552
msgid "_Install anyway"
msgstr "_قم بالتثبيت على كل حال"

#: ../partIntfHelpers.py:35
msgid "Please enter a volume group name."
msgstr "رجاء أدخل اسم مجموعة الكتل."

#: ../partIntfHelpers.py:39
msgid "Volume Group Names must be less than 128 characters"
msgstr "أسماء مجموعات الكتل يجب أن تكون أقلّ من 128 حرفاً"

#: ../partIntfHelpers.py:42
#, python-format
msgid "Error - the volume group name %s is not valid."
msgstr "خطأ - اسم مجموعة الكتل %s غير صالح."

#: ../partIntfHelpers.py:47
msgid ""
"Error - the volume group name contains illegal characters or spaces.  "
"Acceptable characters are letters, digits, '.' or '_'."
msgstr ""
"خطأ - اسم مجموعة الكتل يحتوي أحرفاً غير شرعيّة أو مسافات. الأحرف المقبولة هي "
"الأبجديّة، الأرقام، '.' أو '_'."

#: ../partIntfHelpers.py:57
msgid "Please enter a logical volume name."
msgstr "رجاء أدخل اسم كتلة منطقي."

#: ../partIntfHelpers.py:61
msgid "Logical Volume Names must be less than 128 characters"
msgstr "أسماء الكتل المنطقيّة يجب أن تكون أقل من 128 حرفاً"

#: ../partIntfHelpers.py:65
#, python-format
msgid "Error - the logical volume name %s is not valid."
msgstr "خطأ - اسم الكتلة المنطقيّة %s هو غير صالح."

#: ../partIntfHelpers.py:71
msgid ""
"Error - the logical volume name contains illegal characters or spaces.  "
"Acceptable characters are letters, digits, '.' or '_'."
msgstr ""
"خطأ - اسم الكتلة المنطقيّة يحتوي أحرفاً غير شرعيّة أو مسافات. الأحرف المقبولة "
"هي الأبجديّة، الأرقام، '.' أو '_'."

#: ../partIntfHelpers.py:95
msgid ""
"The mount point is invalid.  Mount points must start with '/' and cannot end "
"with '/', and must contain printable characters and no spaces."
msgstr ""
"مكان التّجهز غير صالح.  يجب أن تبدأ أماكن التّجهيز بعلامة '/' و لم يمكن أن "
"تنتهي بعلامة '/'، ويجب أن تتضمّن أحرفاً مطبوعة ودون مسافات."

#: ../partIntfHelpers.py:102
msgid "Please specify a mount point for this partition."
msgstr "رجاء حدّد نقطة تجهيز لهذا التّجزيء."

#: ../partIntfHelpers.py:110
msgid "This partition is holding the data for the hard drive install."
msgstr "هذا التّجزيء يحتوي بيانات التثبيت من القرص الصّلب."

#: ../partIntfHelpers.py:116
#, python-format
msgid "This partition is part of the RAID device /dev/md%s."
msgstr "هذا التّجزيء هو جزء من جهاز RAID /dev/md%s."

#: ../partIntfHelpers.py:119
msgid "This partition is part of a RAID device."
msgstr "هذا التّجزيء هو جزء من جهاز RAID."

#: ../partIntfHelpers.py:124
#, python-format
msgid "This partition is part of the LVM volume group '%s'."
msgstr "هذا التّجزيء هو جزء من مجموع الكتل LVM '%s'."

#: ../partIntfHelpers.py:127
msgid "This partition is part of a LVM volume group."
msgstr "هذا التّجزيء هو جزء من مجموعة كتل LVM."

#: ../partIntfHelpers.py:142 ../partIntfHelpers.py:150
#: ../partIntfHelpers.py:157 ../partIntfHelpers.py:167
#: ../partIntfHelpers.py:184
msgid "Unable To Delete"
msgstr "لم يمكن الحذف"

#: ../partIntfHelpers.py:143
msgid "You must first select a partition to delete."
msgstr "يجب عليك أن تحدّد تجزيئً لحذفه أوّلاً."

#: ../partIntfHelpers.py:151
msgid "You cannot delete free space."
msgstr "لا يمكنك حذف المساحة الفارغة."

#: ../partIntfHelpers.py:158
msgid "You cannot delete a partition of a LDL formatted DASD."
msgstr "لا يمكنك حذف قسم من DASD منسّق بشكل LDL."

#: ../partIntfHelpers.py:168
#, python-format
msgid ""
"You cannot delete this partition, as it is an extended partition which "
"contains %s"
msgstr "لا يمكنك حذف هذا القسم، حيث أنه قسم ممتدّ وهو يحتوي %s"

#: ../partIntfHelpers.py:185
msgid ""
"You cannot delete this partition:\n"
"\n"
msgstr ""
"لا يمكنك حذف هذا التّجزيء:\n"
"\n"

#: ../partIntfHelpers.py:229 ../partIntfHelpers.py:525
#: ../iw/lvm_dialog_gui.py:743
msgid "Confirm Delete"
msgstr "أكّد الحذف"

#: ../partIntfHelpers.py:230
#, python-format
msgid "You are about to delete all partitions on the device '/dev/%s'."
msgstr "أنت على وشك حذف كلّ التّجزيئات على الجهاز '/dev/%s'."

#: ../partIntfHelpers.py:233 ../partIntfHelpers.py:526
#: ../iw/lvm_dialog_gui.py:746 ../iw/lvm_dialog_gui.py:1098
#: ../iw/osbootwidget.py:104 ../iw/partition_gui.py:1356
msgid "_Delete"
msgstr "ا_حذف"

#: ../partIntfHelpers.py:291
msgid "Notice"
msgstr "ملاحظة"

#: ../partIntfHelpers.py:292
#, python-format
msgid ""
"The following partitions were not deleted because they are in use:\n"
"\n"
"%s"
msgstr ""
"لم يتمّ حذف التجزيئات التالية لأنّها قيد الاستخدام:\n"
"\n"
"%s"

#: ../partIntfHelpers.py:308 ../partIntfHelpers.py:321
#: ../partIntfHelpers.py:347 ../partIntfHelpers.py:358
msgid "Unable To Edit"
msgstr "لا يمكن التّعديل"

#: ../partIntfHelpers.py:309
msgid "You must select a partition to edit"
msgstr "يجب عليك تحديد قسم لتعديله"

#: ../partIntfHelpers.py:321 ../partIntfHelpers.py:359
msgid ""
"You cannot edit this partition:\n"
"\n"
msgstr ""
"لا يمكنك تعديل هذا القسم:\n"
"\n"

#: ../partIntfHelpers.py:348
#, python-format
msgid ""
"You cannot edit this partition, as it is an extended partition which "
"contains %s"
msgstr "لا يمكنك تعديل هذا القسم، حيث أنه تجزي ممتدّ يحتوى %s"

#: ../partIntfHelpers.py:380
msgid "Format as Swap?"
msgstr "تهيئة كذاكرة بديلة؟"

#: ../partIntfHelpers.py:381
#, python-format
msgid ""
"/dev/%s has a partition type of 0x82 (Linux swap) but does not appear to be "
"formatted as a Linux swap partition.\n"
"\n"
"Would you like to format this partition as a swap partition?"
msgstr ""
"يحتوي الجهاز /dev/%s على قسم من نوع 0x82 (ذاكرة لينكس بديلة) ولكن لا يبدو "
"أنّه منسّق كقسم ذاكرة لينكس بديلة.\n"
"\n"
"هل تودّ تنسيق هذا التّجزيء كذاكرة بديلة؟"

#: ../partIntfHelpers.py:401
#, python-format
msgid "You need to select at least one hard drive to have %s installed onto."
msgstr "عليك أن تختار قرصاً صلباً واحداً على الأقل كي تقوم بتثبيت %s عليه."

#: ../partIntfHelpers.py:407
msgid ""
"You have chosen to use a pre-existing partition for this installation "
"without formatting it. We recommend that you format this partition to make "
"sure files from a previous operating system installation do not cause "
"problems with this installation of Linux. However, if this partition "
"contains files that you need to keep, such as home directories, then  "
"continue without formatting this partition."
msgstr ""
"لقد اخترت استخدام قسم موجود مسبقاً لهذا التثبيت دون تنسيقه. نستحسن أن تقوم "
"بتنسيق هذا التّجزيء كي تتأكّد من عدم حدوث مشاكل بسبب ملفّات تثبيت نظام التّشغيل "
"السّابق مع هذا التثبيت للينكس. على كلّ حال، إن كان هذا التّجزيء يحتوي على ملفّات "
"تحتاج إلى إبقائها، كالأدلّة الموطن، فاستمرّ دون تنسيق هذا التّجزيء."

#: ../partIntfHelpers.py:415
msgid "Format?"
msgstr "أقوم بالتهيئة؟"

#: ../partIntfHelpers.py:415 ../iw/partition_gui.py:1007
msgid "_Modify Partition"
msgstr "_عدّل التّجزيء"

#: ../partIntfHelpers.py:415
msgid "Do _Not Format"
msgstr "لا _تهيء"

#: ../partIntfHelpers.py:423
msgid "Error with Partitioning"
msgstr "خطأ بالتّجزئة"

#: ../partIntfHelpers.py:424
#, python-format
msgid ""
"The following critical errors exist with your requested partitioning scheme. "
"These errors must be corrected prior to continuing with your install of %s.\n"
"\n"
"%s"
msgstr ""
"الأخطاء الجسيمة التّالية موجودة في خطّة التّجزئة التي طلبتها. هذه الأخطاء يجب "
"أن تُصحّح قبل الاستمرار بتثبيتك لـ%s.\n"
"\n"
"%s"

#: ../partIntfHelpers.py:438
msgid "Partitioning Warning"
msgstr "تحذير تجزئة"

#: ../partIntfHelpers.py:439
#, python-format
msgid ""
"The following warnings exist with your requested partition scheme.\n"
"\n"
"%s\n"
"\n"
"Would you like to continue with your requested partitioning scheme?"
msgstr ""
"التّحذيرات التّالية موجودة بمُخطّط التّجزئة الذي طلبته.\n"
"\n"
"%s\n"
"\n"
"هل تودّ الاستمرار بمُخطّط التّجزئة الذي طلبته؟"

#: ../partIntfHelpers.py:453 ../iw/partition_gui.py:663
msgid ""
"The following pre-existing partitions have been selected to be formatted, "
"destroying all data."
msgstr "تمّ تحديد التجزيئات الموجودة مسبقاً للتّنسيق، وتدمير كلّ البيانات."

#: ../partIntfHelpers.py:456
msgid ""
"Select 'Yes' to continue and format these partitions, or 'No' to go back and "
"change these settings."
msgstr "اختر 'نعم' لتستمرّ وتنسّق هذه التّجزيئات، أو 'لا' لتعود و تغيّر هذه الإعدادات."

#: ../partIntfHelpers.py:462
msgid "Format Warning"
msgstr "تحذير تهيئة"

#: ../partIntfHelpers.py:510
#, python-format
msgid ""
"You are about to delete the volume group \"%s\".\n"
"\n"
"ALL logical volumes in this volume group will be lost!"
msgstr ""
"أنت على وشك حذف مجموعة الكتل \"%s\".\n"
"\n"
"كلّ الكتل المنطقيّة في مجموعة الكتل هذه سوف تفقد!"

#: ../partIntfHelpers.py:514
#, python-format
msgid "You are about to delete the logical volume \"%s\"."
msgstr "أنت على وشك حذف الكتلة المنطقية \"%s\"."

#: ../partIntfHelpers.py:517
msgid "You are about to delete a RAID device."
msgstr "أنت على وشك حذف جهاز RAID."

#: ../partIntfHelpers.py:520
#, python-format
msgid "You are about to delete the /dev/%s partition."
msgstr "أنت على وشك حذف التّجزيء /dev/%s."

#: ../partIntfHelpers.py:523
msgid "The partition you selected will be deleted."
msgstr "التّجزيء الذي اخترته سيتمّ حذفه."

#: ../partIntfHelpers.py:533
msgid "Confirm Reset"
msgstr "أكّد الاستعادة"

#: ../partIntfHelpers.py:534
msgid "Are you sure you want to reset the partition table to its original state?"
msgstr "هل أنت متأكّد أنّك تريد استعادة جدول التّجزئة إلى وضعه الأصلي؟"

#: ../partRequests.py:247
#, python-format
msgid "This mount point is invalid.  The %s directory must be on the / file system."
msgstr "مكان التّجهيز غير صالح.  يجب أن يكون الدّليل %s على نظام الملفّات /."

#: ../partRequests.py:250
#, python-format
msgid ""
"The mount point %s cannot be used.  It must be a symbolic link for proper "
"system operation.  Please select a different mount point."
msgstr ""
"لا يمكن استخدام مكان التّجهيز %s.  يجب أن يكون رابطاً رمزيّاً كي يعمل النّظام "
"بشكل ملائم.  رجاء اختر مكان تجهيز بديل."

#: ../partRequests.py:257
msgid "This mount point must be on a linux file system."
msgstr "مكان التّجهز هذا يجب أن يكون على نظام ملفّات لينكس."

#: ../partRequests.py:278
#, python-format
msgid ""
"The mount point \"%s\" is already in use, please choose a different mount "
"point."
msgstr "مكان التّجهيز \"%s\" مستخدم مسبقاً، رجاء اختر مكان تجهيز آخر."

#: ../partRequests.py:292
#, python-format
msgid ""
"The size of the %s partition (%10.2f MB) exceeds the maximum size of %10.2f "
"MB."
msgstr "حجم التّجزيء %s وهو (%10.2f ميجابايت)  يفوق الحجم الأقصى %10.2f ميجابايت."

#: ../partRequests.py:488
#, python-format
msgid ""
"The size of the requested partition (size = %s MB) exceeds the maximum size "
"of %s MB."
msgstr "حجم القسم المطلوب (size = %s ميجابايت) يفوق الحجم الأقصى من %s ميجابايت."

#: ../partRequests.py:493
#, python-format
msgid "The size of the requested partition is negative! (size = %s MB)"
msgstr "حجم التّجزيء المطلوب سالب! (size = %s ميجابايت)"

#: ../partRequests.py:497
msgid "Partitions can't start below the first cylinder."
msgstr "لا يمكن أن تبدأ التّجزيئات قبل أوّل اسطوانة."

#: ../partRequests.py:500
msgid "Partitions can't end on a negative cylinder."
msgstr "لا يمكن أن تنتهي التجزيئات برقم اسطوانة سالب."

#: ../partRequests.py:663
msgid "No members in RAID request, or not RAID level specified."
msgstr "لا أعضاء في طلب RAID، أو أنّه ليس مستوى RAID المحدّد."

#: ../partRequests.py:671 ../partitions.py:906
msgid "Bootable partitions can only be on RAID1 devices."
msgstr "التجزيئات القابلة للإقلاع يمكن أن تكون على أجهزة RAID1 فقط."

#: ../partRequests.py:675
#, python-format
msgid "A RAID device of type %s requires at least %s members."
msgstr "جهاز RAID من نوع %s يتطلّب %s أعضاء على الأقل."

#: ../partRequests.py:684
#, python-format
msgid ""
"This RAID device can have a maximum of %s spares. To have more spares you "
"will need to add members to the RAID device."
msgstr ""
"جهاز RAID يمكن أن يحتوي %s احتياط بحدّ أقصى. كي تحصل على احتياطات أكثر سوف "
"تحتاج أن تضيف أعضاءً إلى جهاز RAID."

#: ../partedUtils.py:194 ../textw/partition_text.py:556
msgid "Foreign"
msgstr "غريب"

#: ../partedUtils.py:290
#, python-format
msgid ""
"The device %s is LDL formatted instead of CDL formatted.  LDL formatted "
"DASDs are not supported for usage during an install of %s.  If you wish to "
"use this disk for installation, it must be re-initialized causing the loss "
"of ALL DATA on this drive.\n"
"\n"
"Would you like to reformat this DASD using CDL format?"
msgstr ""
"الجهاز %s مهيء بنسق LDL بدلاً من CDL. أجهزة DASD المهيئة بنسق LDL غير مدعومة "
"للاستخدام خلال تثبيت %s.  إن رغبت في استخدام هذا القرص للتثبيت، فيجب إعادة "
"تهيئة الجهاز ممّا يسبّب خسارة كلّ البيانات على هذا القرص.\n"
"\n"
"هل تودّ إعادة تهيئة الجهاز DASD باستخدام نسق CDL؟"

#: ../partedUtils.py:320
#, python-format
msgid ""
"/dev/%s currently has a %s partition layout.  To use this disk for the "
"installation of %s, it must be re-initialized, causing the loss of ALL DATA "
"on this drive.\n"
"\n"
"Would you like to format this drive?"
msgstr ""
"يحتوي قرص /dev/%s حالياً على جدول تجزئة %s.  كي تستخدم هذا القرص  لتثبيت %s، "
"يجب أن يتمّ إعادة تهيئته ممّا يسبّب خسارة كلّ البيانات على هذا القرص.\n"
"\n"
"هل تودّ تهيئة هذا القرص؟"

#: ../partedUtils.py:329
msgid "_Ignore drive"
msgstr "تجاهل القرص"

#: ../partedUtils.py:330
msgid "_Format drive"
msgstr "_تنسيق القرص"

#: ../partedUtils.py:662
#, python-format
msgid "Error mounting file system on %s: %s"
msgstr "خطأ في تجهيز نظام الملفّات على %s: %s"

#: ../partedUtils.py:750
msgid "Initializing"
msgstr "جاري عملية التهيئة"

#: ../partedUtils.py:751
#, python-format
msgid "Please wait while formatting drive %s...\n"
msgstr "رجاء الانتظار بينما يتمّ تهيئة القرص %s...\n"

#: ../partedUtils.py:845
#, python-format
msgid ""
"The partition table on device %s (%s) was unreadable. To create new "
"partitions it must be initialized, causing the loss of ALL DATA on this "
"drive.\n"
"\n"
"This operation will override any previous installation choices about which "
"drives to ignore.\n"
"\n"
"Would you like to initialize this drive, erasing ALL DATA?"
msgstr ""
"جدول التّجزئة على الجهاز %s %sغير مقروء. كي تنشئ تجزيئات جديدة يجب تهيئة "
"الجهاز، ممّا يسبّب خسارة كلّ البيانات على هذا القرص.\n"
"\n"
"هذه العمليّة ستتخطّى أي خيارات تثبيت مسبقة حول تجاهل أيّ أقراص.\n"
"\n"
"هل تودّ تهيئة القرص، مزيلاً كلّ البيانات؟"

#: ../partedUtils.py:902
#, python-format
msgid ""
"The partition table on device %s was unreadable. To create new partitions it "
"must be initialized, causing the loss of ALL DATA on this drive.\n"
"\n"
"This operation will override any previous installation choices about which "
"drives to ignore.\n"
"\n"
"Would you like to initialize this drive, erasing ALL DATA?"
msgstr ""
"جدول التّجزئة على الجهاز %s غير مقروء. كي تنشئ تجزيئات جديدة يجب ابتداء "
"الجهاز، ممّا يسبّب خسارة كلّ البيانات على هذا القرص.\n"
"\n"
"هذه العمليّة ستتخطّى أي خيارات تثبيت مسبقة حول تجاهل أيّ أقراص.\n"
"\n"
"هل تودّ تهيئة القرص، مزيلاً كلّ البيانات؟"

#: ../partedUtils.py:1020 ../textw/fdasd_text.py:100
msgid "No Drives Found"
msgstr "لم يُعثر على أقراص"

#: ../partedUtils.py:1021
msgid ""
"An error has occurred - no valid devices were found on which to create new "
"file systems. Please check your hardware for the cause of this problem."
msgstr ""
"حدث خطأ - لم يُعثر على أجهزة صالحة لإنشاء أنظمة ملفّات جديدة عليها. رجاءً تأكّد "
"من عتادك حول سبب هذه المشكلة."

#: ../partitioning.py:77
msgid "Installation cannot continue."
msgstr "لم يمكن أن يستمرّ التثبيت."

#: ../partitioning.py:78
msgid ""
"The partitioning options you have chosen have already been activated. You "
"can no longer return to the disk editing screen. Would you like to continue "
"with the installation process?"
msgstr ""
"خيارات التّجزئة التي اخترتها تمّ تفعيلها مسبقاً. لا يمكنك العودة إلى شاشة تحرير "
"القرص بعد الآن. هل تريد الاستمرار بعمليّة التّثبيت؟"

#: ../partitioning.py:109
msgid "Low Memory"
msgstr "ذاكرة منخفضة"

#: ../partitioning.py:110
msgid ""
"As you don't have much memory in this machine, we need to turn on swap space "
"immediately. To do this we'll have to write your new partition table to the "
"disk immediately. Is that OK?"
msgstr ""
"حيث أنّه ليس لديك الكثير من الذّاكرة في هذه الماكينة، نحتاج إلى تشغيل الذّاكرة "
"البديلة فوراً. لعمل ذلك يجب أن نقوم بكتابة جدول التّجزئة الجديد إلى القرص "
"حالاً. هل ذلك مقبول؟"

#: ../partitions.py:804
#, python-format
msgid ""
"You have not defined a root partition (/), which is required for "
"installation of %s to continue."
msgstr "لم تُعرّف قسم جذري (/)، والذي هو مطلوب لاستمرار تثبيت %s."

#: ../partitions.py:809
#, python-format
msgid ""
"Your root partition is less than 250 megabytes which is usually too small to "
"install %s."
msgstr "القسم الجذريّ أقل من 250 ميجابايت والذي هو عادة قليل جداً لتثبيت %s."

#: ../partitions.py:816
msgid "You must create a /boot/efi partition of type FAT and a size of 50 megabytes."
msgstr "يجب عليك إنشاء قسم /boot/efi من نوع FAT وبحجم 50 ميجابايت"

#: ../partitions.py:836
msgid "You must create an Apple Bootstrap partition."
msgstr "يجب عليك إنشاء جزء إقلاع من طراز Apple Bootstrap."

#: ../partitions.py:858
msgid "You must create a PPC PReP Boot partition."
msgstr "يجب عليك إنشاء قسم إقلاع PPC PReP."

#: ../partitions.py:866 ../partitions.py:877
#, python-format
msgid ""
"Your %s partition is less than %s megabytes which is lower than recommended "
"for a normal %s install."
msgstr "التّجزيء %s أقلّ حجماً من %s ميجابايت والذي هو أقلّ من المستحسن لتثبيت %s طبيعي."

#: ../partitions.py:913
msgid "Bootable partitions cannot be on a logical volume."
msgstr "تجزيئات الإقلاع لا يمكن إنشاءها على كتلة منطقيّة."

#: ../partitions.py:924
msgid ""
"You have not specified a swap partition.  Although not strictly required in "
"all cases, it will significantly improve performance for most installations."
msgstr ""
"لم تقم بتحديد قسم ذاكرة بديلة.  مع أنّه ليس مطلوباً بشكل إلزامي بكل الحالات، "
"إلا أنّه قد يحسّن أداء معظم التّثبيتات."

#: ../partitions.py:931
#, python-format
msgid ""
"You have specified more than 32 swap devices.  The kernel for %s only "
"supports 32 swap devices."
msgstr ""
"لقد حدّدت أكثر من 32 جهاز ذاكرة بديلة.  النّواة الخاصّة بـ%s تدعم فقط 32 جهاز "
"ذاكرة بديلة."

#: ../partitions.py:942
#, python-format
msgid ""
"You have allocated less swap space (%dM) than available RAM (%dM) on your "
"system.  This could negatively impact performance."
msgstr ""
"لقد قمت بتعيين مساحة ذاكرة بديلة أقل (%dميجا) من الذاكرة RAM المتوفّرة (%"
"dميجا) على نظامك.  قد يؤثّر هذا سلبيّاً على الأداء."

#: ../partitions.py:1240
msgid "the partition in use by the installer."
msgstr "القسم المستخدم حاليّاً من قبل المُثبّت."

#: ../partitions.py:1243
msgid "a partition which is a member of a RAID array."
msgstr "التّجزيء الذي هو عضو من صفّ RAID."

#: ../partitions.py:1246
msgid "a partition which is a member of a LVM Volume Group."
msgstr "قسم عضو في جموعة كتل LVM."

#: ../rescue.py:124
msgid "Starting Interface"
msgstr "جاري تشغيل الواجهة"

#: ../rescue.py:125
#, python-format
msgid "Attempting to start %s"
msgstr "محاولة تشغيل %s"

#: ../rescue.py:178
msgid "Setup Networking"
msgstr "أعدّ الشّبكة"

#: ../rescue.py:179
msgid "Do you want to start the network interfaces on this system?"
msgstr "هل تريد تشغيل واجهات الشّبكة على هذا النّظام؟"

#: ../rescue.py:224 ../text.py:489
msgid "Cancelled"
msgstr "أُلغي"

#: ../rescue.py:225 ../text.py:490
msgid "I can't go to the previous step from here. You will have to try again."
msgstr "لا أستطيع العودة إلى الخطوة السّابقة من هنا. سيكون عليك إعادة المحاولة."

#: ../rescue.py:243 ../rescue.py:278 ../rescue.py:438
msgid "When finished please exit from the shell and your system will reboot."
msgstr "عندما تنتهي رجاء اختر من الصَّدفة وسيقوم نظامك بإعادة التّشغيل."

#: ../rescue.py:262 ../rescue.py:331 ../rescue.py:339 ../rescue.py:413
msgid "Rescue"
msgstr "إنقاذ"

#: ../rescue.py:263
#, python-format
msgid ""
"The rescue environment will now attempt to find your Linux installation and "
"mount it under the directory %s.  You can then make any changes required to "
"your system.  If you want to proceed with this step choose 'Continue'.  You "
"can also choose to mount your file systems read-only instead of read-write "
"by choosing 'Read-Only'.\n"
"\n"
"If for some reason this process fails you can choose 'Skip' and this step "
"will be skipped and you will go directly to a command shell.\n"
"\n"
msgstr ""
"بيئة الإنقاذ ستحاول الآن العثور على تثبيت لينكس الخاصّ بك و تقوم بتجهيزه ضمن "
"الدليل %s.  يمكن بعدها القيام بأية تغييرات مطلوبة لنظامك.  إن كنت تريد "
"الاستمرار بهذه الخطوة اختر 'استمرار'. يمكنك أيضاً اختيار تجهيز أنظمة ملفّاتك "
"للقراءة فقط بدلاً من القراءة والكتابة باختيار 'قراءة فقط'.\n"
"\n"
"إن فشلت العمليّة لسبب ما يمكنك اختيار 'تخطّي' وسوف تتخطى هذه الخطوة وتنتقل "
"مباشرةً إلى سطر الأوامر.\n"
"\n"

#: ../rescue.py:273 ../iw/partition_gui.py:565 ../loader2/cdinstall.c:109
#: ../loader2/cdinstall.c:117 ../loader2/driverdisk.c:477
msgid "Continue"
msgstr "استمر"

#: ../rescue.py:273 ../rescue.py:282
msgid "Read-Only"
msgstr "قراءة فقط"

#: ../rescue.py:273 ../rescue.py:275 ../textw/upgrade_text.py:123
#: ../loader2/cdinstall.c:257 ../loader2/cdinstall.c:259
#: ../loader2/method.c:420
msgid "Skip"
msgstr "تخطّي"

#: ../rescue.py:305
msgid "System to Rescue"
msgstr "النّظام المطلوب إنقاذه"

#: ../rescue.py:306
msgid "What partition holds the root partition of your installation?"
msgstr "ما هو التّجزيء الذي يحمل التّجزيء الجذري لتثبيتك؟"

#: ../rescue.py:308 ../rescue.py:312
msgid "Exit"
msgstr "اخرج"

#: ../rescue.py:332
msgid ""
"Your system had dirty file systems which you chose not to mount.  Press "
"return to get a shell from which you can fsck and mount your partitions.  "
"The system will reboot automatically when you exit from the shell."
msgstr ""
"يحتوي نظامك على أنظمة ملفّات قذرة اخترتَ عدم تجهيزها.  اضغط مفتاح الإدخال "
"لتحصل على صدفة يمكنك منه استخدام fsck وتجهيز تقسيماتك.  سوف يقوم النّظام "
"بإعادة التّشغيل تلقائيّاً بعدما تخرج من الصّدفة."

#: ../rescue.py:340
#, python-format
msgid ""
"Your system has been mounted under %s.\n"
"\n"
"Press <return> to get a shell. If you would like to make your system the "
"root environment, run the command:\n"
"\n"
"\tchroot %s\n"
"\n"
"The system will reboot automatically when you exit from the shell."
msgstr ""
"تمّ تجهيز نظام على %s.\n"
"\n"
"اضغط <return> لتحصل على صدفة. إن أردت جعل نظامك البيئة الجذريّة، نفّذ الأمر:\n"
"\n"
"\tchroot %s\n"
"\n"
"سوف يقوم النّظام بإعادة التّشغيل تلقائيّاً عندما تخرج من الصّدفة."

#: ../rescue.py:414
#, python-format
msgid ""
"An error occurred trying to mount some or all of your system. Some of it may "
"be mounted under %s.\n"
"\n"
"Press <return> to get a shell. The system will reboot automatically when you "
"exit from the shell."
msgstr ""
"حدث خطأ أثناء محاولة تجهيز بعض أو كلّ نظامك. قد يكون بعضه مجهّزاً على %s.\n"
"\n"
"اضغط <return> لتحصل على صدفة. سوف يقوم النّظام بإعادة التّشغيل تلقائيّاً عندما "
"تخرج من الصّدفة."

#: ../rescue.py:420
msgid "Rescue Mode"
msgstr "وضع الإنقاذ"

#: ../rescue.py:421
msgid ""
"You don't have any Linux partitions. Press return to get a shell. The system "
"will reboot automatically when you exit from the shell."
msgstr ""
"ليس لديك أية تقسيمات لينكس. اضغط مفتاح الإدخال لتحصل على صدفة. سوف يقوم "
"النّظام بإعادة التّشغيل تلقائيّاً عندما تخرج من الصّدفة."

#: ../rescue.py:435
#, python-format
msgid "Your system is mounted under the %s directory."
msgstr "نظام مُجهّز ضمن دليل %s."

#: ../text.py:179
msgid "Help not available"
msgstr "المساعدة غير متوفّرة"

#: ../text.py:180
msgid "No help is available for this step of the install."
msgstr "لا توجد مساعدة متوفّرة لهذه الخطوة من التثبيت."

#: ../text.py:280
msgid "Save Crash Dump"
msgstr "احفظ مُخرجات الخلل"

#: ../text.py:301 ../text.py:309
msgid "Save"
msgstr "احفظ"

#: ../text.py:301 ../text.py:304 ../text.py:307
msgid "Debug"
msgstr "أزل العلل"

#: ../text.py:349 ../loader2/lang.c:52 ../loader2/loader.c:133
#, c-format, python-format
msgid "Welcome to %s"
msgstr "أهلاً بكم إلى %s"

#: ../text.py:356
msgid " <F1> for help | <Tab> between elements | <Space> selects | <F12> next screen"
msgstr " <F1> للمساعدة | <Tab> بين العناصر | <Space> يحدّد | <F12> الشّاشة التّالية"

#: ../text.py:358
msgid ""
"  <Tab>/<Alt-Tab> between elements   |  <Space> selects   |  <F12> next "
"screen"
msgstr "  <Tab>/<Alt-Tab> بين العناصر   |  <Space> يحدّد   |  <F12> الشّاشة التّالية"

#: ../upgrade.py:75
msgid "Searching"
msgstr "جاري البحث"

#: ../upgrade.py:76
#, python-format
msgid "Searching for %s installations..."
msgstr "البحث عن تثبيتات %s..."

#: ../upgrade.py:128 ../upgrade.py:136
msgid "Dirty File Systems"
msgstr "أنظمة الملفّات القذرة"

#: ../upgrade.py:129
#, python-format
msgid ""
"The following file systems for your Linux system were not unmounted "
"cleanly.  Please boot your Linux installation, let the file systems be "
"checked and shut down cleanly to upgrade.\n"
"%s"
msgstr ""
"أنظمة الملفّات التالية لنظام لينكس الخاصّ بك لم يتمّ إزالة تجهيزها بشكل سليم.  "
"رجاء قم بإقلاع تثبيت لينكس، دع أنظم الملفّات تفحص ثم قم بإيقاف التّشغيل بشكل "
"سليم كي تستطيع التّحديث.\n"
"%s"

#: ../upgrade.py:137
#, python-format
msgid ""
"The following file systems for your Linux system were not unmounted "
"cleanly.  Would you like to mount them anyway?\n"
"%s"
msgstr ""
"أنظمة الملفّات التالية لنظام لينكس الخاصّ بك لم يتمّ إزالة تجهيزها بشكل سليم.  "
"هل تريد تجهيزها على أي حال؟\n"
"%s"

#: ../upgrade.py:275 ../upgrade.py:281
msgid "Mount failed"
msgstr "فشل التّجهيز"

#: ../upgrade.py:276
msgid ""
"One or more of the file systems listed in the /etc/fstab on your Linux "
"system cannot be mounted. Please fix this problem and try to upgrade again."
msgstr ""
"واحد أو أكثر من أنظمة الملفّات المسردة في /etc/fstab على نظام لينكس خاصّتك لا "
"يمكن تجهيزه. رجاء أصلح هذه المشكلة وحاول التّحديث مرّة أخرى."

#: ../upgrade.py:282
msgid ""
"One or more of the file systems listed in the /etc/fstab of your Linux "
"system are inconsistent and cannot be mounted.  Please fix this problem and "
"try to upgrade again."
msgstr ""
"واحد أو أكثر من أنظمة الملفّات المسردة في /etc/fstab على نظام لينكس خاصّتك غير "
"متماسكة ولا يمكن تجهيزها. رجاء أصلح هذه المشكلة وحاول التّحديث مرّة أخرى."

#: ../upgrade.py:299
msgid ""
"The following files are absolute symbolic links, which we do not support "
"during an upgrade. Please change them to relative symbolic links and restart "
"the upgrade.\n"
"\n"
msgstr ""
"الملفّات التّالية هي روابط رمزيّة مطلقة، والتي لا ندعمها خلال التّطوير. رجاءً "
"غيّرها إلى روابط رمزيّة نسبيّة وأعد تشغيل التّطوير.\n"
"\n"

#: ../upgrade.py:305
msgid "Absolute Symlinks"
msgstr "روابط رمزيّة مطلقة"

#: ../upgrade.py:316
msgid ""
"The following are directories which should instead be symbolic links, which "
"will cause problems with the upgrade.  Please return them to their original "
"state as symbolic links and restart the upgrade.\n"
"\n"
msgstr ""
"التالية هي أدلّة يجب أن تكون روابط رمزيّة، والذي سيبب مشاكل بالتّطوير.  رجاءً "
"أعدها إلى وضعها الأصلي كروابط رمزيّة وأعد تشغيل التّطوير.\n"
"\n"

#: ../upgrade.py:322
msgid "Invalid Directories"
msgstr "أدلّة غير صالحة"

#: ../upgrade.py:329
#, python-format
msgid "%s not found"
msgstr "لم يُعثر على %s"

#: ../upgrade.py:372
msgid "Finding"
msgstr "جاري البحث"

#: ../upgrade.py:373
msgid "Finding packages to upgrade..."
msgstr "جاري البحث عن الحزم المطلوب تحديثها..."

#: ../upgrade.py:385
msgid ""
"The installation program is unable to upgrade systems with a pre-rpm 4.x "
"database. Please install the errata rpm packages for your release as "
"described in the release notes and then run the upgrade procedure."
msgstr ""
"برنامج التثبيت غير قادر على تطوير الأنظمة السّابقة لقاعدة بيانات rpm النّسخة 4."
"x. رجاء قم بتثبيت حزم rpm المُصحّحة لإصدارك كما هو مشروح في ملاحظات الإصدار ثم "
"شغّل إجراء التّطوير."

#: ../upgrade.py:412
msgid "An error occurred when finding the packages to upgrade."
msgstr "حدث خطأ أثناء البحث عن الحزم المطلوب تحديثها."

#: ../upgrade.py:440
#, python-format
msgid ""
"The arch of the release of %s you are upgrading to appears to be %s which "
"does not match your previously installed arch of %s.  This is likely to not "
"succeed.  Are you sure you wish to continue the upgrade process?"
msgstr ""
"بنية النّظام لهذا الإصدار من %s الذي تقوم بالتّطوير إليه يبدو أنّه %s والذي لا "
"يطابق بنية نظامك %s المثبّتة مسبقاً.  على ما يبدو أن هذا لن ينجح.  هل أنت "
"متأكّد أنّك تريد إكمال عمليّة التّطوير؟"

#: ../upgrade.py:492
#, python-format
msgid ""
"This system appears to have third party packages installed that overlap with "
"packages included in %s. Because these packages overlap, continuing the "
"upgrade process may cause them to stop functioning properly or may cause "
"other system instability.  Please see the release notes for more "
"information.\n"
"\n"
"Do you wish to continue the upgrade process?"
msgstr ""
"يبدو أن النّظام يحتوي حزم طرف ثالث مثبّتة تتعارض مع الحزم المشمولة في %s. لأنّ "
"هذه الحزم تتعارض، فإن الاستمرار بعمليّة التحديث قد يتسبّب بتوقّف عملها بشكل "
"طبيعي أو يتسبّب بعدم استقرار آخر في النظام.  رجاء راجع ملاحظات الإصدار للمزيد "
"من المعلومات.\n"
"\n"
"هل تريد إكمال عمليّة التّحديث؟"

#: ../upgrade.py:515
#, python-format
msgid ""
"This system does not have an /etc/redhat-release file.  It is possible that "
"this is not a %s system. Continuing with the upgrade process may leave the "
"system in an unusable state.  Do you wish to continue the upgrade process?"
msgstr ""
"لا يحتوي النّظام على ملف /etc/redhat-release.  من الممكن أن أن لا يكون هذا "
"نظام %s. الاستمرار بعمليّة التّطوير قد تترك النّظام بوضع غير مستقر.  هل تريد "
"إكمال عمليّة التّحديث؟"

#: ../upgrade.py:555
#, python-format
msgid ""
"You appear to be upgrading from a system which is too old to upgrade to this "
"version of %s.  Are you sure you wish to continue the upgrade process?"
msgstr ""
"يبدو أن النظام الذي تريد ترقيته إلى هذه النسخة من %s قديم جدا. هل أنت متأكد "
"من أنك تريد الإستمرار في عملية الترقية؟"

#: ../upgradeclass.py:19
msgid "Upgrade Existing System"
msgstr "بتحديث النظام الحالي"

#: ../upgradeclass.py:23
msgid "Upgrade"
msgstr "تحديث"

#: ../urlinstall.py:45
msgid "Connecting..."
msgstr "جاري الاتّصال..."

#: ../vnc.py:54
msgid "Unable to Start X"
msgstr "لم أتمكّن من تشغيل X"

#: ../vnc.py:55
msgid ""
"X was unable to start on your machine.  Would you like to start VNC to "
"connect to this computer from another computer and perform a graphical "
"install or continue with a text mode install?"
msgstr ""
"لم يتمكّن X من العمل على جهازك. هل تودّ تشغيل VNC للاتّصال على هذا الحاسوب "
"انطلاقا من حاسوب آخر و القيام بتثبيت رسومي أم تودّ المتابعة بالتثبيت على "
"النّمط النّصّي ؟"

#: ../vnc.py:62 ../vnc.py:65
msgid "Use text mode"
msgstr "إستعمل النّمط النّصي"

#: ../vnc.py:63
msgid "Start VNC"
msgstr "إبدأ VNC"

#: ../vnc.py:73
msgid "VNC Configuration"
msgstr "تهيئة VNC"

#: ../vnc.py:77
msgid "No password"
msgstr "ليست هناك كلمة مرور"

#: ../vnc.py:80
msgid ""
"A password will prevent unauthorized listeners connecting and monitoring "
"your installation progress.  Please enter a password to be used for the "
"installation"
msgstr ""
"كلمة المرور وقاية من اتّصال المستمعين غير المسموح لهم و مراقبتهم لتقدّم "
"تثبيتك. أدخل من فضلك كلمة مرور تستعمل للتثبيت"

#: ../vnc.py:88 ../textw/userauth_text.py:44 ../loader2/urls.c:437
msgid "Password:"
msgstr "كلمة المرور:"

#: ../vnc.py:89 ../textw/userauth_text.py:45
msgid "Password (confirm):"
msgstr "كلمة المرور (تأكيد):"

#: ../vnc.py:111 ../textw/userauth_text.py:66 ../textw/userauth_text.py:146
msgid "Password Mismatch"
msgstr "كلمة المرور غير مطابقة"

#: ../vnc.py:112 ../textw/userauth_text.py:67 ../textw/userauth_text.py:147
msgid "The passwords you entered were different. Please try again."
msgstr "كلمات المرور التي أدخلتها مُختلفة. رجاء حاول مرّة أخرى."

#: ../vnc.py:117 ../textw/userauth_text.py:61 ../textw/userauth_text.py:138
msgid "Password Length"
msgstr "طول كلمة المرور"

#: ../vnc.py:118
msgid "The password must be at least six characters long."
msgstr "يجب أن يكون طول كلمة المرور 6 رموز على الأقلّ."

#: ../xsetup.py:55 ../iw/xconfig_gui.py:35 ../textw/xconfig_text.py:22
msgid "DDC Probed Monitor"
msgstr "شاشة مُجسّة بواسطة DDC"

#: ../zfcp.py:27
msgid ""
"zSeries machines can access industry-standard SCSI devices via Fibre Channel "
"(FCP). You need to provide 5 parameters for each device: a 16 bit device "
"number, a 16bit SCSI ID, a 64 bit World Wide Port Name (WWPN), a 16bit SCSI "
"LUN and a 64 bit FCP LUN."
msgstr ""
"أجهزة zSeries يمكنها استخدام أجهزة المعيار الصناعي SCSI عبر قناة الاتصال "
"Fibre Channel (FCP). تحتاج لتحديد قيم 5 بارامترات لكل جهاز: رقم الجهاز ذي 16 "
"بت، رقم SCSI ذي 16 بت، رقم ميناء عالمي (WWPN) ذي 64 بت، رقم وحدة SCSI منطقي "
"ذي 16 بت، رقم وحدة FCP منطقي ذي 64 بت"

#: ../zfcp.py:29
msgid "Device number"
msgstr "رقم جهاز"

#: ../zfcp.py:30
msgid "You have not specified a device number or the number is invalid"
msgstr "لم تقم بتحديد رقم أداة أو الرقم غير سليم"

#: ../zfcp.py:32
msgid "SCSI Id"
msgstr "رقم SCSI"

#: ../zfcp.py:33
msgid "You have not specified a SCSI ID or the ID is invalid."
msgstr "لم تقم بتحديد رقم SCSI أو الرقم غير سليم"

#: ../zfcp.py:35 ../textw/zfcp_text.py:102
msgid "WWPN"
msgstr "اسم ميناء عالمي"

#: ../zfcp.py:36
msgid "You have not specified a worldwide port name or the name is invalid."
msgstr "لم تقم بتحديد اسم ميناء عالمي أو الاسم غير سليم"

#: ../zfcp.py:38
msgid "SCSI LUN"
msgstr "رقم وحدة SCSI منطقي"

#: ../zfcp.py:39
msgid "You have not specified a SCSI LUN or the number is invalid."
msgstr "لم تقم بتحديد رقم وحدة SCSI ِمنطقي أو الرقم غير سليم"

#: ../zfcp.py:41 ../textw/zfcp_text.py:102
msgid "FCP LUN"
msgstr "رقم وحدة FCP منطقي"

#: ../zfcp.py:42
msgid "You have not specified a FCP LUN or the number is invalid."
msgstr "لم تقم بتحديد رقم وحدة FCP منطقي أو الرقم غير سليم"

#: ../iw/account_gui.py:25
msgid "Set Root Password"
msgstr "حدّد كلمة مرور Root"

#: ../iw/account_gui.py:41 ../iw/account_gui.py:49 ../iw/account_gui.py:56
#: ../iw/account_gui.py:65 ../textw/userauth_text.py:71
msgid "Error with Password"
msgstr "خطأ في كلمة المرور"

#: ../iw/account_gui.py:42
msgid ""
"You must enter your root password and confirm it by typing it a second time "
"to continue."
msgstr "يجب أن تدخل كلمة مرور المستخدم root وتؤكّدها بكتابتها مرّة ثانية كي تستمرّ."

#: ../iw/account_gui.py:50
msgid "The passwords you entered were different.  Please try again."
msgstr "كلمات المرور التي أدخلتها كانت مختلفة.  رجاء حاول مجدّداً."

#: ../iw/account_gui.py:57
msgid "The root password must be at least six characters long."
msgstr "كلمة مرور المستخدم root يجب أن تكون بطول ستّة أحرف على الأقلّ."

#: ../iw/account_gui.py:66 ../textw/userauth_text.py:72
msgid ""
"Requested password contains non-ascii characters which are not allowed for "
"use in password."
msgstr ""
"كلمة المرور المطلوبة تحتوي أحرف غير ascii والتي هي غير مسموحة للاستخدام في "
"كلمة المرور."

#: ../iw/account_gui.py:93
msgid ""
"The root account is used for administering the system.  Enter a password for "
"the root user."
msgstr "الحساب الجذري مستعمل لإدارة النّظام. أدخل كلمة مرور للمستخدم الجذري."

#: ../iw/account_gui.py:110
msgid "Root _Password: "
msgstr "كلمة _مرور root: "

#: ../iw/account_gui.py:113
msgid "_Confirm: "
msgstr "_تأكيد: "

#: ../iw/auth_gui.py:22 ../textw/userauth_text.py:337
msgid "Authentication Configuration"
msgstr "إعداد التّوثيق"

#: ../iw/auth_gui.py:98
msgid "Enable _MD5 passwords"
msgstr "مكّن _كلمات مرور MD5"

#: ../iw/auth_gui.py:99
msgid "Enable shado_w passwords"
msgstr "مكّن كلمات مرور ال_مُظلّلة"

#: ../iw/auth_gui.py:102
msgid "Enable N_IS"
msgstr "مكّن _NIS"

#: ../iw/auth_gui.py:103
msgid "Use _broadcast to find NIS server"
msgstr "استخدم ال_بثّ للعثور على خادم NIS"

#: ../iw/auth_gui.py:115
msgid "NIS _Domain: "
msgstr "_نطاق NIS:"

#: ../iw/auth_gui.py:118
msgid "NIS _Server: "
msgstr "_خادم NIS:"

#: ../iw/auth_gui.py:142
msgid "Enable _LDAP"
msgstr "مكّن L_DAP"

#: ../iw/auth_gui.py:145
msgid "Use _TLS lookups"
msgstr "استخدم ا_ستطلاعات TLS"

#: ../iw/auth_gui.py:146
msgid "LDAP _Server:"
msgstr "_خادم LDAP:"

#: ../iw/auth_gui.py:149
msgid "LDAP _Base DN:"
msgstr "الاسم المميّز الأ_ساسي (DN) لـLDAP:"

#: ../iw/auth_gui.py:177
msgid "Enable _Kerberos"
msgstr "مكّن _Kerberos"

#: ../iw/auth_gui.py:181
msgid "R_ealm:"
msgstr "ال_مملكة:"

#: ../iw/auth_gui.py:184
msgid "K_DC:"
msgstr "K_DC:"

#: ../iw/auth_gui.py:187
msgid "_Admin Server:"
msgstr "خادم ال_إدارة:"

#: ../iw/auth_gui.py:216
msgid "Enable SMB _Authentication"
msgstr "مكّن ت_وثيق SMB"

#: ../iw/auth_gui.py:219
msgid "SMB _Server:"
msgstr "_خادم SMB:"

#: ../iw/auth_gui.py:222
msgid "SMB Work_group:"
msgstr "م_جموعة عمل SMB:"

#: ../iw/auth_gui.py:250
msgid "NIS"
msgstr "NIS"

#: ../iw/auth_gui.py:251
msgid "LDAP"
msgstr "LDAP"

#: ../iw/auth_gui.py:252
msgid "Kerberos 5"
msgstr "Kerberos 5"

#: ../iw/auth_gui.py:253
msgid "SMB"
msgstr "SMB"

#: ../iw/blpasswidget.py:37
msgid ""
"A boot loader password prevents users from changing options passed to the "
"kernel.  For greater system security, it is recommended that you set a "
"password."
msgstr ""
"كلمة مرور محمّل الإقلاع تمنع المستخدمين من تغيير الخيارات المُعطاة إلى "
"النّواة.  لأمن أفضل للنّظام، يستحسن استخدام كلمة مرور."

#: ../iw/blpasswidget.py:42
msgid "_Use a boot loader password"
msgstr "ا_ستخدم كلمة مرور لمحمّل الإقلاع"

#: ../iw/blpasswidget.py:73
msgid "Change _password"
msgstr "غيّر كلمة الم_رور"

#: ../iw/blpasswidget.py:96
msgid "Enter Boot Loader Password"
msgstr "أدخل كلمة مرور محمّل الإقلاع"

#: ../iw/blpasswidget.py:102
msgid ""
"Enter a boot loader password and then confirm it.  (Note that your BIOS "
"keymap may be different than the actual keymap you are used to.)"
msgstr ""
"أدخل كلمة مرور محمّل الإقلاع ثمّ أكّدها.  (لاحظ أن خريطة المفاتيح الخاصة بـBIOS "
"قد تكون مختلفة عن خريطة المفاتيح الفعليّة التي أنت معتاد عليها.)"

#: ../iw/blpasswidget.py:109
msgid "_Password:"
msgstr "ك_لمة المرور:"

#: ../iw/blpasswidget.py:115
msgid "Con_firm:"
msgstr "أكّ_د:"

#: ../iw/blpasswidget.py:136
msgid "Passwords don't match"
msgstr "كلمات المرور غير متطابقة"

#: ../iw/blpasswidget.py:137 ../textw/bootloader_text.py:451
msgid "Passwords do not match"
msgstr "كلمات المرور غير متطابقة"

#: ../iw/blpasswidget.py:146 ../textw/bootloader_text.py:461
msgid ""
"Your boot loader password is less than six characters.  We recommend a "
"longer boot loader password.\n"
"\n"
"Would you like to continue with this password?"
msgstr ""
"كلمة مرور محمّل الإقلاع أقل من ستّة أحرف.  يستحسن استخدام كلمة مرور أطول.\n"
"\n"
"هل تريد الاستمرار باستخدام كلمة المرور هذه؟"

#: ../iw/bootdisk_gui.py:24
msgid "Boot Diskette Creation"
msgstr "إنشاء قرص الإقلاع"

#: ../iw/bootdisk_gui.py:55
#, python-format
msgid ""
"The boot diskette allows you to boot your %s system from a floppy diskette.  "
"A boot diskette allows you to boot your system in the event your bootloader "
"configuration stops working, if you chose not to install a boot loader, or "
"if your third-party boot loader does not support Linux.\n"
"\n"
"It is highly recommended you create a boot diskette.\n"
msgstr ""
"قرص الإقلاع يمكّنك من إقلاع نظامك %s من قرص مرن.  قرص الإقلاع المرن يمكّنك من "
"إقلاع نظامك في حال توقّفت تهيئة محمّل الإقلاع عن العمل، أو إن اخترت عدم تثبيت "
"محمّل إقلاع، أو إن كان محمّل الإقلاع من الطّرف الثّالث لا يدعم لينكس.\n"
"\n"
"من المستحسن جدّاً أن تقوم بإنشاء قرص إقلاع.\n"

#: ../iw/bootdisk_gui.py:71
msgid "_Yes, I would like to create a boot diskette"
msgstr "_نعم، أودّ إنشاء قرص إقلاع"

#: ../iw/bootdisk_gui.py:74
msgid "No, I _do not want to create a boot diskette"
msgstr "لا، لا أريد إ_نشاء قرص إقلاع"

#: ../iw/bootloader_advanced_gui.py:27
msgid "Advanced Boot Loader Configuration"
msgstr "تهيئة محمّل الإقلاع المتقدّمة"

#: ../iw/bootloader_advanced_gui.py:43 ../textw/bootloader_text.py:126
msgid ""
"Forcing the use of LBA32 for your bootloader when not supported by the BIOS "
"can cause your machine to be unable to boot.\n"
"\n"
"Would you like to continue and force LBA32 mode?"
msgstr ""
"إجبار استخدام LBA32 عن طريق محمّل الإقلاع عند غياب هذا الدعم بواسطة الـBIOS "
"قد يمنع الجهاز من الإقلاع.  \n"
"\n"
"هل تريد الاستمرار وإجبار وضع LBA32؟"

#: ../iw/bootloader_advanced_gui.py:49
msgid "Force LBA32"
msgstr "أجبر استخدام LBA32"

#: ../iw/bootloader_advanced_gui.py:70
msgid "_Force LBA32 (not normally required)"
msgstr "أجبر استخدام LBA32 (غير مطلوب عادةً)"

#: ../iw/bootloader_advanced_gui.py:74
msgid ""
"If you wish to add default options to the boot command, enter them into the "
"'General kernel parameters' field."
msgstr ""
"إن كنت تودّ إضافة الخيارات الافتراضيّة إلى أمر الإقلاع، أدخلها في حقل "
"'المُعطيات العامّة للنّواة'."

#: ../iw/bootloader_advanced_gui.py:80
msgid "_General kernel parameters"
msgstr "ال_مُعطيات العامّة للنّواة"

#: ../iw/bootloader_main_gui.py:30 ../textw/bootloader_text.py:43
#: ../textw/bootloader_text.py:109 ../textw/bootloader_text.py:166
#: ../textw/bootloader_text.py:289 ../textw/bootloader_text.py:403
msgid "Boot Loader Configuration"
msgstr "تهيئة محمّل الإقلاع"

#: ../iw/bootloader_main_gui.py:75
msgid "Change Boot Loader"
msgstr "غيّر محمّل الإقلاع"

#: ../iw/bootloader_main_gui.py:93
msgid ""
"You have elected to not install any boot loader. It is strongly recommended "
"that you install a boot loader unless you have an advanced need.  A boot "
"loader is almost always required in order to reboot your system into Linux "
"directly from the hard drive.\n"
"\n"
"Would you like to continue and not install a boot loader?"
msgstr ""
"لقد اخترت عدم تثبيت أيّ مُحمّل إقلاع. يستحسن جدّاً أن تقوم بتثبيت مُحمّل إقلاع إلا "
"إذا كان لديك حاجة خاصّة. مُحمّل الإقلاع مطلوب في أغلب الحالات حتّى تستطيع إقلاع "
"نظامك بواسطة لينكس مباشرة من القرص الصّلب.\n"
"\n"
"هل أنت متأكّد أنّك تريد تخطّي تثبيت مُحمّل الإقلاع؟"

#: ../iw/bootloader_main_gui.py:97
msgid "C_ontinue with no boot loader"
msgstr "ا_ستمرّ دون محمّل إقلاع"

#: ../iw/bootloader_main_gui.py:120
msgid ""
"Please select the boot loader that the computer will use.  GRUB is the "
"default boot loader. However, if you do not wish to overwrite your current "
"boot loader, select \"Do not install a boot loader.\"  "
msgstr ""
"رجاءً اختر محمّل الإقلاع الذي سيستخدمه الحاسوب.  GRUB هو محمّل الإقلاع "
"الافتراضي. على أي حال، إن لم تكن ترغب بالكتابة فوق محمّل الإقلاع الحالي، اختر "
"\"لا تُثبّت محمّل إقلاع.\"  "

#: ../iw/bootloader_main_gui.py:128
msgid "Use _GRUB as the boot loader"
msgstr "استخدم GRUB _كمحمّل الإقلاع"

#: ../iw/bootloader_main_gui.py:130
msgid "_Do not install a boot loader"
msgstr "_لا تُثبّت محمّل إقلاع"

#: ../iw/bootloader_main_gui.py:149
#, python-format
msgid "The %s boot loader will be installed on /dev/%s."
msgstr "محمّل الإقلاع %s سوف يتمّ تثبيته على /dev/%s."

#: ../iw/bootloader_main_gui.py:154
msgid "No boot loader will be installed."
msgstr "لن يتمّ تثبيت أي محمّل إقلاع."

#: ../iw/bootloader_main_gui.py:205
msgid "_Change boot loader"
msgstr "_غيّر محمّل الإقلاع"

#: ../iw/bootloader_main_gui.py:229
msgid "Configure advanced boot loader _options"
msgstr "هيّء _خيارات محمّل الإقلاع المتقدّمة"

#: ../iw/bootlocwidget.py:39
msgid "Install Boot Loader record on:"
msgstr "ثبّت سجلّ محمّل الإقلاع على:"

#: ../iw/bootlocwidget.py:70
msgid "_Change Drive Order"
msgstr "_غيّر ترتيب الأقراص"

#: ../iw/bootlocwidget.py:82
msgid "Edit Drive Order"
msgstr "عدّل ترتيب الأقراص"

#: ../iw/bootlocwidget.py:87
msgid ""
"Arrange the drives to be in the same order as used by the BIOS. Changing the "
"drive order may be useful if you have multiple SCSI adapters or both SCSI "
"and IDE adapters and want to boot from the SCSI device.\n"
"\n"
"Changing the drive order will change where the installation program locates "
"the Master Boot Record (MBR)."
msgstr ""
"رتّب الأقراص بحيث تكون بنفس الترتيب المستخدم من قبل BIOS. تغيير ترتيب الأقراص "
"قد يكون مفيداً إن كان لديك عدّة مُهايئات SCSI أو كلاً من مُهايئات SCSI وIDE وتريد "
"أن تقوم بالإقلاع من جهاز SCSI.\n"
"\n"
"تغيير ترتيب الأقراص سوف يغيّر مكان بحث برنامج التّثبيت عن سجلّ الإقلاع الرّئيسي "
"(MBR)."

#: ../iw/confirm_gui.py:57
msgid "About to Install"
msgstr "على وشك التثبيت"

#: ../iw/confirm_gui.py:64 ../iw/confirm_gui.py:98 ../textw/confirm_text.py:35
#: ../textw/confirm_text.py:63
msgid "Reboot?"
msgstr "أعيد التّشغيل؟"

#: ../iw/confirm_gui.py:65 ../iw/confirm_gui.py:99 ../textw/confirm_text.py:36
#: ../textw/confirm_text.py:64
msgid "The system will be rebooted now."
msgstr "سوف يتمّ إعادة تشغيل النّظام الآن."

#: ../iw/confirm_gui.py:82
#, python-format
msgid "Click next to begin installation of %s."
msgstr "اضغط التّالي لبدء تثبيت %s."

#: ../iw/confirm_gui.py:83
#, python-format
msgid ""
"A complete log of the installation can be found in the file '%s' after "
"rebooting your system.\n"
"\n"
"A kickstart file containing the installation options selected can be found "
"in the file '%s' after rebooting the system."
msgstr ""
"يمكن العثور على سجلّ كامل للتثبيت في الملف %s بعد إعادة تشغيل نظامك.\n"
"\n"
"يمكن العثور على ملف kickstart المُحتوي لخيارات التثبيت في الملفّ '%s' بعد "
"إعادة تشغيل النّظام."

#: ../iw/confirm_gui.py:90
msgid "About to Upgrade"
msgstr "على وشك التّحديث"

#: ../iw/confirm_gui.py:115
#, python-format
msgid "Click next to begin upgrade of %s."
msgstr "اضغط التّالي لتبدأ تحديث %s."

#: ../iw/confirm_gui.py:116
#, python-format
msgid ""
"A complete log of the upgrade can be found in the file '%s' after rebooting "
"your system."
msgstr "يمكن العثور على سجلّ كامل للتّطوير في الملفّ '%s' بعد إعادة تشغيل نظامك."

#: ../iw/congrats_gui.py:23
msgid "Congratulations"
msgstr "تهانينا"

#: ../iw/congrats_gui.py:59
msgid ""
"Remove any media used during the installation process and press the \"Reboot"
"\" button to reboot your system.\n"
"\n"
msgstr ""
"أزل أيّ وسائط تثبيت استخدمت خلال عمليّة التثبيت واضغط زرّ \"أعد التّشغيل\" كي "
"تعيد تشغيل نظامك.\n"
"\n"

#: ../iw/congrats_gui.py:64
#, python-format
msgid ""
"Congratulations, the installation is complete.\n"
"\n"
"%s%s"
msgstr ""
"تهانينا، اكتمل التثبيت.\n"
"\n"
"%s%s"

#: ../iw/dependencies_gui.py:21
msgid "Unresolved Dependencies"
msgstr "معتمدات غير محلولة"

#: ../iw/dependencies_gui.py:34 ../iw/package_gui.py:253
#: ../iw/package_gui.py:496 ../iw/package_gui.py:673
#: ../textw/packages_text.py:26 ../textw/packages_text.py:353
#, python-format
msgid "Total install size: %s"
msgstr "حجم التثبيت الكلّي: %s"

#: ../iw/dependencies_gui.py:74 ../iw/progress_gui.py:353
#: ../textw/packages_text.py:384
msgid "Package"
msgstr "حزمة"

#: ../iw/dependencies_gui.py:76 ../textw/packages_text.py:384
msgid "Requirement"
msgstr "متطلّب"

#: ../iw/dependencies_gui.py:90
msgid "_Install packages to satisfy dependencies"
msgstr "_ثبّت الحزم لإرضاء المعتمدات"

#: ../iw/dependencies_gui.py:93
msgid "_Do not install packages that have dependencies"
msgstr "_لا تثبّت الحزم التي لها معتمدات"

#: ../iw/dependencies_gui.py:97
msgid "I_gnore package dependencies"
msgstr "ت_جاهل معتمدات الحزم"

#: ../iw/desktop_choice_gui.py:25 ../textw/desktop_choice_text.py:24
msgid "Package Defaults"
msgstr "افتراضيّات الحزم"

#: ../iw/desktop_choice_gui.py:56
msgid ""
"The default installation environment includes our recommended package "
"selection, including:\n"
"\n"
msgstr ""
"بيئة التثبيت الافتراضيّة تشمل اختيار الحزم الذي نستحسنه، بما فيها:\n"
"\n"

#: ../iw/desktop_choice_gui.py:58
#, python-format
msgid ""
"\n"
"\n"
"After installation, additional software can be added or removed using the "
"'system-config-packages' tool.\n"
"\n"
"If you are familiar with %s, you may have specific packages you would like "
"to install or avoid installing. Check the box below to customize your "
"installation."
msgstr ""
"\n"
"\n"
"بعد التثبيت، يمكن إضافة أو إزالة البرامج باستخدام أداة 'system-config-"
"packages'.\n"
"\n"
"إن كنت تأْلف %s، فقد تكون لديك حزم تودّ أن تقوم بتثبيتها أو تجاهلها. اختر "
"المربّع أدناه كي تخصّص تثبيتك."

#: ../iw/desktop_choice_gui.py:70
msgid ""
"If you would like to change the default package set to be installed you can "
"choose to customize this below."
msgstr "إن أردت أن تغيّر مجموعة الحزم الافتراضيّة لتثبيتها يمكنك اختيار تخصيصها أدناه."

#: ../iw/desktop_choice_gui.py:78
msgid "_Install default software packages"
msgstr "ث_بّت حزم البرامج الافتراضيّة"

#: ../iw/desktop_choice_gui.py:79
msgid "_Customize software packages to be installed"
msgstr "_خصّص حزم البرامج المطلوب تثبيتها"

#: ../iw/driveorderwidget.py:44
msgid "Drive"
msgstr "القرص"

#: ../iw/driveorderwidget.py:44 ../textw/partition_text.py:1436
msgid "Size"
msgstr "الحجم"

#: ../iw/driveorderwidget.py:44
msgid "Model"
msgstr "الطّراز"

#: ../iw/examine_gui.py:33
msgid "Upgrade Examine"
msgstr "اختبار التّطوير"

#: ../iw/examine_gui.py:60
#, python-format
msgid "_Install %s"
msgstr "_ثبّت %s"

#: ../iw/examine_gui.py:62
msgid ""
"Choose this option to freshly install your system. Existing software and "
"data may be overwritten depending on your configuration choices."
msgstr ""
"اختر هذا الخيار كي تقوم بتثبيت نظامك من البداية. البرامج الموجودة والبيانات "
"قد يكتب فوقها بناء على خيارات تهيئتك."

#: ../iw/examine_gui.py:66
msgid "_Upgrade an existing installation"
msgstr "_طوّر تثبيتاً موجود مسبقاً"

#: ../iw/examine_gui.py:68
#, python-format
msgid ""
"Choose this option if you would like to upgrade your existing %s system.  "
"This option will preserve the existing data on your drives."
msgstr ""
"اختر هذا الخيار إن كنت تريد تطوير نظامك %s الموجود. هذا الخيار يحافظ على "
"البيانات الموجودة على أقراصك."

#: ../iw/examine_gui.py:131 ../iw/pixmapRadioButtonGroup_gui.py:197
msgid "The following installed system will be upgraded:"
msgstr "النّظام التّالي المثبّت سوف يتمّ تطويره:"

#: ../iw/examine_gui.py:144
msgid "Unknown Linux system"
msgstr "نظام لينكس غير معروف"

#: ../iw/fdasd_gui.py:27
msgid "fdasd"
msgstr "fdasd"

#: ../iw/fdasd_gui.py:28
msgid "Select drive to run fdasd on"
msgstr "اختر القرص لتشغيل fdasd عليه"

#: ../iw/fdasd_gui.py:93
msgid ""
"Formatting the selected DASD device will destroy all contents of the device. "
"Do you really want to format the selected DASD device?"
msgstr ""
"تهيئة جهاز DASD المختار سوف يدمّر كلّ محتوياته. هل تريد حقّاً تهيئة جهاز DASD "
"المختار؟"

#: ../iw/fdisk_gui.py:26
msgid "Partitioning with fdisk"
msgstr "التّجزئة باستخدام fdisk"

#: ../iw/fdisk_gui.py:103
msgid "Select a drive to partition with fdisk:"
msgstr "اختر القرص للتجزئ باستخدام fdisk:"

#: ../iw/firewall_gui.py:23 ../textw/firewall_text.py:173
msgid "Disabled"
msgstr "مُعطّل"

#: ../iw/firewall_gui.py:23 ../textw/firewall_text.py:175
msgid "Warn"
msgstr "حذّر"

#: ../iw/firewall_gui.py:23 ../textw/firewall_text.py:177
msgid "Active"
msgstr "نشط"

#: ../iw/firewall_gui.py:27 ../textw/firewall_text.py:29
msgid "Firewall"
msgstr "الجدار النّاري"

#: ../iw/firewall_gui.py:37 ../textw/firewall_text.py:112
msgid "Warning - No Firewall"
msgstr "تحذير - لا جدار ناري"

#: ../iw/firewall_gui.py:38 ../textw/firewall_text.py:113
msgid ""
"If this system is attached directly to the Internet or is on a large public "
"network, it is recommended that a firewall be configured to help prevent "
"unauthorized access.  However, you have selected not to configure a "
"firewall.  Choose \"Proceed\" to continue without a firewall."
msgstr ""
"إذا كان هذا النّظام متّصل مباشرة بالإنترنت أو بشبكة عامّة كبيرة، فمن المستحسن "
"أن يتم إعداد جدار ناري حيث يساعد في منع الوصول الغير مخوّل.  على أي حال، لقد "
"اخترت عدم القيام بإعداد جدار ناريّ.  اختر \"تقدّم\" كي تستمرّ دون القيام بإعداد "
"جدار ناريّ."

#: ../iw/firewall_gui.py:45
msgid "_Configure Firewall"
msgstr "إ_عداد جدار ناري"

#: ../iw/firewall_gui.py:45 ../iw/xconfig_gui.py:445
#: ../textw/firewall_text.py:120
msgid "_Proceed"
msgstr "_تقدّم"

#: ../iw/firewall_gui.py:79 ../textw/firewall_text.py:31
msgid ""
"A firewall can help prevent unauthorized access to your computer from the "
"outside world.  Would you like to enable a firewall?"
msgstr ""
"يساعد الجدار النّاري في منع الوصول الغير مخوّل إلى حاسوبك من العالم الخارجي.  "
"هل تودّ تمكين جدار ناريّ؟"

#: ../iw/firewall_gui.py:90
msgid "N_o firewall"
msgstr "_لا جدار ناريّ"

#: ../iw/firewall_gui.py:92
msgid "_Enable firewall"
msgstr "_مكّن الجداري النّاريّ"

#: ../iw/firewall_gui.py:109
msgid ""
"You can use a firewall to allow access to specific services on your computer "
"from other computers. Which services, if any, do you wish to allow access "
"to ?"
msgstr ""
"يمكنك استخدام جدار ناري لإتاحة الوصول إلى خدمات محددة على جهازك من قبل "
"الاجهزة الأخرى. أي من هذه الخدمات تود اتاحة الوصول إليها؟"

#: ../iw/firewall_gui.py:146 ../textw/firewall_text.py:161
msgid ""
"Security Enhanced Linux (SELinux) provides finer-grained security controls "
"than those available in a traditional Linux system.  It can be set up in a "
"disabled state, a state which only warns about things which would be denied, "
"or a fully active state."
msgstr ""
"لينكس محسَّن الأمان (SELinux( يوفر تحكم أفضل بالأمان من أنظمة لينكس التقليدية. "
"يمكن أن توضع في حالة توقف، وهي حالة تحذر مما يمكن ان يكون محظوراً، أو في حالة "
"كامل النشاط."

#: ../iw/firewall_gui.py:158
msgid "Enable _SELinux?:"
msgstr "مكّن لينكس محسّن الأمان (_SELinux)؟:"

#: ../iw/installpath_gui.py:34 ../textw/installpath_text.py:48
msgid "Installation Type"
msgstr "نوع التثبيت"

#: ../iw/ipwidget.py:92
msgid "IP Address is missing"
msgstr "عنوان IP مفقود"

#: ../iw/ipwidget.py:97
msgid "IP Addresses must contain numbers between 1 and 255"
msgstr "عناوين IP يجب أن تحتوي أرقاماً بين 1 و 255"

#: ../iw/ipwidget.py:102 ../iw/ipwidget.py:104
msgid "IP Addresses must contain numbers between 0 and 255"
msgstr "عناوين IP يجب أن تحتوي أرقاماً بين 0 و 255"

#: ../iw/language_gui.py:24 ../textw/language_text.py:38
msgid "Language Selection"
msgstr "خيار اللّغة"

#: ../iw/language_gui.py:66 ../textw/language_text.py:39 ../loader2/lang.c:378
msgid "What language would you like to use during the installation process?"
msgstr "ما اللّغة التي تودّ استخدامها أثناء عمليّة التثبيت؟"

#: ../iw/lvm_dialog_gui.py:113 ../iw/lvm_dialog_gui.py:160
#: ../iw/lvm_dialog_gui.py:171 ../iw/lvm_dialog_gui.py:211
#: ../iw/lvm_dialog_gui.py:287 ../iw/lvm_dialog_gui.py:590
#: ../iw/lvm_dialog_gui.py:657 ../iw/lvm_dialog_gui.py:868
#: ../textw/partition_text.py:1289 ../textw/partition_text.py:1308
msgid "Not enough space"
msgstr "لا توجد مساحة كافية"

#: ../iw/lvm_dialog_gui.py:114
msgid ""
"The physical extent size cannot be changed because otherwise the space "
"required by the currently defined logical volumes will be increased to more "
"than the available space."
msgstr ""
"حجم الامتداد المادّي لا يمكن تغييره وإلّا فإنّ المساحة المطلوبة للكتل المنطقية "
"المعرّفة حاليّاً سوف تزداد إلى أكثر من المساحة المتوفّرة."

#: ../iw/lvm_dialog_gui.py:123
msgid "Confirm Physical Extent Change"
msgstr "تأكيد تغيير الامتداد المادّي"

#: ../iw/lvm_dialog_gui.py:124
msgid ""
"This change in the value of the physical extent will require the sizes of "
"the current logical volume requests to be rounded up in size to an integer "
"multiple of the physical extent.\n"
"\n"
"This change will take affect immediately."
msgstr ""
"هذا التّغيير في قيمة الامتداد المادّي سيتطلّب أن تكون أحجام طلبات الكتلة "
"المنطقيّة الحاليّة مُقرّبة بالحجم إلى رقم صحيح مضاعف للامتداد المادّي.\n"
"\n"
"هذا التّغيير سينطبق مباشرة."

#: ../iw/lvm_dialog_gui.py:133 ../iw/lvm_dialog_gui.py:193
#: ../iw/network_gui.py:167 ../iw/network_gui.py:171 ../iw/network_gui.py:194
msgid "C_ontinue"
msgstr "ا_ستمر"

#: ../iw/lvm_dialog_gui.py:161
#, python-format
msgid ""
"The physical extent size cannot be changed because the value selected (%"
"10.2f MB) is larger than the smallest physical volume (%10.2f MB) in the "
"volume group."
msgstr ""
"حجم الامتداد المادي لا يمكن تغييره لأن القيمة المحدّدة ( %10.2f ميجابايت) "
"أكبر من أصغر كتلة مادّيّة (%10.2f ميجابايت) td مجموعة الكتل."

#: ../iw/lvm_dialog_gui.py:172
#, python-format
msgid ""
"The physical extent size cannot be changed because the value selected (%"
"10.2f MB) is too large compared to the size of the smallest physical volume "
"(%10.2f MB) in the volume group."
msgstr ""
"حجم الامتداد المادّي لا يمكن تغييره لأنّ القيمة المُحدّدة (%10.2f م.ب.) هي كبيرة "
"جدّاً مُقارنة بحجم أصغر كتلة منطقيّة (%10.2fم.ب.) في مجموعة الكتل."

#: ../iw/lvm_dialog_gui.py:186
msgid "Too small"
msgstr "صغير جدّاً"

#: ../iw/lvm_dialog_gui.py:187
msgid ""
"This change in the value of the physical extent will waste substantial space "
"on one or more of the physical volumes in the volume group."
msgstr ""
"هذا التّغيير بقيمة الامتداد المادّي سوف يهدر مساحة ضخمةعلى واحد أو أكثر من "
"الكتل المادّية في مجموعة الكتل هذه."

#: ../iw/lvm_dialog_gui.py:212
#, python-format
msgid ""
"The physical extent size cannot be changed because the resulting maximum "
"logical volume size (%10.2f MB) is smaller than one or more of the currently "
"defined logical volumes."
msgstr ""
"حجم الامتداد المادّي لا يمكن تغييره لأن الحجم النّاتج الأقصى للكتلة المادّيّة (%"
"10.2f ميجابايت) هو أصغر من واحد أو أكثر من الكتل المادّيّة المُعرّفة حاليّاً."

#: ../iw/lvm_dialog_gui.py:288
msgid ""
"You cannot remove this physical volume because otherwise the volume group "
"will be too small to hold the currently defined logical volumes."
msgstr ""
"لا يمكنك إزالة هذه الكتلة المادّيّة وإلا فإنّ مجموعة الكتل ستكون صغيرةً جدّاً على "
"حمل الكتل المنطقيّة المُعرّفة حاليّاً."

#: ../iw/lvm_dialog_gui.py:368 ../textw/partition_text.py:1135
msgid "Make Logical Volume"
msgstr "أنشئ كتلة منطقيّة"

#: ../iw/lvm_dialog_gui.py:371
#, python-format
msgid "Edit Logical Volume: %s"
msgstr "حرّر الكتلة المنطقيّة: %s"

#: ../iw/lvm_dialog_gui.py:373 ../textw/partition_text.py:1133
msgid "Edit Logical Volume"
msgstr "حرّر الكتلة المنطقيّة"

#: ../iw/lvm_dialog_gui.py:386 ../iw/partition_dialog_gui.py:292
#: ../iw/raid_dialog_gui.py:284
msgid "_Mount Point:"
msgstr "_مكان التّجهيز:"

#: ../iw/lvm_dialog_gui.py:394
msgid "_File System Type:"
msgstr "نوع _نظام الملفّات:"

#: ../iw/lvm_dialog_gui.py:402 ../iw/partition_dialog_gui.py:311
msgid "Original File System Type:"
msgstr "نوع نظام الملفّات الأصلي:"

#: ../iw/lvm_dialog_gui.py:407 ../iw/partition_dialog_gui.py:322
#: ../iw/raid_dialog_gui.py:305
msgid "Unknown"
msgstr "غير معروف"

#: ../iw/lvm_dialog_gui.py:413
msgid "_Logical Volume Name:"
msgstr "اسم الكتلة ال_منطقيّة:"

#: ../iw/lvm_dialog_gui.py:421 ../textw/partition_text.py:284
msgid "Logical Volume Name:"
msgstr "اسم الكتلة المنطقيّة:"

#: ../iw/lvm_dialog_gui.py:429 ../iw/partition_dialog_gui.py:367
msgid "_Size (MB):"
msgstr "ال_حجم (ميجابايت):"

#: ../iw/lvm_dialog_gui.py:435 ../iw/partition_dialog_gui.py:384
#: ../iw/partition_dialog_gui.py:427 ../textw/partition_text.py:299
#: ../textw/partition_text.py:376 ../textw/partition_text.py:459
#: ../textw/partition_text.py:567
msgid "Size (MB):"
msgstr "الحجم (ميجابايت):"

#: ../iw/lvm_dialog_gui.py:450
#, python-format
msgid "(Max size is %s MB)"
msgstr "(الحجم الأقصى هو %s ميجابايت)"

#: ../iw/lvm_dialog_gui.py:511
msgid "Illegal size"
msgstr "حجم غير شرعي"

#: ../iw/lvm_dialog_gui.py:512
msgid "The requested size as entered is not a valid number greater than 0."
msgstr "الحجم المطلوب كما هو مدخل رقم غير صالح أكبر من 0."

#: ../iw/lvm_dialog_gui.py:545
msgid "Mount point in use"
msgstr "مكان التّجهيز قيد الاستخدام"

#: ../iw/lvm_dialog_gui.py:546
#, python-format
msgid "The mount point \"%s\" is in use, please pick another."
msgstr "مكان التّجهيز \"%s\" قيد الاستخدام، رجاء اختر آخر."

#: ../iw/lvm_dialog_gui.py:557 ../textw/partition_text.py:1257
msgid "Illegal Logical Volume Name"
msgstr "اسم كتلة منطقيّة غير شرعيّ"

#: ../iw/lvm_dialog_gui.py:576 ../textw/partition_text.py:1274
msgid "Illegal logical volume name"
msgstr "اسم كتلة منطقيّة غير شرعيّ"

#: ../iw/lvm_dialog_gui.py:577 ../textw/partition_text.py:1275
#, python-format
msgid "The logical volume name \"%s\" is already in use. Please pick another."
msgstr "اسم الكتلة المنطقيّة \"%s\" مستخدم مسبقاً. رجاء اختر آخر."

#: ../iw/lvm_dialog_gui.py:591
#, python-format
msgid ""
"The current requested size (%10.2f MB) is larger than maximum logical volume "
"size (%10.2f MB). To increase this limit you can increase the Physical "
"Extent size for this Volume Group."
msgstr ""
"الحجم الحالي المطلوب (%10.2f ميجابايت) هو أكبر من الحجم الأقصى للكتلة "
"المنطقيّة (%10.2f ميجابايت). كي تزيد هذا الحدّ يمكنك زيادة حجم الامتداد المادّي "
"لمجموعة الكتل هذه."

#: ../iw/lvm_dialog_gui.py:634 ../iw/partition_dialog_gui.py:179
#: ../iw/partition_dialog_gui.py:191 ../iw/partition_dialog_gui.py:239
#: ../iw/raid_dialog_gui.py:211 ../textw/partition_text.py:908
#: ../textw/partition_text.py:930 ../textw/partition_text.py:1103
#: ../textw/partition_text.py:1328
msgid "Error With Request"
msgstr "خطأ بالطّلب"

#: ../iw/lvm_dialog_gui.py:658 ../iw/lvm_dialog_gui.py:869
#, python-format
msgid ""
"The logical volumes you have configured require %g MB, but the volume group "
"only has %g MB.  Please either make the volume group larger or make the "
"logical volume(s) smaller."
msgstr ""
"الكتل المنطقيّة التي طلبتها تتطلّب تهيئة %g ميجابايت، إلّا أنّ مجموعة الكتل "
"تحتوي فقط %g ميجابايت.  رجاء إمّا أن تجعل مجموعة الكتل أكبر أو الكتل المنطقيّة "
"أصغر."

#: ../iw/lvm_dialog_gui.py:708
msgid "No free slots"
msgstr "لا حيّز فارغ"

#: ../iw/lvm_dialog_gui.py:709
#, python-format
msgid "You cannot create more than %s logical volumes per volume group."
msgstr "لا يمكنك إنشاء أكثر من %s كتل منطقيّة لكل مجموعة كتل."

#: ../iw/lvm_dialog_gui.py:715
msgid "No free space"
msgstr "لا مساحة شاغرة"

#: ../iw/lvm_dialog_gui.py:716
msgid ""
"There is no room left in the volume group to create new logical volumes. To "
"add a logical volume you will need to reduce the size of one or more of the "
"currently existing logical volumes"
msgstr ""
"ليس هناك مكان متبقّ في مجموعة الكتل لإنشاء كتل منطقيّة جديدة. كي تضيف كتلة "
"منطقيّة ستحتاج لتقليص حجم واحد أو أكثر من الكتل المنطقيّة الموجودة حاليّاً"

#: ../iw/lvm_dialog_gui.py:744
#, python-format
msgid "Are you sure you want to Delete the logical volume \"%s\"?"
msgstr "هل أنت متأكّد أنّك تريد حذف الكتلة المنطقيّة \"%s\"؟"

#: ../iw/lvm_dialog_gui.py:880
msgid "Invalid Volume Group Name"
msgstr "اسم غير صالح لمجموعة الكتل"

#: ../iw/lvm_dialog_gui.py:893
msgid "Name in use"
msgstr "الاسم مستخدم"

#: ../iw/lvm_dialog_gui.py:894
#, python-format
msgid "The volume group name \"%s\" is already in use. Please pick another."
msgstr "اسم مجموعة الكتل \"%s\" قيد الاستخدام. رجاء اختر آخر."

#: ../iw/lvm_dialog_gui.py:938
msgid "Not enough physical volumes"
msgstr "كتل منطقيّة غير كافية"

#: ../iw/lvm_dialog_gui.py:939
msgid ""
"At least one unused physical volume partition is needed to create an LVM "
"Volume Group.\n"
"\n"
"Create a partition or RAID array of type \"physical volume (LVM)\" and then "
"select the \"LVM\" option again."
msgstr ""
"يلزم على الأقلّ قسم كتلة منطقيّة غير مستخدم لإنشاء مجموعة كتل LVM.\n"
"\n"
"أنشئ قسمً أو صفّ RAID من نوع \"كتلة منطقيّة (LVM)\" وثمّ اختر خيار \"LVM\" "
"مجدّداً."

#: ../iw/lvm_dialog_gui.py:950
msgid "Make LVM Volume Group"
msgstr "أنشئ مجموعة كتل LVM"

#: ../iw/lvm_dialog_gui.py:953
#, python-format
msgid "Edit LVM Volume Group: %s"
msgstr "عدّل مجموعة كتل LVM: %s"

#: ../iw/lvm_dialog_gui.py:955
msgid "Edit LVM Volume Group"
msgstr "عدّل مجموعة كتل LVM"

#: ../iw/lvm_dialog_gui.py:971
msgid "_Volume Group Name:"
msgstr "اسم _مجموعة الكتل:"

#: ../iw/lvm_dialog_gui.py:979
msgid "Volume Group Name:"
msgstr "اسم مجموعة الكتل:"

#: ../iw/lvm_dialog_gui.py:987
msgid "_Physical Extent:"
msgstr "الامتداد ال_مادّي:"

#: ../iw/lvm_dialog_gui.py:1002
msgid "Physical Volumes to _Use:"
msgstr "الكتل الماديّة الم_طلوب استخدامها:"

#: ../iw/lvm_dialog_gui.py:1008
msgid "Used Space:"
msgstr "المساحة المستخدمة:"

#: ../iw/lvm_dialog_gui.py:1025
msgid "Free Space:"
msgstr "المساحة الحرّة:"

#: ../iw/lvm_dialog_gui.py:1043
msgid "Total Space:"
msgstr "المساحة الكلّيّة:"

#: ../iw/lvm_dialog_gui.py:1072
msgid "Logical Volume Name"
msgstr "اسم الكتلة المنطقيّة"

#: ../iw/lvm_dialog_gui.py:1078 ../iw/partition_gui.py:366
msgid "Size (MB)"
msgstr "الحجم (ميجابايت)"

#: ../iw/lvm_dialog_gui.py:1092 ../iw/osbootwidget.py:96 ../iw/zfcp_gui.py:98
msgid "_Add"
msgstr "_أضف"

#: ../iw/lvm_dialog_gui.py:1095 ../iw/network_gui.py:535
#: ../iw/osbootwidget.py:100 ../iw/partition_gui.py:1355 ../iw/zfcp_gui.py:101
msgid "_Edit"
msgstr "_عدّل"

#: ../iw/lvm_dialog_gui.py:1110
msgid "Logical Volumes"
msgstr "كتل منطقيّة"

#: ../iw/mouse_gui.py:24
msgid "Mouse Configuration"
msgstr "تهيئة الماوس"

#: ../iw/mouse_gui.py:78 ../textw/mouse_text.py:20
msgid "/dev/ttyS0 (COM1 under DOS)"
msgstr "/dev/ttyS0 (COM1 ضمن نظام تشغيل الأقراص (DOS))"

#: ../iw/mouse_gui.py:79 ../textw/mouse_text.py:21
msgid "/dev/ttyS1 (COM2 under DOS)"
msgstr "/dev/ttyS0 (COM2 ضمن نظام تشغيل الأقراص (DOS))"

#: ../iw/mouse_gui.py:80 ../textw/mouse_text.py:22
msgid "/dev/ttyS2 (COM3 under DOS)"
msgstr "/dev/ttyS0 (COM3 ضمن نظام تشغيل الأقراص (DOS))"

#: ../iw/mouse_gui.py:81 ../textw/mouse_text.py:23
msgid "/dev/ttyS3 (COM4 under DOS)"
msgstr "/dev/ttyS0 (COM4 ضمن نظام تشغيل الأقراص (DOS))"

#: ../iw/mouse_gui.py:91 ../iw/osbootwidget.py:157
msgid "_Device"
msgstr "_جهاز"

#: ../iw/mouse_gui.py:137
msgid "_Model"
msgstr "_طراز"

#: ../iw/mouse_gui.py:235
msgid "_Emulate 3 buttons"
msgstr "_محاكاة 3 أزرار"

#: ../iw/mouse_gui.py:250
msgid "Select the appropriate mouse for the system."
msgstr "اختر الماوس الملائمة للنّظام."

#: ../iw/network_gui.py:27 ../iw/network_gui.py:612
msgid "Gateway"
msgstr "البوّابة"

#: ../iw/network_gui.py:27 ../iw/network_gui.py:614
msgid "Primary DNS"
msgstr "DNS الأوّلي"

#: ../iw/network_gui.py:28 ../iw/network_gui.py:616
msgid "Secondary DNS"
msgstr "DNS الثّانوي"

#: ../iw/network_gui.py:28 ../iw/network_gui.py:618
msgid "Tertiary DNS"
msgstr "DNS الاحتياطي"

#: ../iw/network_gui.py:30
msgid "_Gateway"
msgstr "_بوّابة"

#: ../iw/network_gui.py:30
msgid "_Primary DNS"
msgstr "DNS الأ_وّلي"

#: ../iw/network_gui.py:31
msgid "_Secondary DNS"
msgstr "DNS"

#: ../iw/network_gui.py:31
msgid "_Tertiary DNS"
msgstr "DNS ال_ثّانوي"

#: ../iw/network_gui.py:35
msgid "Network Configuration"
msgstr "تهيئة الشّبكة"

#: ../iw/network_gui.py:166 ../iw/network_gui.py:170 ../iw/network_gui.py:174
#: ../iw/network_gui.py:179 ../iw/network_gui.py:185 ../iw/network_gui.py:189
#: ../iw/network_gui.py:194 ../iw/zfcp_gui.py:160 ../iw/zfcp_gui.py:224
#: ../textw/zfcp_text.py:63
msgid "Error With Data"
msgstr "خطأ في البيانات"

#: ../iw/network_gui.py:167
msgid ""
"You have not specified a hostname.  Depending on your network environment "
"this may cause problems later."
msgstr "لم تقم بتحديد اسم مضيف.  اعتماداً على بيئة شبكتك قد يسبّب هذا مشاكل لاحقاً."

#: ../iw/network_gui.py:171
#, python-format
msgid ""
"You have not specified the field \"%s\".  Depending on your network "
"environment this may cause problems later."
msgstr "لم تحدّد قيمة الحقل \"%s\".  اعتماداً على بيئة شبكتك قد يسبّب هذا مشاكل لاحقاً."

#: ../iw/network_gui.py:175 ../textw/network_text.py:414
#, python-format
msgid ""
"The hostname \"%s\" is not valid for the following reason:\n"
"\n"
"%s"
msgstr ""
"اسم المضيف \"%s\" ليس صالحاً بسبب التّالي:\n"
"\n"
"%s"

#: ../iw/network_gui.py:180
#, python-format
msgid ""
"An error occurred converting the value entered for \"%s\":\n"
"%s"
msgstr ""
"حدث خطأ في تحويل القيمة المُدخلة لـ\"%s\":\n"
"%s"

#: ../iw/network_gui.py:186
#, python-format
msgid "A value is required for the field \"%s\"."
msgstr "مطلوب قيمة للحقل \"%s\"."

#: ../iw/network_gui.py:190
msgid "The IP information you have entered is invalid."
msgstr "معلومات IP التي أدخلتها غير صالحة."

#: ../iw/network_gui.py:194
msgid ""
"You have no active network devices.  Your system will not be able to "
"communicate over a network by default without at least one device active.\n"
"\n"
"NOTE: If you have a PCMCIA-based network adapter you should leave it "
"inactive at this point. When you reboot your system the adapter will be "
"activated automatically."
msgstr ""
"ليست لديك أيّ أجهزة شبكة نشطة.  لن يكون نظامك قادراً على الاتصال عبر الشّبكة "
"بشكل افتراضي دون جهاز واحد نشط على الأقلّ.\n"
"\n"
"ملاحظة: إن كان لديك مُحوّل شبكة PCMCIA عليك بتركه غير نشط عند هذه النّقطة. "
"عندما تقوم بإعادة تشغيل نظامك سوف يتمّ تنشيط المحوّل تلقائيّاً."

#: ../iw/network_gui.py:213
#, python-format
msgid "Edit Interface %s"
msgstr "عدّل الواجهة %s"

#: ../iw/network_gui.py:224
msgid "Configure using _DHCP"
msgstr "هيّئ با_ستخدام DHCP"

#: ../iw/network_gui.py:230
msgid "_Activate on boot"
msgstr "_نشّط عند الإقلاع"

#: ../iw/network_gui.py:239
msgid "_IP Address"
msgstr "_عنوان IP"

#: ../iw/network_gui.py:240
msgid "Net_mask"
msgstr "قناع ال_شّبكة"

#: ../iw/network_gui.py:245
msgid "_Point to Point (IP)"
msgstr "_نقطة إلى نقطة (IP)"

#: ../iw/network_gui.py:249
msgid "_ESSID"
msgstr "_ESSID"

#: ../iw/network_gui.py:250
msgid "Encryption _Key"
msgstr "مفتاح _التّرميز"

#: ../iw/network_gui.py:261
msgid "Hardware address:"
msgstr "عنوان الجهاز:"

#: ../iw/network_gui.py:300
#, python-format
msgid "Configure %s"
msgstr "هيّئ %s"

#: ../iw/network_gui.py:474
msgid "Active on Boot"
msgstr "نشط عند الإقلاع"

#: ../iw/network_gui.py:476 ../iw/osbootwidget.py:67
#: ../iw/partition_gui.py:360 ../textw/bootloader_text.py:194
#: ../textw/bootloader_text.py:265 ../textw/mouse_text.py:38
#: ../textw/partition_text.py:1436
msgid "Device"
msgstr "جهاز"

#: ../iw/network_gui.py:478
msgid "IP/Netmask"
msgstr "IP/قناع الشّبكة"

#: ../iw/network_gui.py:542
msgid "Network Devices"
msgstr "أجهزة الشّبكة"

#: ../iw/network_gui.py:553
msgid "Set the hostname:"
msgstr "حدّد اسم المضيف:"

#: ../iw/network_gui.py:558
msgid "_automatically via DHCP"
msgstr "آ_ليّاً عبر DHCP"

#: ../iw/network_gui.py:565
msgid "_manually"
msgstr "_يديويّاً"

#: ../iw/network_gui.py:569
msgid "(ex. \"host.domain.com\")"
msgstr "(مثال. \"host.domain.com\")"

#: ../iw/network_gui.py:575 ../loader2/net.c:810
msgid "Hostname"
msgstr "اسم المضيف"

#: ../iw/network_gui.py:623
msgid "Miscellaneous Settings"
msgstr "إعدادات متفرّقة"

#: ../iw/osbootwidget.py:43
msgid ""
"You can configure the boot loader to boot other operating systems. It will "
"allow you to select an operating system to boot from the list. To add "
"additional operating systems, which are not automatically detected, click "
"'Add.' To change the operating system booted by default, select 'Default' by "
"the desired operating system."
msgstr ""
"يمكنك تهيئة محمّل الإقلاع لإقلاع أنظمة تشغيل أخرى. سوف يسمح لك باختيار نظام "
"تشغيل من اللّائحة لإقلاعه. كي تضيف أنظمة تشغيل إضافيّة، والتي لم يتمّ اكتشافها "
"تلقائيّاً، اضغط 'أضف'. كي تغيّر نظام التّشغيل المُقلع بشكل افتراضي، اختر "
"'افتراضي' إلى جنب نظام التّشغيل المطلوب."

#: ../iw/osbootwidget.py:67 ../textw/bootloader_text.py:265
#: ../textw/xconfig_text.py:413 ../textw/xconfig_text.py:420
#: ../textw/xconfig_text.py:547 ../textw/xconfig_text.py:548
#: ../textw/xconfig_text.py:567 ../textw/xconfig_text.py:568
msgid "Default"
msgstr "افتراضي"

#: ../iw/osbootwidget.py:67
msgid "Label"
msgstr "عنوان"

#: ../iw/osbootwidget.py:130
msgid "Image"
msgstr "صورة"

#: ../iw/osbootwidget.py:137
msgid ""
"Enter a label to be displayed in the boot loader menu. The device (or hard "
"drive and partition number) is the device from which it boots."
msgstr ""
"أدخل عنواناً ليظهر في قائمة محمّل الإقلاع. الجهاز (أو القرص الصّلب ورقم "
"التّجزيء) هو الجهاز الذي يتمّ منه الإقلاع."

#: ../iw/osbootwidget.py:149
msgid "_Label"
msgstr "_عنوان"

#: ../iw/osbootwidget.py:188
msgid "Default Boot _Target"
msgstr "_خيار الإقلاع الافتراضيّ"

#: ../iw/osbootwidget.py:217
msgid "You must specify a label for the entry"
msgstr "يجب أن تحدّد عنواناً للمُدخل"

#: ../iw/osbootwidget.py:226
msgid "Boot label contains illegal characters"
msgstr "عنوان الإقلاع يحتوي أحرفاً غير شرعيّة"

#: ../iw/osbootwidget.py:250
msgid "Duplicate Label"
msgstr "عنوان متكرّر"

#: ../iw/osbootwidget.py:251
msgid "This label is already in use for another boot entry."
msgstr "هذا العنوان مستخدم مسبقاً لمُدخل إقلاع آخر."

#: ../iw/osbootwidget.py:264
msgid "Duplicate Device"
msgstr "جهاز متكرّر"

#: ../iw/osbootwidget.py:265
msgid "This device is already being used for another boot entry."
msgstr "هذا الجهاز مستخدم مسبقاً من قبل مُدخل إقلاع آخر."

#: ../iw/osbootwidget.py:329 ../textw/bootloader_text.py:354
msgid "Cannot Delete"
msgstr "لا يمكن الحذف"

#: ../iw/osbootwidget.py:330 ../textw/bootloader_text.py:355
#, python-format
msgid ""
"This boot target cannot be deleted because it is for the %s system you are "
"about to install."
msgstr "الإقلاع المستهدف لا يمكنك حذفه بسبب أنّه للنّظام %s الذي أنت على وشك تثبيته."

#: ../iw/package_gui.py:52 ../textw/packages_text.py:320
msgid "Individual Package Selection"
msgstr "الاختيار الفرديّ للحزم"

#: ../iw/package_gui.py:66
msgid "All Packages"
msgstr "كلّ الحزم"

#: ../iw/package_gui.py:186
#, python-format
msgid ""
"Package: %s\n"
"Version: %s\n"
msgstr ""
"الحزمة: %s\n"
"النّسخة: %s\n"

#: ../iw/package_gui.py:357
msgid "_Tree View"
msgstr "_عرض الشّجرة"

#: ../iw/package_gui.py:359
msgid "_Flat View"
msgstr "_عرض السّرد"

#: ../iw/package_gui.py:374
msgid "_Package"
msgstr "_حزمة"

#: ../iw/package_gui.py:376
msgid "_Size (MB)"
msgstr "ال_حجم (ميجابايت)"

#: ../iw/package_gui.py:427
msgid "Total size: "
msgstr "الحجم الكلّي: "

#: ../iw/package_gui.py:430
msgid "Select _all in group"
msgstr "اختر _كلّ ما في المجموعة"

#: ../iw/package_gui.py:434
msgid "_Unselect all in group"
msgstr "أ_زل اختيار كلّ ما في المجموعة"

#: ../iw/package_gui.py:471 ../textw/packages_text.py:63
msgid "Package Group Selection"
msgstr "اختيار مجموعة الحزم"

#: ../iw/package_gui.py:678
msgid "Minimal"
msgstr "أدنى"

#: ../iw/package_gui.py:740
#, python-format
msgid "Details for '%s'"
msgstr "تفاصيل '%s'"

#: ../iw/package_gui.py:749
msgid ""
"A package group can have both Base and Optional package members.  Base "
"packages are always selected as long as the package group is selected.\n"
"\n"
"Select the optional packages to be installed:"
msgstr ""
"يمكن أن تحتوي مجموعة الحزم كلاً من أعضاء الحزم الأساسيّة والاختياريّة.  الحزم "
"الأساسيّة مُحدّدة دائماً طلما أنّ مجموعة الحزم محدّدة.\n"
"\n"
"اختر الحزم الاختياريّة لتثبيتها:"

#: ../iw/package_gui.py:786
msgid "Base Packages"
msgstr "الحزم الأساسيّة"

#: ../iw/package_gui.py:816
msgid "Optional Packages"
msgstr "الحزم الاختياريّة"

#: ../iw/package_gui.py:1019
msgid "Details"
msgstr "التّفاصيل"

#: ../iw/package_gui.py:1113
msgid "_Select individual packages"
msgstr "ا_ختر الحزم فرديّاً"

#: ../iw/partition_dialog_gui.py:58
msgid "Additional Size Options"
msgstr "خيارات الحجم الإضافيّ"

#: ../iw/partition_dialog_gui.py:63
msgid "_Fixed size"
msgstr "_حجم ثابت"

#: ../iw/partition_dialog_gui.py:65
msgid "Fill all space _up to (MB):"
msgstr "املأ كلّ المساحة _حتّى (ميجابايت):"

#: ../iw/partition_dialog_gui.py:75
msgid "Fill to maximum _allowable size"
msgstr "املأ إلى أقصى حجم _مسموح"

#: ../iw/partition_dialog_gui.py:180
msgid "The end cylinder must be greater than the start cylinder."
msgstr "رقم cylinder النّهاية يجب أن يكون أكبر من رقم البداية."

#: ../iw/partition_dialog_gui.py:269 ../textw/partition_text.py:709
msgid "Add Partition"
msgstr "أضف قسمً"

#: ../iw/partition_dialog_gui.py:272
#, python-format
msgid "Edit Partition: /dev/%s"
msgstr "حرّر قسم: /dev/%s"

#: ../iw/partition_dialog_gui.py:274
msgid "Edit Partition"
msgstr "حرّر قسم"

#: ../iw/partition_dialog_gui.py:301 ../iw/raid_dialog_gui.py:292
msgid "File System _Type:"
msgstr "_نوع نظام الملفّات:"

#: ../iw/partition_dialog_gui.py:333
msgid "Allowable _Drives:"
msgstr "الأ_قراص المسموحة:"

#: ../iw/partition_dialog_gui.py:346
msgid "Drive:"
msgstr "السّوّاقة:"

#: ../iw/partition_dialog_gui.py:355
msgid "Original File System Label:"
msgstr "عنوان نظام الملفّات الأصلي:"

#: ../iw/partition_dialog_gui.py:390
msgid "_Start Cylinder:"
msgstr "ا_سطوانة البداية:"

#: ../iw/partition_dialog_gui.py:408
msgid "_End Cylinder:"
msgstr "اسطوا_نة النّهاية:"

#: ../iw/partition_dialog_gui.py:459
msgid "Force to be a _primary partition"
msgstr "فرض كونه قسماً أوّليّاً"

#: ../iw/partition_gui.py:362 ../textw/partition_text.py:1436
msgid "Type"
msgstr "النّوع"

#: ../iw/partition_gui.py:365
msgid "Format"
msgstr "تنسيق"

#: ../iw/partition_gui.py:367 ../textw/partition_text.py:1436
msgid "Start"
msgstr "بداية"

#: ../iw/partition_gui.py:368 ../textw/partition_text.py:1436
msgid "End"
msgstr "نهاية"

#: ../iw/partition_gui.py:405
msgid ""
"Mount Point/\n"
"RAID/Volume"
msgstr ""
"مكان التّثبيت/\n"
"RAID/كتلة"

#: ../iw/partition_gui.py:407
msgid ""
"Size\n"
"(MB)"
msgstr ""
"الحجم\n"
"(ميجابايت)"

#: ../iw/partition_gui.py:539 ../textw/partition_text.py:1430
msgid "Partitioning"
msgstr "التّجزئة"

#: ../iw/partition_gui.py:631
msgid "The following critical errors exist with your requested partitioning scheme."
msgstr "توجد الأخطاء الحرجة التّالية بخريطة التّجزئة التي طلبتها."

#: ../iw/partition_gui.py:634
#, python-format
msgid "These errors must be corrected prior to continuing with your install of %s."
msgstr "يجب تصحيح هذه الأخطاء قبل الاستمرار بتثبيت %s."

#: ../iw/partition_gui.py:640
msgid "Partitioning Errors"
msgstr "أخطاء التّجزئة"

#: ../iw/partition_gui.py:646
msgid "The following warnings exist with your requested partition scheme."
msgstr "توجد التّحذيرات التّالية بخريطة التّجزئة التي طلبتها."

#: ../iw/partition_gui.py:648
msgid "Would you like to continue with your requested partitioning scheme?"
msgstr "هل تودّ الاستمرار بخريطة التّجزئة التي طلبتها؟"

#: ../iw/partition_gui.py:653
msgid "Partitioning Warnings"
msgstr "تحذيرات التّجزئة"

#: ../iw/partition_gui.py:675
msgid "Format Warnings"
msgstr "تحذيرات التّنسيق"

#: ../iw/partition_gui.py:680
msgid "_Format"
msgstr "_تنسيق"

#: ../iw/partition_gui.py:715
msgid "LVM Volume Groups"
msgstr "مجموعات كتل LVM"

#: ../iw/partition_gui.py:750
msgid "RAID Devices"
msgstr "أجهزة RAID"

#: ../iw/partition_gui.py:778 ../iw/partition_gui.py:904
#: ../textw/partition_text.py:94 ../textw/partition_text.py:157
msgid "None"
msgstr "لاشيء"

#: ../iw/partition_gui.py:796 ../loader2/hdinstall.c:330
msgid "Hard Drives"
msgstr "الأقراص الصّلبة"

#: ../iw/partition_gui.py:867 ../textw/partition_text.py:139
#: ../textw/partition_text.py:178
msgid "Free space"
msgstr "المساحة الفارغة"

#: ../iw/partition_gui.py:869 ../textw/partition_text.py:141
msgid "Extended"
msgstr "مُمتد"

#: ../iw/partition_gui.py:871 ../textw/partition_text.py:143
msgid "software RAID"
msgstr "RAID برمجي"

#: ../iw/partition_gui.py:906
msgid "Free"
msgstr "فارغ"

#: ../iw/partition_gui.py:996 ../textw/partition_text.py:226
#, python-format
msgid "Could not allocate requested partitions: %s."
msgstr "لم يمكن تعيين التّجزيءات المطلوبة: %s."

#: ../iw/partition_gui.py:1005
#, python-format
msgid "Warning: %s."
msgstr "تحذير: %s."

#: ../iw/partition_gui.py:1189 ../iw/partition_gui.py:1203
msgid "Not supported"
msgstr "غير مدعوم"

#: ../iw/partition_gui.py:1190
msgid "LVM is NOT supported on this platform."
msgstr "LVM غير مدعوم على هذه البُنية"

#: ../iw/partition_gui.py:1204
msgid "Software RAID is NOT supported on this platform."
msgstr "RAID البرمجي غير مدعوم على هذه البُنية."

#: ../iw/partition_gui.py:1211
msgid "No RAID minor device numbers available"
msgstr "ليس هناك أرقام صُغرى لجهاز RAID متوفّرة"

#: ../iw/partition_gui.py:1212
msgid ""
"A software RAID device cannot be created because all of the available RAID "
"minor device numbers have been used."
msgstr ""
"لا يمكن إنشاء جهاز RAID برمجي لأنّ كلّ الأرقام المتوفّرةالصّغرى لجهاز RAID تمّ "
"استخدامها."

#: ../iw/partition_gui.py:1226
msgid "RAID Options"
msgstr "خيارات RAID"

#: ../iw/partition_gui.py:1237
#, python-format
msgid ""
"Software RAID allows you to combine several disks into a larger RAID "
"device.  A RAID device can be configured to provide additional speed and "
"reliability compared to using an individual drive.  For more information on "
"using RAID devices please consult the %s documentation.\n"
"\n"
"You currently have %s software RAID partition(s) free to use.\n"
"\n"
msgstr ""
"RAID البرامجي يمكنّك من جمع عدّة أقراص في جهاز RAID أكبر.  جهاز RAID يمكن "
"تهيئته كي يُوفّر سرعة إضافيّة و اعتماديّة مُقارنة باستخدام قرص مفرد.  للمزيد من "
"المعلومات حول استخدام أجهزة RAID راجع مستندات %s.\n"
"\n"
"لديك حاليّاً %s تقسيمات RAID برمجيّة قابلة للاستخدام.\n"
"\n"

#: ../iw/partition_gui.py:1248
msgid ""
"To use RAID you must first create at least two partitions of type 'software "
"RAID'.  Then you can create a RAID device which can be formatted and "
"mounted.\n"
"\n"
msgstr ""
"كي تستخدم RAID يجب أن يكون لديك تجزيئين من النّوع 'RAID برامجي'.  ثمّ يمكنك "
"إنشاء جهاز RAID والذي يمكن تنسيقه و تجهيزه.\n"
"\n"

#: ../iw/partition_gui.py:1254
msgid "What do you want to do now?"
msgstr "ما الذي تريد فعله الآن؟"

#: ../iw/partition_gui.py:1263
msgid "Create a software RAID _partition."
msgstr "أنشئ _قسم RAID برمجي."

#: ../iw/partition_gui.py:1266
#, python-format
msgid "Create a RAID _device [default=/dev/md%s]."
msgstr "إنشاء جهاز RAID [المفترض=/dev/md%s]."

#: ../iw/partition_gui.py:1270
#, python-format
msgid "Clone a _drive to create a RAID device [default=/dev/md%s]."
msgstr "استنساخ قرص لإنشاء جهاز RAID [المفترض=/dev/md%s]."

#: ../iw/partition_gui.py:1309
msgid "Couldn't Create Drive Clone Editor"
msgstr "لم يمكن إنشاء مُحرّر استنساخ القرص"

#: ../iw/partition_gui.py:1310
msgid "The drive clone editor could not be created for some reason."
msgstr "مُحرّر استنساخ القرص لم يمكن إنشاءه لسبب ما."

#: ../iw/partition_gui.py:1354
msgid "Ne_w"
msgstr "ج_ديد"

#: ../iw/partition_gui.py:1357
msgid "Re_set"
msgstr "ا_عادة للأصل"

#: ../iw/partition_gui.py:1358
msgid "R_AID"
msgstr "R_AID"

#: ../iw/partition_gui.py:1359
msgid "_LVM"
msgstr "_LVM"

#: ../iw/partition_gui.py:1400
msgid "Hide RAID device/LVM Volume _Group members"
msgstr "إخفاء أعضاء جهاز RAID/_مجموعة كتل LVM"

#: ../iw/partition_gui.py:1415 ../textw/partition_text.py:1520
msgid "Automatic Partitioning"