[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-xfs
Subject: Re: Why problems with mount and strace
From: Eric Sandeen <sandeen () sgi ! com>
Date: 2004-04-26 17:13:25
Message-ID: 1082999605.9623.54.camel () stout ! americas ! sgi ! com
[Download RAW message or body]
I came across this again, and I have an answer for you... at least
relating to today's code.
xfs mount tries to start linvfs_xfs_syncd, which invokes a
kernel_thread(), which contains this code:
/* lock out any potential ptracer */
task_lock(task);
if (task->ptrace) {
task_unlock(task);
return -EPERM;
}
for security reasons... in short, when stracing, linvfs_xfs_syncd() fails,
and hence the mount fails.
-Eric
On Wed, 2003-09-24 at 05:06, Blizbor (IMA) wrote:
> Hi,
>
> I have tested something and I have found weird behaviour.
>
> I repeated the same for fstype in ext2, jfs, reiserfs and xfs curious
> how mkfs and mount
> are working (trying to trace whats wrong beetween drbd and xfs)
>
> strace -o mkfs.${fstype}.txt -ff mkfs.${fstype} /dev/xxx
> strace -o mount.${fstype} /dev/xxx /mountpoint
>
> I've got all mkfs logs.
> I've got all but xfs logs for mount.
>
> Telling the trueth, I've got log of mounting xfs but something weird
> happened.
> Mount without strace was working fine but "strace mount" was failed.
> (No such device, bad options ... easy to reproduce)
> Why I can't mount xfs and strace it ?
>
> Regards,
> Blizbor
--
Eric Sandeen [C]XFS for Linux http://oss.sgi.com/projects/xfs
sandeen@sgi.com SGI, Inc. 651-683-3102
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic