kuaipan4uk cannot stop scan if softink creates a circle in file tree

Bug #1252180 reported by Luo Lei
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kuaipan4uk
Confirmed
Low
Luo Lei

Bug Description

当软链接构成环时,kuaipan4uk 会一直扫描。经查inotify 没有问题,应该是SDK缺少判断。

Tags: ubuntukylin
Revision history for this message
tangsir (txdlky) wrote :

能否这么解决:不允许在快盘目录下建立软连接。

Revision history for this message
Ma Jun (maclin.jun) wrote :

现在只是监控目录变化,要禁止创建软链接可能有一定难度。关键需要SDK进行调整,如果SDK无法调整,可以在扫描之前自己遍历一下目录检查是否存在路径环?

Revision history for this message
tangsir (txdlky) wrote :

如果性能损失不大的话,马博士的建议也不错。目录变化不包含建立软连接吗?

Revision history for this message
Luo Lei (luolei) wrote : Re: [Ubuntukylin-members] [Bug 1252180] Re: kuaipan4uk cannot stop scan if softink creates a circle in file tree

问了金山,sdk考虑过软链接的问题,但因为太复杂而放弃。扫描使用非常频繁,如果写得不好,效率会很低。如果禁止软链接,会导致某些功能失效,如通过软链接链接到快盘同步目录以外的文件夹。

Ma Jun <email address hidden>编写:

>现在只是监控目录变化,要禁止创建软链接可能有一定难度。关键需要SDK进行调整,如果SDK无法调整,可以在扫描之前自己遍历一下目录检查是否存在路径环?
>
>--
>You received this bug notification because you are a member of Ubuntu
>Kylin Members, which is subscribed to kuaipan4uk.
>https://bugs.launchpad.net/bugs/1252180
>
>Title:
> kuaipan4uk cannot stop scan if softink creates a circle in file tree
>
>Status in KuaiPan for Ubuntu Kylin:
> Triaged
>
>Bug description:
> 当软链接构成环时,kuaipan4uk 会一直扫描。经查inotify 没有问题,应该是SDK缺少判断。
>
>To manage notifications about this bug go to:
>https://bugs.launchpad.net/kuaipan4uk/+bug/1252180/+subscriptions
>
>--
>Mailing list: https://launchpad.net/~ubuntukylin-members
>Post to : <email address hidden>
>Unsubscribe : https://launchpad.net/~ubuntukylin-members
>More help : https://help.launchpad.net/ListHelp

Revision history for this message
Jack Yu (jackyu) wrote :

恩,折中的方案应该是:在发现文件变化时,先检查文件(或文件夹)类型,如判断为软链接,就检查是否有循环;如有,就自动加入到不同步的文件列表中。

Changed in kuaipan4uk:
assignee: nobody → Jack Yu (jackyu)
assignee: Jack Yu (jackyu) → nobody
milestone: none → final
Revision history for this message
Luo Lei (luolei) wrote :

这样做不完全。用户很可能是在快盘没启动时建立的链接。而目前的监控机制比较简单,增加此判断需要的修改太大。建议和快盘其它版本一样暂时先不处理。

发自我的小米手机

Jack Yu <email address hidden>编写:

>恩,折中的方案应该是:在发现文件变化时,先检查文件(或文件夹)类型,如判断为软链接,就检查是否有循环;如有,就自动加入到不同步的文件列表中。
>
>** Changed in: kuaipan4uk
> Milestone: None => final
>
>--
>You received this bug notification because you are a member of Ubuntu
>Kylin Members, which is subscribed to kuaipan4uk.
>https://bugs.launchpad.net/bugs/1252180
>
>Title:
> kuaipan4uk cannot stop scan if softink creates a circle in file tree
>
>Status in KuaiPan for Ubuntu Kylin:
> Triaged
>
>Bug description:
> 当软链接构成环时,kuaipan4uk 会一直扫描。经查inotify 没有问题,应该是SDK缺少判断。
>
>To manage notifications about this bug go to:
>https://bugs.launchpad.net/kuaipan4uk/+bug/1252180/+subscriptions
>
>--
>Mailing list: https://launchpad.net/~ubuntukylin-members
>Post to : <email address hidden>
>Unsubscribe : https://launchpad.net/~ubuntukylin-members
>More help : https://help.launchpad.net/ListHelp

Revision history for this message
Jack Yu (jackyu) wrote :

好的,等V2.0再说。

Changed in kuaipan4uk:
milestone: final → 2.0-alpha
assignee: nobody → Luo Lei (luolei)
tags: added: ubuntukylin
Luo Lei (luolei)
Changed in kuaipan4uk:
importance: Critical → Low
milestone: 2.0-beta → none
status: Triaged → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.