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
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
filedes.c
fproc.h Two 'dynamic driver' features in FS: 2005-10-20 19:39:32 +00:00
fs.h
glo.h
inode.c Implementation of truncate(), ftruncate() and the F_FREESP fcntl(). 2006-01-11 17:14:51 +00:00
inode.h
link.c Implementation of truncate(), ftruncate() and the F_FREESP fcntl(). 2006-01-11 17:14:51 +00:00
lock.c
lock.h
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
misc.c Implementation of truncate(), ftruncate() and the F_FREESP fcntl(). 2006-01-11 17:14:51 +00:00
mount.c
open.c Implementation of truncate(), ftruncate() and the F_FREESP fcntl(). 2006-01-11 17:14:51 +00:00
param.h
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
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
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
table.c Implementation of truncate(), ftruncate() and the F_FREESP fcntl(). 2006-01-11 17:14:51 +00:00
time.c
timers.c Andy's formatting changes. 2005-09-11 16:45:46 +00:00
type.h
utility.c
write.c Implementation of truncate(), ftruncate() and the F_FREESP fcntl(). 2006-01-11 17:14:51 +00:00