Re: [PATCH] INITRAMFS: Add option to preserve mtime from INITRAMFS cpio images

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Nye Liu
Date: Wednesday, September 3, 2008 - 4:30 pm

On Wed, Sep 03, 2008 at 04:19:55PM -0700, Andrew Morton wrote:

Hard to avoid, unless you want me composing the following every place 
i'm currently calling do_utime():


Can't! cpio isn't that smart!


LOL. You're the boss.


static void __init dir_utime(void)
{
        struct dir_entry *de, *tmp;
        list_for_each_entry_safe(de, tmp, &dir_list, list) {
                list_del(de);
                do_utime(de->name, de->mtime);
                kfree(de->name);
                kfree(de);
        }
}

something like that? I assume list_del(de) is fine.


-- 
Nye Liu
nliu@mrv.com
(818) 772-6235x248
(818) 772-0576 fax

"Who would be stupid enough to quote a fictitious character?"
	-- Don Quixote
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] INITRAMFS: Add option to preserve mtime from I ..., Nye Liu, (Wed Sep 3, 4:30 pm)
Re: [PATCH] INITRAMFS: Add option to preserve mtime from I ..., Frans Meulenbroeks, (Thu Sep 4, 12:11 am)