pooka
1f2f77b6f8
Add specfs/fifofs support. Not really fully tested, but at least
...
vfs routines don't crash now.
(didn't have an image with matching device node numbers)
fixes PR kern/40055 by myself
2008-12-01 14:34:50 +00:00
reinoud
4b1a812950
Split uid/gid remapping code to be independent of eachother.
2008-12-01 14:19:01 +00:00
reinoud
df11d3f1f5
Allow for the exclusive selection of `direct' for rdonly mounts; its disabled
...
for now since its a lot slower than `rmw' access.
For archs that have trouble with `rmw' for whatever reason can so use it as a
scapegoat to allways mount savely rdonly though slower.
2008-11-28 15:29:47 +00:00
reinoud
273d4a49cd
Remove old comment and remove unused calculated variable
2008-11-28 14:33:36 +00:00
pooka
989608d6b7
Tyop: v -> vp. Spotted by Tom's ARM builds.
2008-11-28 10:57:03 +00:00
pooka
b4099c3e1d
Rototill all remaining file systems to use ubc_uiomove() instead
...
of the ubc_alloc() - uiomove() - ubc_release() dance.
2008-11-26 20:17:33 +00:00
pooka
010ce4930e
more <sys/buf.h> police
2008-11-16 19:34:29 +00:00
reinoud
a597e786dd
Specify blobsize as the `pagingsize' of the eccline blob pool. This will relax
...
the requirements of the pagingsize.
2008-11-15 18:26:50 +00:00
pooka
39beb124fd
In case writing past EOF, fail if extending the file fails (most
...
likely due to the file system being full).
Otherwise we'd fail in VOP_PUTPAGES(), which might not happen during
VOP_WRITE(), thus giving the caller the wrong impression that
writing was succesful.
2008-11-14 12:59:44 +00:00
reinoud
69f1577429
Introduce an extra state to wich all pushed ecclines are pushed on. This
...
extra state has a holding time in wich no writeouts will be done
effectively collecting more sectors before its even sheduled for writing.
2008-11-01 23:51:25 +00:00
reinoud
e9d599f49d
Explicitly set buffer's block numbers. Blocks were always read/written
...
correctly only the sheduling could go less than optimal.
2008-11-01 19:50:32 +00:00
reinoud
3e0547f2dd
Fix to prevent a closed sequential media to be opened for read/write.
2008-10-29 18:09:47 +00:00
joerg
f1481725b6
Remove logic to compute relative pathes to chroots. It breaks the
...
default case of ptyfs mounted under /dev/pts as any chroot would get
/%d as slave names. This allows null mounts of ptyfs to work.
To allow pty allocation from within chroots, either no ptyfs must be
mounted or a null mount exist.
2008-10-26 23:06:41 +00:00
reinoud
1bd1646ad6
Switch UDF over to the vfs_dirhash.c dirhash code.
2008-09-27 13:05:34 +00:00
ad
43f2119341
PR kern/39307 (mfs will sometimes panic at umount time)
...
Change dounmount() so that it never drops the caller provided reference.
Garbage collecting 'struct mount' is up to the caller.
2008-09-25 14:17:29 +00:00
ad
25b04084c4
Don't assign vnode::v_mount. getnewvnode() does it.
2008-09-24 09:37:13 +00:00
christos
9380d4efdb
replace 0xa0 with space from Andy Shevchenko
2008-09-10 19:25:33 +00:00
tron
7c4ff5fbb4
Remove duplicate definition of "smbfs_node_pool".
...
Fix based on a patch provided by Juan RP in PR kern/39494.
2008-09-07 13:13:04 +00:00
pooka
811ee024bf
Actually, use FWRITE for device open only if we aren't doing MNT_RDONLY.
...
This still allows to mount read-only images with -o ro.
2008-09-04 12:28:14 +00:00
pooka
9e37085d2e
Install sysvbfs argument structure header into userlandia.
2008-09-04 12:07:29 +00:00
pooka
4e73c87bfa
Open devvp for both reading and writing.
2008-09-04 12:02:10 +00:00
gmcgarry
36a81a3bed
Don't use unnamed structures.
2008-09-03 22:57:46 +00:00
gmcgarry
a5659ecaae
Hack around zero vararg macro list on PCC.
2008-09-03 22:56:51 +00:00
reinoud
627e960617
Back out dirhash kernel module for now.
2008-08-30 10:49:27 +00:00
reinoud
c25ced8779
Remove all remaining traces of UDF_READWRITE since it has been removed as
...
option.
2008-08-29 15:04:18 +00:00
reinoud
d9f39b2f6d
Remove spurious old header file dependency that slipped trough.
2008-08-29 14:54:54 +00:00
reinoud
0a5ad4e15d
Add dirhash kernel module for sharing dirhashing support with other FS
...
other than UDF. Its FS agnostic and could be used for any FS
Note to self: manpage needs to follow.
2008-08-29 14:20:25 +00:00
reinoud
17f11577de
forgot to destroy an additional mutex and an condition variable.
2008-08-29 13:55:45 +00:00
reinoud
b887c39003
Remove the need for the kernel option UDF_READWRITE to be able to write to
...
discs since writing is mature enough.
2008-08-08 18:25:56 +00:00
reinoud
c3d5fdb471
Don't panic on read-errors but set flag that the packet is doomed. Its not
...
clear if i could read the individual sectors correctly since the entire
read packet is also one big ECC block.
2008-08-07 15:54:12 +00:00
reinoud
a287d23dee
Rewrite allocation scheme's determination and implementation replacing the
...
old somewhat naive selection scheme that didn't allow different allocation
settings for nodes, directory information (FIDs) and data.
Also fix some curious side-effects of atime updates on RMW devices.
2008-08-06 13:41:12 +00:00
reinoud
5e89a5a8f1
Fixup important bug in internal recorded data fixup. Although most unlikely
...
it could result in theory result in descriptor trashing.
On the performance side, it would try to fixup *every* descriptor even if
it wasn't an internally allocated one. Performance loss wasn't that big but
every bit helps.
2008-08-05 19:29:54 +00:00
reinoud
17cb09d3ee
Remove comments on `need to read in'; they are read in.
2008-07-29 10:08:16 +00:00
pooka
f00b7c9b12
Solve the fstat-wants-to-look-at-kernel-data-structures in a nicer
...
way: don't export the fs internals to innocent userspace programs
which just want to mount the file system.
2008-07-29 09:10:09 +00:00
reinoud
71c9aa3395
Streamline allocation to prepare it for metadata partition. Also add
...
preliminary Metadata partition write support but its disabled still since
its not finished yet and not functioning correctly. All other formats are
checked and should work fine.
2008-07-28 19:41:13 +00:00
pooka
966308f7e8
shuffle around some more defs for fstat
...
noticed by Kurt Schreiner on current-users
2008-07-28 18:00:20 +00:00
pooka
97f4be43e9
Install mount argument structure header just like every other file system.
2008-07-28 12:42:12 +00:00
reinoud
7ac1927ba2
Delay physical partition spacebitmaps from volume-descriptor-checking until
...
the other supporting structures are read in.
2008-07-27 11:38:23 +00:00
reinoud
5c3627bcdf
Unify naming scheme and source code beautify for better readablility.
2008-07-27 11:21:21 +00:00
reinoud
4e0493c8f8
Forgot to rename those two references to write_space_bitmap too.
2008-07-26 20:52:04 +00:00
reinoud
8f7887a864
Clarify the current spacemap read/write code is reading/writing physical
...
partition space maps. This in preperation of Metadata spacetable
reading/writeout work.
2008-07-26 20:49:33 +00:00
reinoud
3653a53255
Clarify not implemented allocation schemes; mostly UDF 2.50
...
HD-DVD/BluRay-RE and UDF 2.60 for BluRay-R
2008-07-26 20:33:36 +00:00
reinoud
0dca08adcb
Add metadata bitmap ICB file type
2008-07-25 15:37:56 +00:00
reinoud
5b49df17d8
No use walking empty hashtables when purging.
2008-07-22 21:39:08 +00:00
reinoud
ff7ad972a5
Limit the UDF dirhash to a configurable amount of memory. The performance
...
penalty even with a limited dirhash of 128kb is acceptable but it should be
set by machine memory size though.
2008-07-22 19:06:55 +00:00
reinoud
3efc85e77e
Limit sectorsize to max. 4096 bytes. This prevents a panic when declaring
...
the node pool since standard pools are limited upto 4096 aparently.
Pagesize limit even?
2008-07-19 16:36:40 +00:00
reinoud
aa9f26d0bd
Use the allocation descriptor types selected on mount when growing from an
...
internal to an extent recording.
2008-07-19 16:23:09 +00:00
reinoud
a2718fb081
Use ecma-167 constants instead of homegrown to prevent double mapping.
2008-07-19 16:14:09 +00:00
reinoud
a1f7916969
Choose which time of allocation descriptors to use on new nodes based on
...
the number of partition mappings.
2008-07-19 16:00:35 +00:00
reinoud
a48555c3a3
Hopefully fix gcc type puned warning.
2008-07-18 16:21:12 +00:00