Bug 7084 - Create time on directories not stored properly in an EA in new create time code.
Summary: Create time on directories not stored properly in an EA in new create time code.
Status: RESOLVED FIXED
Alias: None
Product: Samba 3.5
Classification: Unclassified
Component: File services (show other bugs)
Version: 3.5.0pre2
Hardware: All Linux
: P3 regression
Target Milestone: ---
Assignee: Karolin Seeger
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-01 18:51 UTC by Jeremy Allison
Modified: 2020-12-11 07:18 UTC (History)
0 users

See Also:


Attachments
git-am format patch for 3.5.0. (1.16 KB, patch)
2010-02-01 21:02 UTC, Jeremy Allison
vl: review+
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jeremy Allison 2010-02-01 18:51:42 UTC
There is a premature optimization in the set_ea_dos_attribute() function that causes the user.DOSATTRIB extended attribute not to be written on a new directory, thus losing the stored Windows create time.

The problem comes when the calculated NT birthtime is identical to the birthtime stored on disk when the directory is actually created. As the stored btime is identical to the calculated btime, and the stored DOS attribute is identical to the calculated DOS attribute, the set_ea_dos_attribute() does not then create the underlying EA.

This breaks one of the new advertized features of 3.5.0 (the ability to store Windows create times in extended attributes) hence I'm logging this as a blocker. I have a fix (which I will post) and will add an smbtorture test for this to ensure no regression.

Karolin, Volker, Metze - if you disagree with the blocker status please downgrade accordingly.

Thanks,

Jeremy.
Comment 1 Jeremy Allison 2010-02-01 21:02:50 UTC
Created attachment 5254 [details]
git-am format patch for 3.5.0.

This fixes it for me (checked by the torture test checked in with git a35be8c0c2d804638d9eda5afb6c96ef2f090549.

Jeremy.
Comment 2 Jeremy Allison 2010-02-01 21:03:29 UTC
Comment on attachment 5254 [details]
git-am format patch for 3.5.0.

Once this is reviewed I'll re-assign to Karolin for inclusion in 3.5.0 final.
Jeremy.
Comment 3 Jeremy Allison 2010-02-02 10:39:07 UTC
Comment from initial reporter (who wishes to remain anonymous).

"I applied your changes and rebuilt samba, now XXXXXXXXXX and samba 3.5 work
BEAUTIFULLY together supporting ea."

I'd like to push this to 3.5.0 final, as it's a low risk fix (IMHO) with a test case to prevent regressions.

Jeremy.

Comment 4 Volker Lendecke 2010-02-03 00:52:58 UTC
Comment on attachment 5254 [details]
git-am format patch for 3.5.0.

This can go in IMO.

Volker
Comment 5 Karolin Seeger 2010-02-04 04:04:30 UTC
Pushed to v3-5-test, will be included in 3.5.0.
Closing out bug report.

Thanks!