Re: [PATCH 1/1] ntfs: add ioctl support for named data streams
Lionel Cons <[email protected]> Mon, 3 Aug 2026 11:09:00 +0200
| Newsgroups | dev.linux.lists.ntfs,org.kernel.vger.linux-fsdevel,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <CAPJSo4WUxiKcfjDkHuOVhqBmvHng7JdWX1dibsYFjW6qwTCUSw@mail.gmail.com> |
On Wed, 29 Jul 2026 at 13:00, Namjae Jeon <[email protected]> wrote: > > Sebastian and Cedric requested NTFS driver support for an interface that > WINE can use to access named data streams. > > NTFS supports multiple named $DATA attributes, commonly known as alternate > data streams, but they are not directly accessible through the existing > file operations. Add NTFS-specific ioctl commands to let userspace list, > read, write, and remove named data streams on an opened file. > > The new UAPI provides separate commands for each operation: > > - NTFS_IOC_STREAM_READ > - NTFS_IOC_STREAM_WRITE > - NTFS_IOC_STREAM_REMOVE Wouldn't it be better to just provide an API to get a fd, relative to a filename? Win32 named streams can be sparse, and it is common to punch holes to deallocate sections of streams too. Streams do have their own timestamps, too. > - NTFS_IOC_LIST_STREAMS NTFS_IOC_LIST_STREAMS looks OK. Lionel