minix/servers/fs
Ben Gras 50b06261b6 Implementation of truncate(), ftruncate() and the F_FREESP fcntl().
Implemented by changing write_map to accept a WMAP_FREE flag. In that
case, it doesn't update the datablock (creating indirect zones as
necessary) pointer, but it frees the datablock if present. Also it
frees the single and double indirect blocks if unused.

This makes the implementation of truncate_inode() simpler.
truncate_inode() now accepts a truncation length which makes
implementing truncate() and ftruncate() simple.

This also allowed implementing the F_FREESP fcntl().
2006-01-11 17:14:51 +00:00
..
buf.h Rename some #defines such as MAX_BLOCK_SIZE to _MAX_BLOCK_SIZE and such 2005-11-14 18:41:27 +00:00
cache.c Priority explicitization. 2005-12-14 12:08:49 +00:00
cache2.c Al's double-blank-line removal request 2005-08-22 15:23:47 +00:00
cdprobe.c Andy's formatting changes. 2005-09-11 16:45:46 +00:00
const.h Implementation of truncate(), ftruncate() and the F_FREESP fcntl(). 2006-01-11 17:14:51 +00:00
device.c Don't panic on missing drivers. 2005-10-21 19:31:38 +00:00
dmap.c Also dev_open opened block and character special files 2005-10-20 20:32:09 +00:00
file.h Started select() implementation. 2005-06-17 13:41:12 +00:00
filedes.c Al's double-blank-line removal request 2005-08-22 15:23:47 +00:00
fproc.h Two 'dynamic driver' features in FS: 2005-10-20 19:39:32 +00:00
fs.h Miscellaneous cleanups. 2005-08-03 11:53:36 +00:00
glo.h Removed debug dumps from the PM and FS servers. The dumps are now done by the 2005-06-07 14:43:35 +00:00
inode.c Implementation of truncate(), ftruncate() and the F_FREESP fcntl(). 2006-01-11 17:14:51 +00:00
inode.h Formatting fixes for the book 2005-08-29 16:47:18 +00:00
link.c Implementation of truncate(), ftruncate() and the F_FREESP fcntl(). 2006-01-11 17:14:51 +00:00
lock.c Initial revision 2005-04-21 14:53:53 +00:00
lock.h Initial revision 2005-04-21 14:53:53 +00:00
main.c Rename some #defines such as MAX_BLOCK_SIZE to _MAX_BLOCK_SIZE and such 2005-11-14 18:41:27 +00:00
Makefile Propagate EXTRA_OPTS 2005-08-29 20:00:49 +00:00
misc.c Implementation of truncate(), ftruncate() and the F_FREESP fcntl(). 2006-01-11 17:14:51 +00:00
mount.c Al's double-blank-line removal request 2005-08-22 15:23:47 +00:00
open.c Implementation of truncate(), ftruncate() and the F_FREESP fcntl(). 2006-01-11 17:14:51 +00:00
param.h Created new devctl system call to FS. Moved dmap.h header to include/minix/. 2005-08-02 15:29:17 +00:00
path.c Implementation of truncate(), ftruncate() and the F_FREESP fcntl(). 2006-01-11 17:14:51 +00:00
pipe.c Two 'dynamic driver' features in FS: 2005-10-20 19:39:32 +00:00
protect.c Al's double-blank-line removal request 2005-08-22 15:23:47 +00:00
proto.h Implementation of truncate(), ftruncate() and the F_FREESP fcntl(). 2006-01-11 17:14:51 +00:00
read.c Implementation of truncate(), ftruncate() and the F_FREESP fcntl(). 2006-01-11 17:14:51 +00:00
select.c Implementation of truncate(), ftruncate() and the F_FREESP fcntl(). 2006-01-11 17:14:51 +00:00
select.h Al's double-blank-line removal request 2005-08-22 15:23:47 +00:00
stadir.c Merge of minix-vmd symlink code. 2005-12-20 14:23:44 +00:00
super.c Merge of minix-vmd symlink code. 2005-12-20 14:23:44 +00:00
super.h Al's double-blank-line removal request 2005-08-22 15:23:47 +00:00
table.c Implementation of truncate(), ftruncate() and the F_FREESP fcntl(). 2006-01-11 17:14:51 +00:00
time.c Al's double-blank-line removal request 2005-08-22 15:23:47 +00:00
timers.c Andy's formatting changes. 2005-09-11 16:45:46 +00:00
type.h Initial revision 2005-04-21 14:53:53 +00:00
utility.c FS cleanup with gcc. 2005-08-25 12:30:43 +00:00
write.c Implementation of truncate(), ftruncate() and the F_FREESP fcntl(). 2006-01-11 17:14:51 +00:00