Skip to content

Could you provide docker file? #2

@httaotao

Description

@httaotao

hello, happy new year, today I want to run this fs with code, but there are too many error when I run hellofs-test.sh, my os info is these:

[root@fs ~]# cat /etc/os-release
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"

CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"

[root@fs ~]# uname  -r
3.10.0-1160.15.2.el7.x86_64

I also downloaded the rpm kernel-devel-3.10.0-1160.15.2.el7.x86_64.rpm, but it doesn't matter,

when I run the sh , the error liked these:

...
/root/hellofs-master/khellofs.c:67:26: error: expected ‘)’ before string constant
         printk(KERN_INFO "Sucessfully unregistered hellofs\n");
                          ^
/root/hellofs-master/khellofs.c:69:16: error: ‘KERN_ERR’ undeclared (first use in this function)
         printk(KERN_ERR "Failed to unregister hellofs. Error code: %d\n",
                ^
/root/hellofs-master/khellofs.c:69:25: error: expected ‘)’ before string constant
         printk(KERN_ERR "Failed to unregister hellofs. Error code: %d\n",
                         ^
/root/hellofs-master/khellofs.c: At top level:
/root/hellofs-master/khellofs.c:77:16: error: expected declaration specifiers or ‘...’ before string constant
 MODULE_LICENSE("GPL");
                ^
/root/hellofs-master/khellofs.c:78:15: error: expected declaration specifiers or ‘...’ before string constant
 MODULE_AUTHOR("accelazh");
               ^
cc1: some warnings being treated as errors
make[2]: *** [/root/hellofs-master/khellofs.o] Error 1
make[1]: *** [_module_/root/hellofs-master] Error 2
make[1]: Leaving directory `/usr/src/kernels/3.10.0-1160.15.2.el7.x86_64'
make: *** [ko] Error 2

so I want to know , Could you provide docker file ? maybe we can avoid many error, thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions