Commit Graph

91 Commits

Author SHA1 Message Date
Far b5370af822 fix: codex clean
1. 修复可能对NULL指针解引用的场景
2. 将不修改内容的指针入参修改为const
3. 对getpgrp的返回值进行校验后再使用
4. 修复了局部变量未初始化的问题

Close #I3UOFN

Signed-off-by: Far <yesiyuan2@huawei.com>
2021-06-07 17:08:02 +08:00
openharmony_ci 3f16f1684a !248 fix: fix length typo
Merge pull request !248 from kenneth/los_queue.h
2021-05-22 09:13:46 +08:00
arvinzzz 8cde768588 refactor: Refactored the kernel boot process and added a init framework
close: #I3I768

Change-Id: I4f801df4abe1a9afdf43391c28276e96a5e81513
2021-05-20 16:45:43 +08:00
kenneth 12d98b144b fix: fix length typo
fix typos length、there、necessary

close https://gitee.com/openharmony/kernel_liteos_a/issues/I3RSY0
2021-05-18 14:33:59 +08:00
openharmony_ci 616ca955d5 !220 statfs不能正常显示FAT12和FAT16分区的空闲块和有效块
Merge pull request !220 from Far/fatfs
2021-05-15 10:01:28 +08:00
zhOu f76fa4a344 feature: support ipc copy fd to process 2021-05-11 14:56:09 +08:00
Far 9503c4a9fc fix: statfs can't get f_bfree and f_bavail of a FAT12/FAT16 partition
FAT12/FAT16 partition has no FSINFO sector storing the free cluster number,
so scanning the FAT is necessary to get the free clusters nums.

Close #I3Q0VS
2021-05-08 10:02:55 +08:00
mucor 04bcb11c3c fix:add vnode destory for unregister dev node
Change-Id: I2205bbf42e7c2339f81443ace6924b12f4fa1c09
2021-04-30 15:31:03 +08:00
mucor 749420308e fix:shell cmd rm -r crash when open target dir failed
Change-Id: I1146ab12b02aeef3f9a2a0422ee45936f5e4c105
2021-04-29 16:52:13 +08:00
openharmony_ci 1d0a3f022b !186 将VnodeInUseIter和VnodeFreeAll函数改为非递归
Merge pull request !186 from Far/dev
2021-04-29 10:04:50 +08:00
openharmony_ci 6467ebb2dd !194 PathCacheMemoryDump内存占用统计错误
Merge pull request !194 from Far/master
2021-04-29 09:58:45 +08:00
openharmony_ci 67f9f7506c !192 format函数错误分支未释放锁
Merge pull request !192 from Far/fatfs
2021-04-29 09:57:58 +08:00
Far 5f6656cb36 fix: VnodeInUseIter and VnodeFreeAll used to be recursive
Function VnodeInUseIter and VnodeFreeAll used to be recursive.
Now we traverse the current in-use vnode list to find the vnode in
1 filesystem

Close #I3NN3U
2021-04-28 14:35:29 +08:00
Far 87da7c794c fix: PathCacheMemoryDump miscalculate the RAM usage of PathCache
PathCacheMemoryDump miscalculate the RAM usage of PathCache for not
counting the name field of PathCache, which is allocated with PathCache

Close #I3OBXY
2021-04-28 14:31:31 +08:00
mucor aa34ffe7c7 fix:remove redundant code
Change-Id: I8662952ac9d7912aaf2e2e72f779b3def41d14c4
2021-04-28 09:57:32 +08:00
Far 9b2b700fa0 fix: some branch in format does not release the vnode mutex properly
if fatfs_mkfs returns a error, format may return without drop the vnode mutex, which may cause deadlock

Close #I3OFAY
2021-04-27 16:49:23 +08:00
chenjing af61187587 fix: fix the inappropriate errno in FatFs
The errno of unrecognized fat filesystem changes from ENOENT to ENOTSUP.

Close #I3O8IF
2021-04-26 16:18:51 +08:00
openharmony_ci be40fa1381 !178 当从hashtable中获取Vnode缓存时,需要刷新Vnode的parent指针
Merge pull request !178 from Far/fatfs
2021-04-24 11:30:01 +08:00
openharmony_ci fbdb808d11 !169 los_disk_cache_clear错误日志缺少换行符
Merge pull request !169 from Far/dev
2021-04-24 09:39:54 +08:00
Far 9f47faff73 fix: PathCacheFree try to free name field in struct PathCache
The name field of struct PathCache is not allocated. It should not try to free it by free(nc->name)

Close #I3NTH9
2021-04-23 15:28:44 +08:00
Far f32caa52c6 fix: parent point of vnode found by VfsHashGet should be updated
When fatfs_lookup find a vnode from hashlist, the field parent of vnode should be updated,
because the old parent may be reclaimed.

