Bug 34356 - ошибка в обработке строки
Summary: ошибка в обработке строки
Status: NEW
Alias: None
Product: Branch p8
Classification: Distributions
Component: fuse-zfs (show other bugs)
Version: не указана
Hardware: all Linux
: P3 normal
Assignee: Andrey Cherepanov
QA Contact: qa-p8@altlinux.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-12-19 09:46 MSK by Anton Shevtsov
Modified: 2017-12-19 13:39 MSK (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anton Shevtsov 2017-12-19 09:46:45 MSK
не стартовал сервис zfs.
псмотрел что systemd запускает /usr/bin/zfs-fuse-helper start
запустил руками
sudo /usr/bin/zfs-fuse-helper start

получил 
Cleaning up stale zfs-fuse PID file in /var/run/zfs-fuse.pid
Starting zfs-fuse:                                                                                                                                                                                                                   [ DONE ]
Immunizing zfs-fuse against OOM kills/usr/bin/zfs-fuse-helper: line 86: /proc/ 26540/oom_score_adj: No such file or directory
/usr/bin/zfs-fuse-helper: line 89: echo_warning: command not found
code 1

увидел что в 86 строке затесался пробел
псмотрел исходник

    echo -n "Immunizing $prog against OOM kills"
    echo -17 > "/proc/$PID/oom_score_adj"

изменил на

    echo -n "Immunizing $prog against OOM kills"
    PID=`echo $PID|sed 's/ //g'`
    echo -17 > "/proc/$PID/oom_score_adj"

сервис запустился.. но это костыль. надо элегантнее.