$ ./spectranfs <host> <port> <uid> <command> [params...]
Where host
is an address (e.g. IP address) of a remote host on which the
spectrand
or spectrangsx
server was started, port
is a TCP port number
on which spectrand
(or spectrangsx
) waits for remote disk image access
connections, uid
is a specific user ID to be used (a single integer number in
range 0..15; alternatively, @
can be given which means 'any uid'). A command
can be any of:
ls
- list files visible by given uid
(@
for any uid
);
lsmap
- list data blocks on a remote disk image;
lsent
- list raw file entries on a remote disk image visible by given uid
(@
for any uid
); larger files are split across multiple entries
with the same uid
and filename
;
lsdel
- list raw file entries of any deleted files on a remote disk image;
cat
- print a file with a given filename
;
get
- fetch file with a given filename
;
put
- send file with a given filename
from the local current directory
to a remote disk image;
baktoggle
- toggle backup
attribute for a file with a given filename
;
rwtoggle
- toggle read/write
attribute for a file with a given filename
;
systoggle
- toggle system
attribute for a file with a given filename
;
del
- delete a file with a given filename
;
undel
- attempt to undelete a file with a given filename
(only single entry files can be undeleted; see also lsent
and lsdel
);
chown
- replace uid
of a file with a given filename
with a new uid
,
namely:
$ ./spectranfs <host> <port> <uid> chown <filename> <new_uid>
ren
- rename a file with a given filename
with a new filename
(keepinguid
), namely:$ ./spectranfs <host> <port> <uid> ren <old_filename> <new_filename>