Welcome, Guest. Please login or register.

Author Topic: TD64 or NSD for new storage drivers?  (Read 8305 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline freqmax

  • Hero Member
  • *****
  • Join Date: Mar 2006
  • Posts: 2179
    • Show only replies by freqmax
Re: TD64 or NSD for new storage drivers?
« Reply #44 from previous page: February 22, 2013, 09:02:16 AM »
Do there exist any filesystem driver example in C ?
 

Offline olsen

Re: TD64 or NSD for new storage drivers?
« Reply #45 on: February 22, 2013, 12:24:57 PM »
Quote from: freqmax;727255
Do there exist any filesystem driver example in C ?


As far as I know this type of sample code is very rare indeed.

If what you're after is an example of how TD64/NSD commands may be used by client code in general, I may have something to share.

A couple of a years ago I wrote a shell command (in 'C', naturally) for the purpose of making image files from my A3000UX hard disk partitions, and uploading them to a local server via TCP. That shell command (called "SendRawDisk") supports TD64/NSD commands, and also includes portable 64 bit integer arithmetic functions for use with compilers which do not support the 'long long int' type (such as SAS/C). It could serve as an example of how this stuff is done in client code. Mind you, it does a bit more than just reading the data off the disk...

You can download the command (with source code) at http://aminet.net/comm/tcp/SendRawDisk.lha
 

Offline freqmax

  • Hero Member
  • *****
  • Join Date: Mar 2006
  • Posts: 2179
    • Show only replies by freqmax
Re: TD64 or NSD for new storage drivers?
« Reply #46 on: February 22, 2013, 12:57:03 PM »
My idea were to provide a filesystem API in one end. And send all requests to a server in the other end.