cosfs icon indicating copy to clipboard operation
cosfs copied to clipboard

开启历史版本下 `cp` 会产生空文件

Open z0z0r4 opened this issue 10 months ago • 1 comments

例如 cp -r dump/* /cos_mount,每个文件都会产生对应的空文件,然后被实际上传的文件替代,成为历史版本

这个过程前后只有 10s 不到,从 COS 记录的时间来看

image

不知道是 cp 本身的原理还是 COSFS 设计有问题?

z0z0r4 avatar Jan 15 '25 06:01 z0z0r4

❯ cosfs --version
Tencentyun Object Storage Service File System V1.0.22(commit:175e79e) with OpenSSL
License GPL2: GNU GPL version 2 <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
❯ neofetch
       _,met$$$$$gg.          root@mcimirror-top
    ,g$$$$$$$$$$$$$$$P.       ------------------
  ,g$$P"     """Y$$.".        OS: Debian GNU/Linux 12 (bookworm) x86_64
 ,$$P'              `$$$.     Host: KVM/QEMU (Standard PC (i440FX + PIIX, 1996) pc-i440fx-8.1)
',$$P       ,ggs.     `$$b:   Kernel: 6.1.0-21-cloud-amd64
`d$$'     ,$P"'   .    $$$    Uptime: 3 days, 15 hours, 56 mins
 $$P      d$'     ,    $$P    Packages: 737 (dpkg)
 $$:      $$.   -    ,d$$'    Shell: zsh 5.9
 $$;      Y$b._   _,d$P'      Terminal: /dev/pts/0
 Y$$.    `.`"Y$$$$P"'         CPU: Intel Xeon E3-12xx v2 (Ivy Bridge) (8) @ 3.499GHz
 `$$b      "-.__              GPU: 00:02.0 Vendor 1234 Device 1111
  `Y$$                        Memory: 3854MiB / 7956MiB
   `Y$$.
     `$$b.
       `Y$$b.
          `"Y$b._
              `"""

z0z0r4 avatar Jan 15 '25 06:01 z0z0r4