Mailinglist Archive: yast-devel (129 mails)

< Previous Next >
[yast-devel] SCR usage statistics.
  • From: kkaempf@xxxxxxx (Klaus Kaempf)
  • Date: Thu, 15 Nov 2007 13:54:33 +0100
  • Message-id: <20071115125433.GA6570@xxxxxxxxxxxxx>

I scanned all files below /usr/share/YaST2/{modules,clients,include}
grepping for "SCR::". Just to get statistical relevant data, not for
complete coverage.

The goal is to get relevant data for a SCR redesign to be implemented
in parallel to the current SCR and have modules converted over time
and shut down SCR is some distant future.

Feedback is welcome. Both on current SCR and on future SCR usage.

Klaus

---------------------------


Initial observations

- Inspection (SCR::Dir) is used quite often

- Main use for SCR::Execute is shell scripts or shell-level
commands like mount, umount or remove.

- Quite some mis-uses of Execute like
- 'SCR::Execute(.curl.get)'
(should be 'SCR::Read(.curl)')
and
- 'SCR::Execute(.curl.setUserPassword)'
(should be SCR::Write(.curl.User.Password, ...)

- SCR::Read is mostly used to get specific values from config files
(.etc.sysconfig, .etc.install_inf, .content) and for harware probing.

- Some historical leftovers (like .modinfo.kernel.sound.oss which is
unsupported iirc)

- Some misuses can be spotted in the code, like reading complete files
and parsing them in YCP instead of using a SCR agent.


Raw results below.

Explanation: The SCR function (Dir, Read, Write) is leftmost. Then
each path element indented by 4 spaces. A paranthesed number means
this path is used multiple times.

-----
Dir
audio
alsa
cards (5)
etc
cups
cupsd_conf
section
value
hosts
imapd_conf
inittab (2)
install_inf (2)
install_inf_options
krb5_conf
s (4)
security
section
ssh
ssh_config
s (2)
grub
sections
modinfo
kernel
sound
oss (2)
modprobe_newid
install
modprobe_sound
options
modprobe_tv
install
options (2)
modules
options
network
section
product
features
section
value
providers
s (2)
sudo
sysconfig
SuSEfirewall2
bluetooth
hardware
section
network
providers
s
syseditor
section (2)
x_version
xawtvrc
s
yast2
groups
s
-----
Execute
audio
alsa
restore (3)
store (3)
background
kill (21)
run (4)
run_output (12)
run_output_err (6)
curl
easySSL
ftp
dir
get (4)
setUserPassword (2)
ldap
(5)
bind (3)
schema (2)
passwd
init (2)
scpm

enable
first
recover
resources
rebuild
rollback
sdconf (2)
slp
dereg
reg
subdomain (4)
target
bash (433)
bash_background (10)
bash_input
bash_ouptut
bash_output (240)
control
printer_reset
insmod
mkdir (45)
modprobe (13)
mount (18)
remove (67)
symlink (3)
umount (18)
tftp
get
put
thinkfinger
add-user
cancel
xml

string
-----
Read
addon
content
REGISTERPRODUCT
anyxml
background
buffer_out
isrunning (6)
newerr (4)
newlines (13)
newout (17)
output_open (18)
pid
status (5)
backup
free_space (2)
bluetooth
hcid
value
device
class
iscan
name
pscan
options
passkey
security
boot
vmlinuz_version
complain
content
BASEPRODUCT
BASEVERSION
DISTPRODUCT (2)
DISTVERSION
FLAGS
LABEL (2)
LANGUAGE
LINGUAS
PATTERNS
PRODUCT
RELNOTESURL
SHORTLABEL (2)
VENDOR
VERSION
cron
cups
classes
default_dest (2)
last_error
printers
remote (4)
dev
tty
etc
cryptotab
cups
client_conf
value
ServerName
default
passwd
crypt
group_crypt
fstab (5)
inetd_conf
services
inittab
ca
install_inf

AutoYaST
BrokenModules
Cdrom
Cmdline
DASD_Parameter
InitrdModules
Repair
iscsid
all
mtab
ntp_conf
all (2)
passwd
resolv_conf
domain
nameserver
process
search
shadow
xinetd_conf
services (6)
yp_conf
broadcast
defaultbroadcast
domainservers
servers
slp
genprof (2)
init
insserv_conf
scripts
comment
comments (2)
current_runlevel
default_runlevel (3)
exists (9)
runlevel (3)
runlevel_list (3)
runlevels
kickstart
ldap
error
schema
at (2)
oc (2)
search (16)
logparse (4)
logprof (2)
mail
fetchmail
accounts
ldaptable
postfix
auth
accounts
sendmail
auth
accounts
media
content
LINGUAS
PATTERNS
modules
options
net
hostnames
(7)
samba
showexports (2)
passwd
error (2)
group
pluslines
passwd
pluslines (2)
shadow
pluslines
ppd
db
changed
creation_status
modelname (10)
vendorname (8)
file
constraints
open (9)
options (6)
ppdinfo (2)
paper_size
all
sort_items
probe
architecture
bios (3)
bluetooth
boot_arch (2)
cdrom (13)
cpu (3)
disk (3)
display
dvb (2)
fingerprint
floppy
(4)
manual
framebuffer
has_pcmcia
has_smp
ide
ieee1394ctrl
is_uml
is_xen
isapnp
keyboard
manual
memory (4)
mouse
netcard (3)
pci (2)
pppoe (2)
printer
scsi (2)
sound (2)
status
storage (2)
system (4)
time_machines
tv (2)
uniqueid
usb
usbctrl
proc
cpuinfo
value
"0"
"flags" (2)
dasddev
filesystems (2)
meminfo (2)
modules (12)
mounts (8)
parport
devices
swaps
product
features
value
reports_confined (3)
reports_ess (3)
reports_parse (6)
reports_sched (6)
root
wgetrc
proxy_passwd
proxy_user
routes
run
df (3)
scpm
error (2)
exit_status
rg
(2)
group_default
group_map
status
slp
findattrs
findsrvs
findsrvtypes
unicastfindattrs
smb
queues
subdomain
subdomain_profiles (3)
sysconfig
SuSEfirewall2
FW_FORWARD_ALWAYS_INOUT_DEV
amavis
USE_AMAVIS
backup
RPMDB_BACKUP_DIR
bluetooth (3)
bootloader
LOADER_TYPE (4)
bootsplash
THEME
console
CONSOLE_ENCODING
CONSOLE_FONT
CONSOLE_MAGIC
CONSOLE_SCREENMAP
CONSOLE_UNICODEMAP
displaymanager
DISPLAYMANAGER (5)
DISPLAYMANAGER_AD_INTEGRATION
DISPLAYMANAGER_AUTOLOGIN
DISPLAYMANAGER_PASSWORD_LESS_LOGIN
DISPLAYMANAGER_REMOTE_ACCESS
hotplug
HOTPLUG_USB_STATIC_MODULES
ide
DEVICES_FORCE_IDE_DMA
irda
IRDA_MAX_BAUD_RATE
IRDA_PORT
kernel
INITRD_MODULES (4)
MODULES_LOADED_ON_BOOT (2)
language
INSTALLED_LANGUAGES
RC_LANG (4)
RC_LC_MESSAGES
ldap
BASE_CONFIG_DN
BIND_DN (2)
FILE_SERVER
lirc
LIRC_MODULE
mail
CONFIG_TYPE
FROM_HEADER
MAIL_CREATE_CONFIG (2)
SKIP_ASK
SMTPD_LISTEN_REMOTE
mouse
MOUSEDEVICE
network
config
NETWORKMANAGER
dhcp
DHCLIENT_MODIFY_NTP_CONF
ntp
NTPD_INITIAL_NTPDATE (2)
NTPD_RUN_CHROOTED
postfix
POSTFIX_DIALUP
POSTFIX_LOCALDOMAINS
POSTFIX_MASQUERADE_DOMAIN
POSTFIX_MDA
POSTFIX_NODNS
POSTFIX_RELAYHOST
proxy
FTP_PROXY
HTTPS_PROXY (2)
HTTP_PROXY (2)
NO_PROXY
PROXY_ENABLED (3)
scpm
BOOT_MODE
DEBUG
SWITCH_MODE
VERBOSE
security
CHECK_SIGNATURES
sendmail
MASQUERADE_DOMAINS
SENDMAIL_ARGS
SENDMAIL_EXPENSIVE
SENDMAIL_LOCALHOST
SENDMAIL_NOCANONIFY
SENDMAIL_SMARTHOST
SMTP_AUTH_MECHANISMS
sound
LOAD_SEQUENCER
suseconfig
ENABLE_SUSECONFIG
sysctl
ENABLE_SYSRQ
IP_FORWARD
windowmanager
"DEFAULT_WM"
DEFAULT_WM (2)
ypbind
YPBIND_BROADCAST
YPBIND_BROKEN_SERVER
YPBIND_LOCAL_ONLY
YPBIND_OPTIONS
ypserv
YPPWD_SRCDIR
target
dir (29)
etc
cryptotab
fstab
lstat (10)
size (144)
stat (22)
string (84)
symlink (4)
tmpdir (76)
yast2 (23)
ycp (34)
thinkfinger
exit_status (3)
state
udev_persistent
drivers
net
xauth
key
xml
(3)
error_message
xmlrepos
zypp_repos
-----
Write
FvwmCommand
lang
background
buffer_size
backup
file_append (3)
bluetooth
hcid
complain
cron
cups
classes
add
remove
default_dest (2)
printers
add
remove
dev
tty

nocr
prompt (2)
stderr
stderr_nocr
etc
cups
client_conf
(2)
value
ServerName
cupsd_conf (2)
printers_conf
default
passwd
defaultdomain
fstab
hosts
imapd_conf
(2)
allowplainwithouttls
inetd_conf
services
inittab
(5)
ca (3)
id (2)
x0
install_inf
iscsid
(2)
all
krb5_conf
ldap_conf
nsswitch_conf (4)
ntp_conf
pam_pkcs11_conf
resolv_conf
shadow
root
ssh
ssh_config
xinetd_conf
services (4)
yp_conf
firewall_service_definition
genprof (14)
init
scripts
default_runlevel
ldap
add
delete
modify (3)
logparse
logprof (14)
mail
fetchmail
postfix
auth
accounts
sendmail
auth
accounts
modprobe_newid
modprobe_sound
modprobe_tv
modules (3)
network
passwd
group
pluslines
groups
passwd
pluslines
shadow
users
ppd
db
check_method (2)
create
file
modify (3)
probe
status
configured (6)
product
features
reports_sched (3)
reportsched
root
curlrc (2)
wgetrc
(2)
proxy_passwd
proxy_user
routes
scpm
subdomain_profiles

reload
sudo (2)
sysconfig
SuSEfirewall2
amavis
USE_AMAVIS
apache
bluetooth (3)
bootloader
clock
console
displaymanager
(5)
DISPLAYMANAGER
DISPLAYMANAGER_AD_INTEGRATION
DISPLAYMANAGER_AUTOLOGIN
DISPLAYMANAGER_PASSWORD_LESS_LOGIN
DISPLAYMANAGER_REMOTE_ACCESS
DISPLAYMANAGER_ROOT_LOGIN_REMOTE
hardware (3)
hotplug
ide
irda
(3)
IRDA_PORT (2)
joystick
kernel
(4)
INITRD_MODULES (2)
MODULES_LOADED_ON_BOOT
keyboard
(2)
COMPOSETABLE
KBD_CAPSLOCK
KBD_DELAY
KBD_DISABLE_CAPS_LOCK
KBD_NUMLOCK
KBD_RATE
KBD_SCRLOCK
KBD_TTY
KEYTABLE
YAST_KEYBOARD

comment
language
ldap
lirc
(3)
LIRC_MODULE (2)
mail

FROM_HEADER
MAIL_CREATE_CONFIG
SMTPD_LISTEN_REMOTE
mouse
network
dhcp
(2)
DHCLIENT_MODIFY_NTP_CONF
providers (2)
ntp
postfix
POSTFIX_LOCALDOMAINS
POSTFIX_MASQUERADE_DOMAIN
POSTFIX_MDA
POSTFIX_RELAYHOST
POSTFIX_SMTP_AUTH
printer
proxy
(3)
FTP_PROXY (2)
HTTPS_PROXY
HTTP_PROXY (2)
NO_PROXY
PROXY_ENABLED
security
sendmail
MASQUERADE_DOMAINS
SENDMAIL_ARGS (2)
SENDMAIL_LOCALHOST
SENDMAIL_SMARTHOST
SMTP_AUTH_MECHANISMS
slmodemd
sound
LOAD_SEQUENCER
suse_register
SUBMIT_HWDATA
SUBMIT_OPTIONAL
suseconfig
sysctl
windowmanager
(2)
DEFAULT_WM
KDE_USE_IPV6
ypbind
syseditor
target
byte
passwd
cyrus
string (59)
ycp (39)
udev_persistent
drivers
net
rules
rules_comment
xauth
key
---
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG N├╝rnberg)

--
To unsubscribe, e-mail: yast-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-devel+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups
References