<div dir="ltr"><div><div><div><div><div>Hi! Maybe 'sunlink' file flag is set. Use 'ls -lo' to see that flag.<br>(<a href="https://www.dragonflybsd.org/cgi/web-man?command=chflags">https://www.dragonflybsd.org/cgi/web-man?command=chflags</a>)<br></div><br>$ touch file<br></div>$ chflags sunlink file<br></div>$ rm file<br>rm: file: Operation not permitted<br></div>$ chflags nosunlink file<br></div>$ rm file<br>$<br><div><div><div><div><div><br></div></div></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-12-18 5:24 GMT+03:00 Dongsheng Song <span dir="ltr"><<a href="mailto:dongsheng.song@gmail.com" target="_blank">dongsheng.song@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>After a power event, my release build broken:</div><div><br></div><div>DFLY-01# df -h</div><div>Filesystem Size Used Avail Capacity Mounted on</div><div>/dev/da0s1a 30G 3.7G 24G 13% /</div><div>devfs 1.0K 1.0K 0B 100% /dev</div><div>procfs 4.0K 4.0K 0B 100% /proc</div><div><br></div><div>DFLY-01# mount</div><div>/dev/da0s1a on / (ufs, local)</div><div>devfs on /dev (devfs, local)</div><div>procfs on /proc (procfs, local)</div></div><div><br></div><div>DFLY-01# ls -la /usr/release/root/bin/rcp<br></div><div>-r-sr-xr-x 1 root wheel 19848 Dec 17 01:11 /usr/release/root/bin/rcp</div><div><br></div><div>DFLY-01# rm -fr /usr/release/root/bin/rcp</div><div>rm: /usr/release/root/bin/rcp: Operation not permitted</div><div><br></div><div>I have 26 stubborn files in the release directly:</div><div><br></div><div><div><div>DFLY-01# find /usr/release/root -type f | xargs ls -la</div><div>-r-sr-xr-x 1 root wheel 19848 Dec 17 01:11 /usr/release/root/bin/rcp</div><div>-r-xr-xr-x 1 root wheel 97728264 Dec 17 01:19 /usr/release/root/boot/kernel/kernel</div><div>-r--r--r-- 1 root wheel 1273472 Dec 17 01:09 /usr/release/root/lib/libc.so.8</div><div>-r--r--r-- 1 root wheel 65176 Dec 17 01:09 /usr/release/root/lib/libcrypt.so.4</div><div>-r-xr-xr-x 1 root wheel 257216 Dec 17 01:08 /usr/release/root/libexec/ld-elf.so.2</div><div>-r-x------ 1 root wheel 730320 Dec 17 01:13 /usr/release/root/sbin/init</div><div>-r-sr-xr-x 6 root wheel 24632 Dec 17 01:17 /usr/release/root/usr/bin/chfn</div><div>-r-sr-xr-x 6 root wheel 24632 Dec 17 01:17 /usr/release/root/usr/bin/chpass</div><div>-r-sr-xr-x 6 root wheel 24632 Dec 17 01:17 /usr/release/root/usr/bin/chsh</div><div>-r-sr-xr-x 1 root wheel 32440 Dec 17 01:18 /usr/release/root/usr/bin/crontab</div><div>-r-sr-xr-x 1 root wheel 22048 Dec 17 01:18 /usr/release/root/usr/bin/login</div><div>-r-sr-xr-x 1 man wheel 38232 Dec 17 01:11 /usr/release/root/usr/bin/man</div><div>-r-sr-xr-x 1 root wheel 6912 Dec 17 01:18 /usr/release/root/usr/bin/opieinfo</div><div>-r-sr-xr-x 1 root wheel 13856 Dec 17 01:18 /usr/release/root/usr/bin/opiepasswd</div><div>-r-sr-xr-x 2 root wheel 8496 Dec 17 01:18 /usr/release/root/usr/bin/passwd</div><div>-r-sr-xr-x 1 root wheel 14024 Dec 17 01:18 /usr/release/root/usr/bin/rlogin</div><div>-r-sr-xr-x 1 root wheel 11440 Dec 17 01:18 /usr/release/root/usr/bin/rsh</div><div>-r-sr-xr-x 1 root wheel 16040 Dec 17 01:18 /usr/release/root/usr/bin/su</div><div>-r-sr-xr-x 6 root wheel 24632 Dec 17 01:17 /usr/release/root/usr/bin/ypchfn</div><div>-r-sr-xr-x 6 root wheel 24632 Dec 17 01:17 /usr/release/root/usr/bin/ypchpass</div><div>-r-sr-xr-x 6 root wheel 24632 Dec 17 01:17 /usr/release/root/usr/bin/ypchsh</div><div>-r-sr-xr-x 2 root wheel 8496 Dec 17 01:18 /usr/release/root/usr/bin/yppasswd</div><div>-r--r--r-- 1 root wheel 11184 Dec 17 01:13 /usr/release/root/usr/lib/libcipher.so.3</div><div>-r--r--r-- 1 root wheel 128368 Dec 17 01:09 /usr/release/root/usr/lib/thread/libc_r.so.5</div><div>-r--r--r-- 1 root wheel 90768 Dec 17 01:10 /usr/release/root/usr/lib/thread/libthread_xu.so.2</div><div>-r-sr-x--- 1 root network 15456 Dec 17 01:18 /usr/release/root/usr/sbin/sliplogin</div></div></div><div><br></div><div>Thanks.</div></div>
</blockquote></div><br></div>