* [Ocfs2-devel] [PATCH]ocfs2-1.2: Add dput for uuid entry.
@ 2008-05-07 6:48 Tao Ma
2008-05-07 9:14 ` Tao Ma
0 siblings, 1 reply; 4+ messages in thread
From: Tao Ma @ 2008-05-07 6:48 UTC (permalink / raw)
To: ocfs2-devel
In ocfs2-1.2, when we mount a device, a debugfs dir will be created
using its uuid. When 2 devices have the same uuid, after the 1st device
is mounted, the 2nd one can't be mounted. This is OK. But the problem is
that the dentry's reference is added. So when the 1st volume is
umounted, none of these 2 volumes can be mounted then. So this fix
solves this problem by dputting the entry(Copied from the latest debugfs
code in Linux kernel).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: debugfs.patch
Type: text/x-patch
Size: 446 bytes
Desc: not available
Url : http://oss.oracle.com/pipermail/ocfs2-devel/attachments/20080507/ffa93e59/attachment.bin
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Ocfs2-devel] [PATCH]ocfs2-1.2: Add dput for uuid entry.
2008-05-07 6:48 [Ocfs2-devel] [PATCH]ocfs2-1.2: Add dput for uuid entry Tao Ma
@ 2008-05-07 9:14 ` Tao Ma
2008-05-07 9:23 ` Tao Ma
0 siblings, 1 reply; 4+ messages in thread
From: Tao Ma @ 2008-05-07 9:14 UTC (permalink / raw)
To: ocfs2-devel
Some more information.
The git commit log in the kernel is:
65c333367b1aea57d58168ad3dc1df27b0227401
http://www.uwsg.indiana.edu/hypermail/linux/kernel/0611.3/0125.html.
In this patch the debugfs_remove is modified(dput is removed), but in
the latest fs/debugfs/inode.c, dput is still there. So now I really
don't know whether this function should be modified or not.
Any advice is welcomed.
Thanks.
Regards,
Tao
Tao Ma wrote:
> In ocfs2-1.2, when we mount a device, a debugfs dir will be created
> using its uuid. When 2 devices have the same uuid, after the 1st device
> is mounted, the 2nd one can't be mounted. This is OK. But the problem is
> that the dentry's reference is added. So when the 1st volume is
> umounted, none of these 2 volumes can be mounted then. So this fix
> solves this problem by dputting the entry(Copied from the latest debugfs
> code in Linux kernel).
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Ocfs2-devel mailing list
> Ocfs2-devel at oss.oracle.com
> http://oss.oracle.com/mailman/listinfo/ocfs2-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Ocfs2-devel] [PATCH]ocfs2-1.2: Add dput for uuid entry.
2008-05-07 9:14 ` Tao Ma
@ 2008-05-07 9:23 ` Tao Ma
2008-05-07 18:04 ` Joel Becker
0 siblings, 1 reply; 4+ messages in thread
From: Tao Ma @ 2008-05-07 9:23 UTC (permalink / raw)
To: ocfs2-devel
aha, sorry for the noise. :(
dput is added in the next commit 29a7f3ada7fea5510504c5359c3f70d109aeb055.
http://www.uwsg.indiana.edu/hypermail/linux/kernel/0611.3/0126.html
So here my question is should we patch these 2 patches into our
ocfs2-1.2 or just the 1st one?
Regards,
Tao
Tao Ma wrote:
> Some more information.
> The git commit log in the kernel is:
> 65c333367b1aea57d58168ad3dc1df27b0227401
> http://www.uwsg.indiana.edu/hypermail/linux/kernel/0611.3/0125.html.
>
> In this patch the debugfs_remove is modified(dput is removed), but in
> the latest fs/debugfs/inode.c, dput is still there. So now I really
> don't know whether this function should be modified or not.
>
> Any advice is welcomed.
> Thanks.
>
> Regards,
> Tao
>
> Tao Ma wrote:
>> In ocfs2-1.2, when we mount a device, a debugfs dir will be created
>> using its uuid. When 2 devices have the same uuid, after the 1st
>> device is mounted, the 2nd one can't be mounted. This is OK. But the
>> problem is that the dentry's reference is added. So when the 1st
>> volume is umounted, none of these 2 volumes can be mounted then. So
>> this fix solves this problem by dputting the entry(Copied from the
>> latest debugfs code in Linux kernel).
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Ocfs2-devel mailing list
>> Ocfs2-devel at oss.oracle.com
>> http://oss.oracle.com/mailman/listinfo/ocfs2-devel
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Ocfs2-devel] [PATCH]ocfs2-1.2: Add dput for uuid entry.
2008-05-07 9:23 ` Tao Ma
@ 2008-05-07 18:04 ` Joel Becker
0 siblings, 0 replies; 4+ messages in thread
From: Joel Becker @ 2008-05-07 18:04 UTC (permalink / raw)
To: ocfs2-devel
On Wed, May 07, 2008 at 05:23:32PM +0800, Tao Ma wrote:
> aha, sorry for the noise. :(
>
> dput is added in the next commit 29a7f3ada7fea5510504c5359c3f70d109aeb055.
> http://www.uwsg.indiana.edu/hypermail/linux/kernel/0611.3/0126.html
>
> So here my question is should we patch these 2 patches into our
> ocfs2-1.2 or just the 1st one?
Well, this is all stuff for debugfs, which is usually part of
the kernel, right? Or does El4 still not have it?
Joel
--
"I don't want to achieve immortality through my work; I want to
achieve immortality through not dying."
- Woody Allen
Joel Becker
Principal Software Developer
Oracle
E-mail: joel.becker at oracle.com
Phone: (650) 506-8127
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-05-07 18:04 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-07 6:48 [Ocfs2-devel] [PATCH]ocfs2-1.2: Add dput for uuid entry Tao Ma
2008-05-07 9:14 ` Tao Ma
2008-05-07 9:23 ` Tao Ma
2008-05-07 18:04 ` Joel Becker
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).