get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/1.2/patches/2220012/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 2220012,
    "url": "http://patchwork.ozlabs.org/api/1.2/patches/2220012/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-ext4/patch/20260405195007.1306-6-DefendTheDisabled@gmail.com/",
    "project": {
        "id": 8,
        "url": "http://patchwork.ozlabs.org/api/1.2/projects/8/?format=api",
        "name": "Linux ext4 filesystem development",
        "link_name": "linux-ext4",
        "list_id": "linux-ext4.vger.kernel.org",
        "list_email": "linux-ext4@vger.kernel.org",
        "web_url": null,
        "scm_url": null,
        "webscm_url": null,
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20260405195007.1306-6-DefendTheDisabled@gmail.com>",
    "list_archive_url": null,
    "date": "2026-04-05T19:50:01",
    "name": "[5/6] fat: map ptime to FAT creation time with rename-over",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "d561895633441885f1d102217c2aa8350ad8a764",
    "submitter": {
        "id": 93064,
        "url": "http://patchwork.ozlabs.org/api/1.2/people/93064/?format=api",
        "name": "Sean Smith",
        "email": "defendthedisabled@gmail.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linux-ext4/patch/20260405195007.1306-6-DefendTheDisabled@gmail.com/mbox/",
    "series": [
        {
            "id": 498804,
            "url": "http://patchwork.ozlabs.org/api/1.2/series/498804/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-ext4/list/?series=498804",
            "date": "2026-04-05T19:49:56",
            "name": "provenance_time (ptime): a new settable timestamp for cross-filesystem provenance",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/498804/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2220012/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2220012/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "\n <SRS0=XNCA=CE=vger.kernel.org=linux-ext4+bounces-15647-patchwork-incoming=ozlabs.org@ozlabs.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "linux-ext4@vger.kernel.org"
        ],
        "Delivered-To": [
            "patchwork-incoming@legolas.ozlabs.org",
            "patchwork-incoming@ozlabs.org"
        ],
        "Authentication-Results": [
            "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20251104 header.b=XdDrRQQ5;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=ozlabs.org\n (client-ip=2404:9400:2221:ea00::3; helo=mail.ozlabs.org;\n envelope-from=srs0=xnca=ce=vger.kernel.org=linux-ext4+bounces-15647-patchwork-incoming=ozlabs.org@ozlabs.org;\n receiver=patchwork.ozlabs.org)",
            "gandalf.ozlabs.org;\n arc=pass smtp.remote-ip=\"2600:3c04:e001:36c::12fc:5321\"\n arc.chain=subspace.kernel.org",
            "gandalf.ozlabs.org;\n dmarc=pass (p=none dis=none) header.from=gmail.com",
            "gandalf.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20251104 header.b=XdDrRQQ5;\n\tdkim-atps=neutral",
            "gandalf.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c04:e001:36c::12fc:5321; helo=tor.lore.kernel.org;\n envelope-from=linux-ext4+bounces-15647-patchwork-incoming=ozlabs.org@vger.kernel.org;\n receiver=ozlabs.org)",
            "smtp.subspace.kernel.org;\n\tdkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com\n header.b=\"XdDrRQQ5\"",
            "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=209.85.167.176",
            "smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=gmail.com",
            "smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=gmail.com"
        ],
        "Received": [
            "from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fpjm65KXHz1xy1\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 06 Apr 2026 05:52:22 +1000 (AEST)",
            "from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3])\n\tby gandalf.ozlabs.org (Postfix) with ESMTP id 4fpjm64rQNz4wG6\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 06 Apr 2026 05:52:22 +1000 (AEST)",
            "by gandalf.ozlabs.org (Postfix)\n\tid 4fpjm64kwDz4wG7; Mon, 06 Apr 2026 05:52:22 +1000 (AEST)",
            "from tor.lore.kernel.org (tor.lore.kernel.org\n [IPv6:2600:3c04:e001:36c::12fc:5321])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby gandalf.ozlabs.org (Postfix) with ESMTPS id 4fpjm21kpPz4wG6\n\tfor <patchwork-incoming@ozlabs.org>; Mon, 06 Apr 2026 05:52:18 +1000 (AEST)",
            "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby tor.lore.kernel.org (Postfix) with ESMTP id 96A2D300538C\n\tfor <patchwork-incoming@ozlabs.org>; Sun,  5 Apr 2026 19:50:54 +0000 (UTC)",
            "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 4DC42342173;\n\tSun,  5 Apr 2026 19:50:48 +0000 (UTC)",
            "from mail-oi1-f176.google.com (mail-oi1-f176.google.com\n [209.85.167.176])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))\n\t(No client certificate requested)\n\tby smtp.subspace.kernel.org (Postfix) with ESMTPS id CB2F837F015\n\tfor <linux-ext4@vger.kernel.org>; Sun,  5 Apr 2026 19:50:46 +0000 (UTC)",
            "by mail-oi1-f176.google.com with SMTP id\n 5614622812f47-470145d7e6fso433608b6e.2\n        for <linux-ext4@vger.kernel.org>;\n Sun, 05 Apr 2026 12:50:46 -0700 (PDT)",
            "from localhost.localdomain (c-73-5-99-191.hsd1.la.comcast.net.\n [73.5.99.191])\n        by smtp.gmail.com with ESMTPSA id\n 5614622812f47-46f46160155sm4547428b6e.17.2026.04.05.12.50.42\n        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n        Sun, 05 Apr 2026 12:50:44 -0700 (PDT)"
        ],
        "ARC-Seal": [
            "i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1775418742; cv=pass;\n\tb=snNx4FWJhvE7wNpkPaeMkPm8xEh5GHZZ8GNIbsYwjnu3C9fZaxULLuA0wECMzcyivrnOqX+VYJJNhJed2b+g1h1gPHzQK7ebq8ys79dFRLJLWoH9B+F86+Bo+Zc3Tnlxvpus1NyvU8SKJvE61hLs0G1nZG2XKIvSaYbQ7eMjgIuslaYneTxjDnb7rvDjTZwUYqErojruGqEEHm8b8h7bQUV9hBlBtbQnutkGsdCqkYPTS8l5wT8TdL2X7sgndc6inxma2wB1qLYXF4p091GqAD5C4nmbYjWHUZrNy2wnD/E9E3WTaRPccobu06tLI0V29QiDgr3kqqZ7lBmlsnWSWw==",
            "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1775418648; cv=none;\n b=K9TXlbK6Gks7/wKPBwqCfRbrCt1f+2DQAJmV6LpbggJtSCSpKp/Z6jFDfLvHtB7BN9qf7n2Yvvs6bldRJ10jVcPe/W+A6ezmXgjD71isAQu2Wigoss8eiDcjVF9c8CRy2XWH8dfohcccJNM8vGIr8H77HnQW4k53nc/1IbXDl8w="
        ],
        "ARC-Message-Signature": [
            "i=2; a=rsa-sha256; d=ozlabs.org; s=201707;\n\tt=1775418742; c=relaxed/relaxed;\n\tbh=K8lGtdviJ/yNeFObSgzOPOsYD9zf1PXG9ZhAjN6EY4Q=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=eL9KbVfWPSNUkV+GA3n3fino6t+huT/DqhwSYct44lQx8wJgKd36DY6vtMFu804HsRrCuIs9VG9+RWK1s9cm7ibEZt1JM18r7vReTQKYccYRPdAXqStuSstoj6EVTq1NmIA1KxQATihxvJazYDKh63HE5H6W2ZhAQcrwC2Fh1hbQalbcda04/2kc+afDgHBNzVZFooatP5Jaw6b8I1IFBNhA0J8F5NdX5dAP/VSKJS00WC4du2GIqxKz8e6+9HyVMIUDLQGTB03VEzUFAvCYKLqotmnbdDcuGg0Lj66YmF50Z0UroWgj2soBnCnWPLAQsQ28HtHYKP27iU3z2xq/FA==",
            "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1775418648; c=relaxed/simple;\n\tbh=Y0VePmfDKqj2Wr4uBDtOu+PZcxWOL70k8AGZMMUQvs4=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=TfUVY7k3Md6X0MBRhzjLVn14DZIi5hnbiTphsqJOvhFiqWnW4xHLiot7N/bdQD29sU9nxInuHtn4qjGtMOsWv2ew4UDhCNvlkoCqoIFc1DsFUAaBlIwFYxfTGFgkViGesud4uhzKW6J0eQLNgHoxz9fMJp20SHrG1EwtnkbgYbI="
        ],
        "ARC-Authentication-Results": [
            "i=2; gandalf.ozlabs.org;\n dmarc=pass (p=none dis=none) header.from=gmail.com; dkim=pass (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20251104 header.b=XdDrRQQ5; dkim-atps=neutral;\n spf=pass (client-ip=2600:3c04:e001:36c::12fc:5321; helo=tor.lore.kernel.org;\n envelope-from=linux-ext4+bounces-15647-patchwork-incoming=ozlabs.org@vger.kernel.org;\n receiver=ozlabs.org) smtp.mailfrom=vger.kernel.org",
            "i=1; smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=gmail.com;\n spf=pass smtp.mailfrom=gmail.com;\n dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com\n header.b=XdDrRQQ5; arc=none smtp.client-ip=209.85.167.176"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=gmail.com; s=20251104; t=1775418646; x=1776023446;\n darn=vger.kernel.org;\n        h=content-transfer-encoding:mime-version:references:in-reply-to\n         :message-id:date:subject:cc:to:from:from:to:cc:subject:date\n         :message-id:reply-to;\n        bh=K8lGtdviJ/yNeFObSgzOPOsYD9zf1PXG9ZhAjN6EY4Q=;\n        b=XdDrRQQ5qPYkH9zR2x/+NtoWTga+XHyaTfGu1QNncVF0j2P77Okxr4pSiPY5tVZ1XK\n         2eV4SZrhm1H7mdLog/K+3uJqJ8MwfupaNM0WfLwj0hV6rwZzzGKUv5gq+7j4dn1J1rRG\n         Lx+PUov62S0/fA0CNBAT+tn5RjkXh+UarmL6Nj40U+N5kYOp+Z2fsSjLtMUBbS3RmLVv\n         zsHg78reMJJuXVPkHgVXT/jF0GyodEaZCMktPIBj4wCWdrB+Hf/s3w7hNhFS3vjI7UQ3\n         EZRt4JkHYq/34JFuYw0TKcAog1ZpCcLAVCD3CTPUajc5sl6NAIsdyJnpZSAccg4KNZDz\n         LxvQ==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=1e100.net; s=20251104; t=1775418646; x=1776023446;\n        h=content-transfer-encoding:mime-version:references:in-reply-to\n         :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from\n         :to:cc:subject:date:message-id:reply-to;\n        bh=K8lGtdviJ/yNeFObSgzOPOsYD9zf1PXG9ZhAjN6EY4Q=;\n        b=EwP85Wnj3jkA1LNE6/q7tf1vgH2KWmqFuUL28ubJeaSu2aQoMoqRJkTCkWwa5kZNN5\n         ZLaYbxgcVrqahgtqT2HRO/tfJ3V5SqlaZDQy/0J8LV+020MTiQph9e7eoI7aHA4/7XDP\n         iVQHvHLVXzEVTJqxopTpWFKJevNPYUr2ElsRKzN0wdEnk0YCEYEzpJsIkVtWGcC79dh+\n         CSgr58TqHlv9jVjAdM2SwGSfOgHB8j+D6Q8gumF+JRXR0uLtd7a/1vCZ0XjCfBlNzM8B\n         G3KT78uuaBtP2wCtkkgcT+KGXj1U+cwiok/M4ct7uNezlrziJjZQ5Ho0l4JhM4JWBXeD\n         q7Rw==",
        "X-Gm-Message-State": "AOJu0YwwXspoLpSD4ErJ+n2LNE0y81hw4gXHiX1UESx6hSClS/c4gsMY\n\trBwEEvJpLWmSa7eRnW0CrJa1bvSM/nkWQXys+KHsXmO51+fIjlcWpmag",
        "X-Gm-Gg": "AeBDietq0UPWr/UCI/4P8NVuIGC9ZKuUkvDfVEu++QZcrkyj9Ury4DaoYQ90l7Tn61e\n\tp7EsgWZcFRQ2w0+vlbhGSBrqgj2HTc40TVsXsr1/pbt2LDreeJNTnRRFw8ujWRkPrEWBobnGLPY\n\t+IvoZga0K4W/VEuLLGG2htkWZHoOv2PoDKmq17jYky1ZIxS5UlU9NQ69wUi/wf4wGSKOAAjVCf/\n\tNC6vX3g9iIdyJpL7jdKZ6UeFhNHp8ED8np/J44NiD26z3TLvoEWONHaiFFkk3Qz/kaQjUMsyFY3\n\tZaBOxFummzzpG7FLO8tkLU0tUtBmTW8O9lXFm1OvshxP9hONRD3I1o1J0H6xK7opvAR66jSUU5T\n\tFd7vKHI/9Iu39qHL4/fClfo/+L3KOtUgn44aiucWWd9+6s05ATvjf5RiCtEM7df1I3aJBOvj6RV\n\tzP1Y1Dj2Mrtv4d7UfqqUHBWSki8gdcDcKK7atpLWaMVGosMDCoZ70kI1cE6faYmyqRikxXJRfAF\n\tY9HvwYMss2dykg=",
        "X-Received": "by 2002:a05:6808:1511:b0:46a:738f:7666 with SMTP id\n 5614622812f47-46ef7a12be7mr5024308b6e.36.1775418645800;\n        Sun, 05 Apr 2026 12:50:45 -0700 (PDT)",
        "From": "Sean Smith <defendthedisabled@gmail.com>",
        "X-Google-Original-From": "Sean Smith <DefendTheDisabled@gmail.com>",
        "To": "linux-fsdevel@vger.kernel.org",
        "Cc": "linux-ext4@vger.kernel.org,\n\tlinux-btrfs@vger.kernel.org,\n\ttytso@mit.edu,\n\tdsterba@suse.com,\n\tdavid@fromorbit.com,\n\tbrauner@kernel.org,\n\tosandov@osandov.com,\n\talmaz@kernel.org,\n\thirofumi@mail.parknet.co.jp,\n\tlinkinjeon@kernel.org,\n\tSean Smith <DefendTheDisabled@gmail.com>",
        "Subject": "[PATCH 5/6] fat: map ptime to FAT creation time with rename-over",
        "Date": "Sun,  5 Apr 2026 14:50:01 -0500",
        "Message-ID": "<20260405195007.1306-6-DefendTheDisabled@gmail.com>",
        "X-Mailer": "git-send-email 2.51.0.windows.1",
        "In-Reply-To": "<20260405195007.1306-1-DefendTheDisabled@gmail.com>",
        "References": "<20260405195007.1306-1-DefendTheDisabled@gmail.com>",
        "Precedence": "bulk",
        "X-Mailing-List": "linux-ext4@vger.kernel.org",
        "List-Id": "<linux-ext4.vger.kernel.org>",
        "List-Subscribe": "<mailto:linux-ext4+subscribe@vger.kernel.org>",
        "List-Unsubscribe": "<mailto:linux-ext4+unsubscribe@vger.kernel.org>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "X-Spam-Status": "No, score=-1.2 required=5.0 tests=ARC_SIGNED,ARC_VALID,\n\tDKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DMARC_PASS,\n\tFREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,\n\tMAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=disabled\n\tversion=4.0.1",
        "X-Spam-Checker-Version": "SpamAssassin 4.0.1 (2024-03-25) on gandalf.ozlabs.org"
    },
    "content": "Map ptime to the FAT/VFAT creation time field. Only active on VFAT\n(long filename) mounts since plain FAT12/FAT16 lack creation time.\nFAT32 creation time has 2-second precision.\n\nGetattr: report creation time as ptime (VFAT only, via isvfat check).\nSetattr: write ptime to i_crtime.\nRename-over: save target creation time before detach, restore to\n  source after attach. Preserves creation time across atomic saves.\n\nSigned-off-by: Sean Smith <DefendTheDisabled@gmail.com>\n---\n fs/fat/file.c       |  6 ++++++\n fs/fat/namei_vfat.c | 20 ++++++++++++++++++--\n 2 files changed, 24 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/fs/fat/file.c b/fs/fat/file.c\nindex 4fc49a614..9d1fcc554 100644\n--- a/fs/fat/file.c\n+++ b/fs/fat/file.c\n@@ -413,6 +413,10 @@ int fat_getattr(struct mnt_idmap *idmap, const struct path *path,\n \t\tstat->result_mask |= STATX_BTIME;\n \t\tstat->btime = MSDOS_I(inode)->i_crtime;\n \t}\n+\tif (sbi->options.isvfat && (request_mask & STATX_PTIME)) {\n+\t\tstat->result_mask |= STATX_PTIME;\n+\t\tstat->ptime = MSDOS_I(inode)->i_crtime;\n+\t}\n \n \treturn 0;\n }\n@@ -564,6 +568,8 @@ int fat_setattr(struct mnt_idmap *idmap, struct dentry *dentry,\n \t\tfat_truncate_time(inode, &attr->ia_mtime, S_MTIME);\n \tattr->ia_valid &= ~(ATTR_ATIME|ATTR_CTIME|ATTR_MTIME);\n \n+\tif (attr->ia_valid & ATTR_PTIME)\n+\t\tMSDOS_I(inode)->i_crtime = attr->ia_ptime;\n \tsetattr_copy(idmap, inode, attr);\n \tmark_inode_dirty(inode);\n out:\ndiff --git a/fs/fat/namei_vfat.c b/fs/fat/namei_vfat.c\nindex 47ff083cf..f1e2eadf8 100644\n--- a/fs/fat/namei_vfat.c\n+++ b/fs/fat/namei_vfat.c\n@@ -975,8 +975,24 @@ static int vfat_rename(struct inode *old_dir, struct dentry *old_dentry,\n \t}\n \tinode_inc_iversion(new_dir);\n \n-\tfat_detach(old_inode);\n-\tfat_attach(old_inode, new_i_pos);\n+\t/* ptime rename-over: save target creation time */\n+\t{\n+\t\tstruct timespec64 saved_crtime = {};\n+\t\tbool inherit_crtime = false;\n+\n+\t\tif (new_inode && S_ISREG(old_inode->i_mode) &&\n+\t\t    S_ISREG(new_inode->i_mode) && old_inode->i_nlink == 1) {\n+\t\t\tsaved_crtime = MSDOS_I(new_inode)->i_crtime;\n+\t\t\tinherit_crtime = true;\n+\t\t}\n+\n+\t\tfat_detach(old_inode);\n+\t\tfat_attach(old_inode, new_i_pos);\n+\n+\t\tif (inherit_crtime)\n+\t\t\tMSDOS_I(old_inode)->i_crtime = saved_crtime;\n+\t}\n+\n \terr = vfat_sync_ipos(new_dir, old_inode);\n \tif (err)\n \t\tgoto error_inode;\n",
    "prefixes": [
        "5/6"
    ]
}