Close #I3NNFA
2021-04-22 16:24:08 +08:00
openharmony_ci dc90400456 !171 ftruncate新增支持FAT12与FAT16
Merge pull request !171 from JING/ftruncate
2021-04-22 15:21:21 +08:00
mucor e8178d5917 refresh parent vnode when get vnode from hash table
Change-Id: I3cc042b1fcd00022bc6ba48e2a05d70f351b83de
2021-04-22 11:23:25 +08:00
JING 3027cfe543 fix ftruncate 2021-04-22 11:12:28 +08:00
openharmony_ci 89ed41a016 !173 [Desc] fix bug: kernel crashed after rmdir the umounted folder
Merge pull request !173 from LeonChan/lc-master
2021-04-21 19:31:12 +08:00
LeonChan f305d1f702 fix: kernel crashed when delete a umounted folder 2021-04-21 18:35:15 +08:00
chenwei ac0d083b1c fix: kernel crashed after rmdir the umounted folder
Close: I3NGBT
Change-Id: I70130c42061e51f5978b48befea66a5925386343
2021-04-21 17:31:28 +08:00
chenjing b9c544d898 Description: [fix]ftruncate bugfix
Bug: #I3NEVN
Test:
2021-04-21 16:16:08 +08:00
Far 5f6f683fab style: los_disk_cache_clear error message has no \n(LF)
Close #I3NCDD
2021-04-21 11:01:09 +08:00
openharmony_ci 6ee33eb893 !165 【轻量级 PR】:update fs/vfs/vnode_hash.c.
Merge pull request !165 from 冷钦街/N/A
2021-04-21 08:37:54 +08:00
openharmony_ci 7dd3b59fb0 !166 【轻量级 PR】:update fs/vfs/mount.c.
Merge pull request !166 from 冷钦街/N/A
2021-04-21 08:37:09 +08:00
冷钦街 d7798fd0ab update fs/vfs/path_cache.c. 2021-04-20 22:16:09 +08:00
openharmony_ci 5605063950 !163 [Desc] add debug code to fix bug: kernel crashed after rmdir the umounted folder 3
Merge pull request !163 from LeonChan/lc-master
2021-04-20 19:09:47 +08:00
冷钦街 0566bccffa update fs/vfs/mount.c. 2021-04-20 18:35:15 +08:00
冷钦街 9bcead9a8f update fs/vfs/vnode_hash.c. 2021-04-20 18:26:48 +08:00
chenwei c6e921241b fix: kernel crashed when delete a umounted folder
Close: I3MZZ6
Change-Id: Iab3919a2eebb44c82531a7fa7a2f688ec4bcc5a0
2021-04-20 16:10:24 +08:00
Far 902a11de9a fix: lookup new vnode may cause parent vnode freeing
Close #I3MYP4

Change-Id: I533f4bacaf7e6dd500f5ac3ce4f5343b3b885988
2021-04-20 11:43:14 +08:00
Caoruihong 7e73c929a2 remove __cplusplus guards in .c files
Change-Id: I052d930d54e63179b17b77f02c107a015f3cfc3f
2021-04-19 18:28:25 +08:00
openharmony_ci 75a85e4483 !151 [Desc] add debug code to fix bug: kernel crashed after rmdir the umounted folder, parentVnode->data null
Merge pull request !151 from LeonChan/lc-master
2021-04-19 11:00:57 +08:00
openharmony_ci 23ee3689da !150 Initialize a parameter
Merge pull request !150 from JING/master
2021-04-19 10:18:25 +08:00
openharmony_ci 9920e359f8 !149 VfsProcfsOpen实现存在问题,没有调用具体procfs节点的存在的open函数
Merge pull request !149 from zhangfanfan2/master
2021-04-17 12:05:35 +08:00
chenwei 296274b60f add debug code to fix bug: kernel crashed after rmdir the umounted folder, parent->data null
Change-Id: I44981eb9475feb4604ffe91244b4dff00f7d1548
2021-04-17 11:44:03 +08:00
chenjing 9c13a59ac0 Description: [fix]Uninitialized parameter
Bug: #I2E08N
Test:
2021-04-17 10:04:29 +08:00
openharmony_ci 0e56ee6509 !147 fix capabilities in write and execute case
Merge pull request !147 from 野生毛霉君/master
2021-04-17 09:46:29 +08:00
zhangfanfan2 78e1fdb971 解决issueI3J6PP 2021-04-16 18:51:09 +08:00
mucor c6b898ea30 fix capabilities in write and execute case
Change-Id: Ic9abc53cd0aafa1fd6272fab8191493c609ea995
2021-04-16 17:33:40 +08:00
openharmony_ci 098da53afe !146 Fix the LFN dir entry leak in fatfs.
Merge pull request !146 from JING/master
2021-04-16 17:31:45 +08:00
openharmony_ci af2b0ac75b !144 用于检测umount栈溢出的调测功能
Merge pull request !144 from ysy4tc3/dev
2021-04-16 17:11:28 +08:00
JING 580ed3ea62 update fs/fat/virpart/src/virpart.c. 2021-04-16 15:49:35 +08:00
chenjing 77e8075f2f Description: [fix]Initialize parameter
Bug: Uninitialized parameter
Test:
2021-04-16 15:37:26 +08:00