Hello.
The PCFS filesystem does not create files/dirs like ".NET" :-)
Ok, I tried to dtrace PCFS flow in kernel, BUT if I run dtrace oneliner, the
PCFS works.
Can someone explain me why dtrace (non destructive) influences functionality of
kernel ??
M.C>
(attached output on my snv_123)
--
This message posted from opensolaris.org
r...@martin-nb:/# mkfile 10m /pcfs_dev
r...@martin-nb:/# LOFIDEV=`lofiadm -a /pcfs_dev`
r...@martin-nb:/# RLOFIDEV="`echo $LOFIDEV | sed 's/lofi/rlofi/'`"
r...@martin-nb:/# # following two lines is my workaround about bug in libfdisk
r...@martin-nb:/# mkdir -p /dev/rdsk//dev/rlofi/
r...@martin-nb:/# ln -s /dev/rlofi/1 /dev/rdsk/dev/rlofi/1p0
r...@martin-nb:/# fdisk -A 4:128:9:36:0:69:56:1:602:19866 $RLOFIDEV
r...@martin-nb:/# echo y | mkfs -F pcfs $RLOFIDEV:c
r...@martin-nb:/# mount -F pcfs $LOFIDEV:c /mnt
r...@martin-nb:/#
r...@martin-nb:/# cd /mnt
r...@martin-nb:/mnt#
r...@martin-nb:/mnt# let i=0; while [[ $i -le 10 ]]; do mkdir .NET; ls -lad
.NET; rmdir .NET; let i=i+1; done
.NET: No such file or directory
rmdir: directory ".NET": Directory does not exist
.NET: No such file or directory
rmdir: directory ".NET": Directory does not exist
.NET: No such file or directory
rmdir: directory ".NET": Directory does not exist
.NET: No such file or directory
rmdir: directory ".NET": Directory does not exist
.NET: No such file or directory
rmdir: directory ".NET": Directory does not exist
.NET: No such file or directory
rmdir: directory ".NET": Directory does not exist
.NET: No such file or directory
rmdir: directory ".NET": Directory does not exist
.NET: No such file or directory
rmdir: directory ".NET": Directory does not exist
.NET: No such file or directory
rmdir: directory ".NET": Directory does not exist
.NET: No such file or directory
rmdir: directory ".NET": Directory does not exist
.NET: No such file or directory
rmdir: directory ".NET": Directory does not exist
r...@martin-nb:/mnt#
r...@martin-nb:/mnt# dtrace -Fn 'syscall::mkdir*:entry { self->trc=1 }
syscall::mkdir*:return { self->trc=0 } fbt::: /self->trc/ {} ' > /dev/null &
[1] 2652
r...@martin-nb:/mnt# dtrace: description 'syscall::mkdir*:entry ' matched 88031
probes
r...@martin-nb:/mnt#
r...@martin-nb:/mnt# let i=0; while [[ $i -le 10 ]]; do mkdir .NET; ls -lad
.NET; rmdir .NET; let i=i+1; done
drwxrwxrwx 1 root root 512 Oct 10 13:24 .NET
drwxrwxrwx 1 root root 512 Oct 10 13:24 .NET
drwxrwxrwx 1 root root 512 Oct 10 13:24 .NET
drwxrwxrwx 1 root root 512 Oct 10 13:24 .NET
drwxrwxrwx 1 root root 512 Oct 10 13:24 .NET
drwxrwxrwx 1 root root 512 Oct 10 13:24 .NET
drwxrwxrwx 1 root root 512 Oct 10 13:24 .NET
drwxrwxrwx 1 root root 512 Oct 10 13:24 .NET
drwxrwxrwx 1 root root 512 Oct 10 13:24 .NET
drwxrwxrwx 1 root root 512 Oct 10 13:24 .NET
drwxrwxrwx 1 root root 512 Oct 10 13:24 .NET
r...@martin-nb:/mnt#
r...@martin-nb:/mnt# kill %1
r...@martin-nb:/mnt#
r...@martin-nb:/mnt#
[1]+ Done dtrace -Fn 'syscall::mkdir*:entry { self->trc=1 }
syscall::mkdir*:return { self->trc=0 } fbt::: /self->trc/ {} ' > /dev/null
r...@martin-nb:/mnt#
r...@martin-nb:/mnt# let i=0; while [[ $i -le 10 ]]; do mkdir .NET; ls -lad
.NET; rmdir .NET; let i=i+1; done
.NET: No such file or directory
rmdir: directory ".NET": Directory does not exist
.NET: No such file or directory
rmdir: directory ".NET": Directory does not exist
.NET: No such file or directory
rmdir: directory ".NET": Directory does not exist
.NET: No such file or directory
rmdir: directory ".NET": Directory does not exist
.NET: No such file or directory
rmdir: directory ".NET": Directory does not exist
.NET: No such file or directory
rmdir: directory ".NET": Directory does not exist
.NET: No such file or directory
rmdir: directory ".NET": Directory does not exist
.NET: No such file or directory
rmdir: directory ".NET": Directory does not exist
.NET: No such file or directory
rmdir: directory ".NET": Directory does not exist
.NET: No such file or directory
rmdir: directory ".NET": Directory does not exist
.NET: No such file or directory
rmdir: directory ".NET": Directory does not exist
r...@martin-nb:/mnt#
r...@martin-nb:/mnt#
r...@martin-nb:/mnt# dtrace -Fn 'syscall::mkdir*:entry { self->trc=1 }
syscall::mkdir*:return { self->trc=0 } fbt::: /self->trc/ {} ' > /dev/null &
[1] 2719
r...@martin-nb:/mnt#
r...@martin-nb:/mnt# dtrace: description 'syscall::mkdir*:entry ' matched 88031
probes
r...@martin-nb:/mnt#
r...@martin-nb:/mnt# let i=0; while [[ $i -le 10 ]]; do mkdir .NET; ls -lad
.NET; rmdir .NET; let i=i+1; done
drwxrwxrwx 1 root root 512 Oct 10 13:25 .NET
drwxrwxrwx 1 root root 512 Oct 10 13:25 .NET
drwxrwxrwx 1 root root 512 Oct 10 13:25 .NET
drwxrwxrwx 1 root root 512 Oct 10 13:25 .NET
drwxrwxrwx 1 root root 512 Oct 10 13:25 .NET
drwxrwxrwx 1 root root 512 Oct 10 13:25 .NET
drwxrwxrwx 1 root root 512 Oct 10 13:25 .NET
drwxrwxrwx 1 root root 512 Oct 10 13:25 .NET
drwxrwxrwx 1 root root 512 Oct 10 13:25 .NET
drwxrwxrwx 1 root root 512 Oct 10 13:25 .NET
drwxrwxrwx 1 root root 512 Oct 10 13:25 .NET
r...@martin-nb:/mnt#
r...@martin-nb:/mnt# uname -a
SunOS martin-nb 5.11 snv_123 i86pc i386 i86pc
_______________________________________________
dtrace-discuss mailing list
dtrace-discuss@opensolaris.org