DragonFly bugs List (threaded) for 2006-03
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
Re: Odd Filesystem Behavior
oh something else:
prometheus# ls -la
total 3
drwxr-xr-x 3 root wheel 512 Mar 25 10:37 .
drwxr-xr-x 3 root wheel 512 Mar 25 10:14 ..
dr-xr-xr-x 2 root wheel 512 Mar 2 16:03 empty
lrwxr-xr-x 1 root wheel 6 Mar 25 10:37 symlink -> empty/
prometheus# rm symlink/
rm: symlink/: is a directory
prometheus# rm -rf symlink/
recursively remove symlink/? y
rm: symlink/: Operation not permitted
prometheus# rm symlink
prometheus# ls -la
total 3
drwxr-xr-x 3 root wheel 512 Mar 25 10:37 .
drwxr-xr-x 3 root wheel 512 Mar 25 10:14 ..
dr-xr-xr-x 2 root wheel 512 Mar 2 16:03 empty
prometheus#
I think if i specify the / at the end of symlink it will actually
delete(or try to in this case) all sub folders if it can. Is that
normal? and if it is, should that be the desired behavior, if its a ln
-s link shouldnt it only delete the link rather than the contents of
what its linking to?
On 3/25/06, Kevin L. Kane <kevin.kane@xxxxxxxxx> wrote:
> I'm running 1.5.2 with all the changes to the FS system(BUF/IO?) stuff.
>
> prometheus# ls -la
> total 3
> drwxr-xr-x 3 root wheel 512 Mar 25 10:24 .
> drwxr-xr-x 3 root wheel 512 Mar 25 10:14 ..
> dr-xr-xr-x 2 root wheel 512 Mar 2 16:03 empty
> prometheus# chmod u+w empty/
> chmod: empty/: Operation not permitted
> prometheus# rm -rf empty/
> recursively remove empty/? y
> rm: empty/: Operation not permitted
> prometheus# rmdir empty/
> rmdir: empty/: Operation not permitted
> prometheus# whoami
> root
>
>
> I was very surprised by my not being able to delete or modify the
> perms on this file. Also:
>
> prometheus# ls
> empty
> prometheus# ln -s empty/ symlink
> prometheus# ls -la
> total 3
> drwxr-xr-x 3 root wheel 512 Mar 25 10:32 .
> drwxr-xr-x 3 root wheel 512 Mar 25 10:14 ..
> dr-xr-xr-x 2 root wheel 512 Mar 2 16:03 empty
> lrwxr-xr-x 1 root wheel 6 Mar 25 10:32 symlink -> empty/
> prometheus# rm -rf symlink/
> recursively remove symlink/? y
> rm: symlink/: Operation not permitted
> prometheus# ls -la
> total 3
> drwxr-xr-x 3 root wheel 512 Mar 25 10:32 .
> drwxr-xr-x 3 root wheel 512 Mar 25 10:14 ..
> dr-xr-xr-x 2 root wheel 512 Mar 2 16:03 empty
> lrwxr-xr-x 1 root wheel 6 Mar 25 10:32 symlink -> empty/
> prometheus# whoami
> root
> prometheus#
>
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]