1. 10 3月, 2022 1 次提交
  2. 08 3月, 2022 1 次提交
  3. 18 1月, 2022 1 次提交
  4. 06 11月, 2021 1 次提交
  5. 24 8月, 2021 1 次提交
  6. 22 8月, 2021 1 次提交
  7. 19 8月, 2021 1 次提交
    • T
      fix: fix syscall faccessat,fstatfs,fstatat & add 6 testcases · aa1cd245
      teamol 提交于
      1.modifications:
      modified:   testsuites/unittest/fs/BUILD.gn
      modified:   testsuites/unittest/fs/jffs/It_vfs_jffs.h
      renamed:    testsuites/unittest/fs/jffs/smoke/It_test_faccessat_001.cpp -> testsuites/unittest/fs/jffs/full/It_test_faccessat_001.cpp
      renamed:    testsuites/unittest/fs/jffs/smoke/It_test_faccessat_002.cpp -> testsuites/unittest/fs/jffs/full/It_test_faccessat_002.cpp
      renamed:    testsuites/unittest/fs/jffs/smoke/It_test_fstatat_001.cpp -> testsuites/unittest/fs/jffs/full/It_test_fstatat_001.cpp
      renamed:    testsuites/unittest/fs/jffs/smoke/It_test_fstatat_002.cpp -> testsuites/unittest/fs/jffs/full/It_test_fstatat_002.cpp
      renamed:    testsuites/unittest/fs/jffs/smoke/It_test_fstatfs_001.cpp -> testsuites/unittest/fs/jffs/full/It_test_fstatfs_001.cpp
      renamed:    testsuites/unittest/fs/jffs/smoke/It_test_fstatfs_002.cpp -> testsuites/unittest/fs/jffs/full/It_test_fstatfs_002.cpp
      modified:   testsuites/unittest/fs/jffs/vfs_jffs_test.cpp
      2.add 6 testcases:
      It_test_faccessat_001.cpp
      It_test_faccessat_002.cpp
      It_test_fstatat_001.cpp
      It_test_fstatat_002.cpp
      It_test_fstatfs_001.cpp
      It_test_fstatfs_002.cpp
      3.influence:
      none
      Signed-off-by: Nteamol <28105285@qq.com>
      aa1cd245
  8. 11 8月, 2021 1 次提交
  9. 10 8月, 2021 1 次提交
  10. 06 8月, 2021 1 次提交
  11. 05 8月, 2021 3 次提交
  12. 20 7月, 2021 1 次提交
    • F
      feat: 增加mount的MS_RDONLY标志的支持 · 8729f6ee
      Far 提交于
      增加mount的MS_RDONLY标志的支持,并修改vfs主要接口相关支持。
      1. fatfs lseek接口在分区以MS_RDONLY方式和文件以只读打开时不再能够扩大文件的大小。
      2. 直接在镜像中创建storage目录,而不是在挂载根文件系统时创建storage目录。
      3. 增加了MS_RDONLY的测试用例。
      
      Close #I3Z1W6
      Signed-off-by: NFar <yesiyuan2@huawei.com>
      8729f6ee
  13. 01 7月, 2021 2 次提交
    • V
      test: 修复了文件系统中jffs的全量用例和压测用例中出现的问题 · e57dc776
      vcbchang 提交于
      【背景】当前的fs中的jffs用例存在运行不通过的问题,现将其一一修复。
      
      【修改方案】
      1. 默认storage文件夹没有文件,如果存在,删除后测试
      2. BUG中存在判断不通过的情况,可能是移植过程中出现的变量判断错误,修改变量名正确通过
      3. 移植过程中没有考虑现在falsh的大小,有时会出现写入量过多而容量不够的情况,则通过减少写入量来解决问题。
      4. 为了尽量减少修改的内容,这里主要以更改全局宏大小或者在代码中修改变量的初始值。
      
      【影响】
      主要是jffs用例的写入flash的大小发生变化,其余没有影响。
      Signed-off-by: Nvcbchang <vcbchang@qq.com>
      Change-Id: I878fe3ad855e0e430bf7f36e066120893f756828
      e57dc776
    • B
      refactor: 对LiteOS_a内核中menuconfig开关的宏使用#ifdef/#ifndef做预编译处理 · 4e4f2d6d
      boxi 提交于
      LiteOS_a中有部分配置宏进行了重复冗余定义,导致当头文件未被包含时,极易引入错误,
      故对menuconfig配置宏进行统一处理,均使用#ifdef/#ifndef作为预编译判断方式
      
      Close #I3YEGS
      
      Change-Id: Ife6db770cc66de1d6199a4f3ba3950e9bfd0e71a
      Signed-off-by: Nboxi <lewis.liulei@huawei.com>
      4e4f2d6d
  14. 26 6月, 2021 1 次提交
    • F
      fix: 修复了内核的VFAT测试用例 · a8384b5d
      Far 提交于
      修复内容包括如下:
      1. 将memset_s中buffer的大小设置正确;
      2. 将用例文件夹名由vfat2修改为vfat;
      3. 修复了vfat用例在SetUpTestcase和TearDownTestCase;
      4. 全局变量g_fatFilesystem在初始化时设置为2(即FAT32);
      
      Close #I3XF3R
      Signed-off-by: NFar <yesiyuan2@huawei.com>
      a8384b5d
  15. 09 6月, 2021 1 次提交
    • C
      feat: support link/symlink/readlink · 6eddc869
      chenjing 提交于
      新增link/symlink/readlink接口的系统调用及内核实现,当前仅支持jffs2文件系统。具体接口说明如下:
      
      一、hard link
      接口原型:
      int link(const char *oldpath, const char *newpath);
      int linkat(int olddirfd, const char *oldpath, int newdirfd, const char *newpath, int flags);
      
      作用:
      创建oldpath的硬链接,名为newpath。
      
      功能说明:
      1、newpath与oldpath必须在同一挂载分区内。
      2、若newpath已存在,不会覆盖,错误码EEXIST。
      3、oldpath必须为普通文件或者软链接文件。
      4、如果oldpath是一个软链接文件,那么:
      若调用link接口或者linkat(flags=0),创建出软链接文件的硬链接;
      若调用linkat(flags = AT_SYMLINK_FOLLOW),创建出软链接所指向源文件的硬链接。
      5、oldpath与newpath对应同一个文件,对oldpath与newpath任一名字的操作都是直接操作文件,没有“原始文件”的说法。
      6、使用cp命令拷贝一个硬链接文件,生成文件的拷贝,新文件的nlink数为1。
      7、删除oldpath或newpath,底层文件仍存在,可以通过另一个path访问。只有当两个path都删除之后,才会真正将文件删除,空间释放。
      
      二、symbol link
      接口原型:
      int symlink(const char *target, const char *linkpath);
      int symlinkat(const char *target, int newdirfd, const char *linkpath);
      
      作用:
      创建一个软链接文件linkpath,存储字符串target。
      
      功能说明:
      1、target可以为任意字符串(长度小于PATH_MAX)。
      2、若linkpath文件名已存在,不会覆盖,错误码EEXIST。
      3、用readlink函数可读取软链接的target内容。
      4、软链接文件本身大小为target长度。
      5、ls时软链接文件类型显示为 'l'。
      6、symlink最大循环次数为CONFIG_FS_MAX_LNK_CNT(目前为40),超出则返回错误,错误码ELOOP。
      7、使用cp命令拷贝一个软链接文件:
      若target是一个文件:创建一个源文件的拷贝,类型为普通文件;
      若target非文件:拷贝失败。
      
      三、readlink
      接口原型:
      ssize_t readlink(const char *pathname, char *buf, size_t bufsiz);
      ssize_t readlinkat(int dirfd, const char *pathname, char *buf, size_t bufsiz);
      
      作用:
      读取软链接文件存放的的target内容。
      
      功能说明:
      1、pathname必须为软链接文件,否则错误码EINVAL。
      2、如果bufsiz小于target长度,则截断target。
      
      close #I3Q0OD
      
      Change-Id: I3864d6069b627b705a369e8e32dc1eb922dc0157
      Signed-off-by: Nchenjing <chenjing139@huawei.com>
      6eddc869
  16. 29 5月, 2021 1 次提交
    • L
      feat(build): 使用xts -notest选项时,内核用例不参与编译构建和用例编译配置方式调整 · 9bdf7164
      lnlan 提交于
      【背景】
      1.编译新增-notest选项为了排除用例参与构建,使用该选项时内核用例仍会参与构建,不符合预期
      2.用例编译配置选项太多,需调整优化
      【修改方案】
      1.原内核用例的源文件是通过框架自带的source_set(一种虚拟静态库)的方式组织的,
      不受unittests(自定义的一种方式)控制,修改为文件列表直接加入到unittest中。
      2.编译配置通过level控制
      【影响】
      对现有的产品编译不会有影响。
      
      Change-Id: I2c6a96e7276346de96f222b725d417418ff0e537
      9bdf7164
  17. 18 5月, 2021 1 次提交
  18. 15 5月, 2021 1 次提交
  19. 11 5月, 2021 1 次提交
  20. 10 5月, 2021 1 次提交
  21. 30 4月, 2021 2 次提交
  22. 29 4月, 2021 3 次提交
  23. 25 4月, 2021 1 次提交
    • L
      add testsuites · 778c5e17
      lnlan 提交于
      Change-Id: Ice1193d1ae7f2e0d12a2a38a306a6399407f5037
      778c5e17