Re: [PATCH 1/1] ntfs: add ioctl support for named data streams
From: Lionel Cons
Date: Mon Aug 03 2026 - 05:13:33 EST
On Wed, 29 Jul 2026 at 13:00, Namjae Jeon <linkinjeon@xxxxxxxxxx> 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