惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

宝玉的分享
宝玉的分享
小众软件
小众软件
J
Java Code Geeks
I
InfoQ
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
腾讯CDC
L
LangChain Blog
博客园 - 司徒正美
量子位
Y
Y Combinator Blog
C
Check Point Blog
T
Tailwind CSS Blog
D
DataBreaches.Net
Blog — PlanetScale
Blog — PlanetScale
N
Netflix TechBlog - Medium
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
F
Fortinet All Blogs
云风的 BLOG
云风的 BLOG
A
About on SuperTechFans
B
Blog RSS Feed
酷 壳 – CoolShell
酷 壳 – CoolShell
大猫的无限游戏
大猫的无限游戏
V
V2EX
阮一峰的网络日志
阮一峰的网络日志

The Eclectic Light Company

Apple has released an update to XProtect for all macOS Hero or hooligan: Theseus’ later years Apple has released macOS Tahoe 26.5.1 In memoriam Mary Cassatt: 1, 1868-1880 Solutions to Saturday Mac riddles 362 What Location Services do in macOS Eclectic paintings of Joseph Stella: 2 European myths Last Week on My Mac: Razzle and dazzle Eclectic paintings of Joseph Stella: 1 American landscapes Saturday Mac riddles 362 Protect files with the Locked or Immutable flag Reading Visual Art: 252 Dragonfly What happens in the log when an app crashes as it starts up? Portraits of trees: Introduction On Reflection: Conclusions and contents Which tasks require mains power? Medium and message: Vast canvases Online reference to external displays for Apple silicon Macs What’s in that phishing email? Hero or hooligan: Theseus and Ariadne Solutions to Saturday Mac riddles 361 How to search document versions Rubens’ Consequences of War Rubens’ Peace and War Saturday Mac riddles 361 How to search Time Machine backups? Naturalists: Contents and artists On Reflection: Extending the image Tackle QuickLook problems Medium and message: Pottery
BSD flags are incompatible with iCloud Drive
hoakley · 2026-06-02 · via The Eclectic Light Company

Last week I reported that the Finder’s Locked file setting doesn’t work properly with iCloud Drive. As that’s one of a group of eight BSD flags supported in APFS, this article examines how iCloud Drive in macOS 26.5 handles those flags, and whether any of them are compatible. Its TL; DR is don’t let files with BSD flags near iCloud Drive, as they don’t work and will only upset it.

According to man chflags, that command tool currently supports a total of eight BSD flags:

  • arch to set the archived flag (super-user)
  • hidden to set the hidden flag, so hiding the file
  • nodump to set the nodump flag
  • opaque to set the opaque flag, making a directory opaque when viewed through a union mount
  • sappnd to set the system append-only flag (super-user)
  • schg to set the system immutable flag (super-user)
  • uappnd to set the user append-only flag
  • uchg to set the user immutable flag.

In APFS file systems, those are stored in the bsd_flags value in a file’s inode, so should be well-preserved in file operations.

To assess all these in macOS 26.5, I created a folder of eight small RTF files, and set each of the flags on one of those files using chflags in Terminal. To confirm the flags had been successfully set, the directory contents were listed using ls -lO:
ls -lO /Users/hoakley/Documents/0bsdflags
total 64
-rw-r--r--@ 1 hoakley staff arch 1675 13 Jul 2025 arch.rtf
-rw-r--r--@ 1 hoakley staff hidden 1675 13 Jul 2025 hidden.rtf
-rw-r--r--@ 1 hoakley staff nodump 1675 13 Jul 2025 nodump.rtf
-rw-r--r--@ 1 hoakley staff opaque 1675 13 Jul 2025 opaque.rtf
-rw-r--r--@ 1 hoakley staff sappnd 1675 13 Jul 2025 sappnd.rtf
-rw-r--r--@ 1 hoakley staff schg 1675 13 Jul 2025 schg.rtf
-rw-r--r--@ 1 hoakley staff uappnd 1675 13 Jul 2025 uappnd.rtf
-rw-r--r--@ 1 hoakley staff uchg 1675 13 Jul 2025 uchg.rtf

The whole folder was moved (not copied) into iCloud Drive, and allowed to sync. Of the eight files, three were shown with an iCloud Drive error: sappnd, schg and uappnd. In addition, the uchg flag was stripped as a result of that move, but the seven other flags remained when viewed from the same Mac:
ls -lO /Users/hoakley/Library/Mobile\ Documents/com\~apple\~CloudDocs/backup1/0bsdflags
total 64
-rw-r--r--@ 1 hoakley staff arch 1675 13 Jul 2025 arch.rtf
-rw-r--r--@ 1 hoakley staff hidden 1675 13 Jul 2025 hidden.rtf
-rw-r--r--@ 1 hoakley staff nodump 1675 13 Jul 2025 nodump.rtf
-rw-r--r--@ 1 hoakley staff opaque 1675 13 Jul 2025 opaque.rtf
-rw-r--r--@ 1 hoakley staff sappnd 1675 13 Jul 2025 sappnd.rtf
-rw-r--r--@ 1 hoakley staff schg 1675 13 Jul 2025 schg.rtf
-rw-r--r--@ 1 hoakley staff uappnd 1675 13 Jul 2025 uappnd.rtf
-rw-r--r--@ 1 hoakley staff - 1675 13 Jul 2025 uchg.rtf

When that iCloud Drive folder had synced with a separate Mac also running macOS 26.5, the three files that had been showing an iCloud error on the first Mac, bearing the sappnd, schg and uappnd flags, had failed to sync to iCloud Drive and weren’t visible on the second Mac. None of the flags could be detected on that second Mac using ls -lO, and the file flagged as being hidden was fully visible in the synced folder.

Thus the eight BSD flags behaved as follows:

  • arch file synced, not flag
  • hidden file synced, not flag
  • nodump file synced, not flag
  • opaque file synced, not flag
  • sappnd file not synced, iCloud error
  • schg file not synced, iCloud error
  • uappnd file not synced, iCloud error
  • uchg flag stripped completely, file synced without flag.

On the first, originating Mac, the iCloud error with sappnd, schg and uappnd flags started a prolonged sync. I therefore removed the folder containing these test files from iCloud Drive, returning it to its original location. That left the eight files in the state they had been in, with the uchg flag removed, but the other flags unchanged. However, the sync persisted, and was only terminated by restarting that Mac.

As none of these flags synced in iCloud Drive, one was stripped by moving the file to iCloud Drive, and three resulted in sync errors, it’s safe to conclude that in its current state, iCloud Drive is incompatible with these BSD flags, and their use on files in iCloud Drive should be avoided. As iCloud Drive has now adopted the FileProvider framework common to other cloud sharing services, and it appears likely that these problems result from shortcomings in that framework, this incompatibility may thus affect other cloud services using FileProvider, such as Dropbox and Microsoft OneDrive.