>> If you follow this argument through, and make minor
>> modifications to userland code (such as 'cp'), you can
>> also make this pretty click when copying to/from NFS.
>
> This would argue for a win32 alike, but more general,
> copyfile() system call. This can be a very good alternative
> for the very expensive copies we're doing now.
> Since this call is in smbfs too, it means we can do
> a copy of a file on a samba share without the file
> ever traveling over the network...
I think copyfile() is a different animal. It doesn't just copy
a stream of data. It copies multiple named data streams, and may
copy ACL data. Someone mentioned a copytree() used by SMB.
Here:
/* copy data, usually from disk to network */
/* (maybe add the other features NT has) */
ssize_t copyfd(int source, int dest, size_t bytes);
/* copy objects in the filesystem namespace */
int copypath(char *src, char *dst, unsigned flags);
#define COPY_DATA 0x0001
#define COPY_SECURITY 0x0002
#define COPY_CHILDREN 0x0004
#define COPY_CHILD_SECURITY 0x0008
#define COPY_NEED_STREAMS 0x0010
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu