Re: [PATCH 4/4] hfsplus: add support of manipulation by attributes file

From
Hin-Tak Leung <hidden>
Date
2012-09-17 19:52:20
Reply to
Vyacheslav Dubeyko, 2012-09-17
Oh, yes, there was a small conflict at the end of super.c when I applied to 3.5.3:

---------------
@@ -641,6 +672,7 @@ static void __exit exit_hfsplus_fs(void)
 	 * destroy cache.
 	 */
 	rcu_barrier();
+	hfsplus_destroy_attr_tree_cache();
 	kmem_cache_destroy(hfsplus_inode_cachep);
 }
 
----------------
3.5.3 does not have the "rcu_barrier();" line for whatever reason - since the chunk seem to mean 'put  "hfsplus_destroy_attr_tree_cache();" towards the end of __exit exit_hfsplus_fs() just before the last line', that's what I did.

But as far as I remember that was the only conflict - that does not sound like what you describe though...

Hin-Tak
--- On Mon, 17/9/12, Vyacheslav Dubeyko <slava@dubeyko.com> wrote:
Hi Hin-Tak,

Now I understand clearly the reason of your issue. This is a
side effect of not clean patching of your kernel (3.5.3). I
worked with 3.4.6 kernel during implementation and I didn't
take into account some changing of hfsplus fs driver in next
kernel versions during patch set preparation. The 3.5.3
kernel has changing in super.c file that can't be merged
automatically with my patch set. So, if you applied patch
set by means of git then super.c file was left unchanged.
But patch for super.c contains very important changing which
to build attributes tree during file system mount and to
destroy ones during umount. Thereby, you have warnings about
failed searching in system log because of absence
constructed attributes tree in memory.

Currently, I am investigating issue with getting list of
attributes by means of getfattr. I am going to prepare new
patch set based under last actual kernel version after issue
resolving.

With the best regards,
Vyacheslav Dubeyko.

On Sep 15, 2012, at 8:49 PM, Hin-Tak Leung wrote:
quoted
--- On Sat, 15/9/12, Vyacheslav Dubeyko <slava@dubeyko.com>
wrote:
quoted
quoted
Hi Hin-Tak,

On Sep 15, 2012, at 4:11 AM, Hin-Tak Leung wrote:
quoted
Vyacheslav Dubeyko wrote:
quoted
Hi,

This patch adds support of manipulation by
attributes file.
quoted
quoted
With the best regards,
Vyacheslav Dubeyko.
--
From: Vyacheslav Dubeyko <slava@dubeyko.com>
Subject: [PATCH 4/4] hfsplus: add support
of
quoted
quoted
manipulation by attributes file
quoted
quoted
This patch adds support of manipulation by
attributes file.
quoted
quoted
Reported-by: Hin-Tak Leung <redacted>
Signed-off-by: Vyacheslav Dubeyko <slava@dubeyko.com>
NACK. It does not work (i.e. cannot read
attributes of
quoted
quoted
files which have them), and also generates a lot
of
quoted
quoted
warnings, "hfs: xattr searching failed".
quoted
The files I looked at are the font suitecase
files in
quoted
quoted
the /System/Library/Fonts directory.
quoted
By the way, do you really confident that any file
in your
quoted
quoted
/System/Library/Fonts folder have any extended
attribute?
quoted
quoted
On my Mac none file in /System/Library/Fonts folder
has any
quoted
quoted
extended attribute. Could you check presence on
extended
quoted
quoted
attributes under Mac OS X by means of `xattr -l`
command?
quoted
quoted
With the best regards,
Vyacheslav Dubeyko.
Sorry, that was a bit brief - I just have access to a
Mac OS X 10.7 box from time to time.
quoted
- There are 4 font suitecase files, which shows up to
have file size zero under linux, but not on Mac OS X. I
formatted the thumb drive under Mac Os X and copied with
Finder, but of course it might be something I don't
understand in the process.
quoted
- get a lot of "hfs: xattr searching failed" (about
20-ish per command) when I run getfattr on linux.
quoted
- It is a bit confusing apple talking about resource
forks and extended attributes as if they are they same
thing.
quoted
As an aside, one of the older experients, shows it to a
few files with  extended attributes
"com.apple.decmpfs". I looked it up, apple use this
atttribute to implement per-file compression - hiding the
file content compressed in the attribute while having the
data fork zero. (different and unrelated to the font issue).
This happens on mac os X 10.6 onwards.
quoted
--- On Sat, 15/9/12, Vyacheslav Dubeyko <slava@dubeyko.com>
wrote:
quoted
quoted
Hi,

On Sep 15, 2012, at 4:11 AM, Hin-Tak Leung wrote:
quoted
Vyacheslav Dubeyko wrote:
quoted
Hi,

This patch adds support of manipulation by
attributes file.
quoted
quoted
With the best regards,
Vyacheslav Dubeyko.
--
From: Vyacheslav Dubeyko <slava@dubeyko.com>
Subject: [PATCH 4/4] hfsplus: add support
of
quoted
quoted
manipulation by attributes file
quoted
quoted
This patch adds support of manipulation by
attributes file.
quoted
quoted
Reported-by: Hin-Tak Leung <redacted>
Signed-off-by: Vyacheslav Dubeyko <slava@dubeyko.com>
NACK. It does not work (i.e. cannot read
attributes of
quoted
quoted
files which have them), and also generates a lot
of
quoted
quoted
warnings, "hfs: xattr searching failed".
quoted
The files I looked at are the font suitecase
files in
quoted
quoted
the /System/Library/Fonts directory.


Could you share kernel version that you are using?

What utility do you use for getting of extended
attributes
quoted
quoted
list? I need more details for issue reproduction.

Could you share some more detailed output of system
log
quoted
quoted
related to the issue?
I patched over 3.5.3 with just the 4 patches.

I also have some messy scripts based on work from the
iphone hackery people to look at details at the low-level.
quoted
--
To unsubscribe from this list: send the line
"unsubscribe linux-fsdevel" in
quoted
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Thread (10 messages) 10 messages, 2 authors, last reply 2012-09-17
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help