18.01.2015 Views

Redes de Computadoras

Redes de Computadoras

Redes de Computadoras

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Re<strong>de</strong>s</strong> <strong>de</strong> <strong>Computadoras</strong>, 2007/08<br />

con atributos attr. Si la creación tiene éxito, <strong>de</strong>vuelve un nuevo<br />

<strong>de</strong>scriptor <strong>de</strong> fichero new fh que tiene los atributos new attr.<br />

4. remove(dir fh, name) returns(status): Borra el fichero<br />

name en el directorio dir fh y <strong>de</strong>vuelve verda<strong>de</strong>ro si la operación<br />

ha tenido éxito.<br />

5. getattr(fh) returns(attr): Devuelve los atributos <strong>de</strong>l<br />

fichero.<br />

6. setattr(fh, attr) returns(new attr): Establece los atributos<br />

<strong>de</strong>l fichero.<br />

7. read(fh, offset, count) returns(attr, data): Escribe<br />

en el puntero data los count bytes a partir <strong>de</strong>l byte <strong>de</strong> índice<br />

offset <strong>de</strong>l fichero fh. Se <strong>de</strong>vuelve a<strong>de</strong>más los atributos <strong>de</strong>l<br />

fichero.<br />

8. write(fh, offset, count, data) returns(attr): Semejante<br />

al anterior método, excepto que escribimos en el fichero<br />

remoto.<br />

9. rename(dir fh, name, to fh, to name)<br />

9.4 Network File System 183

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!