reinoud
550f8483a8
Fix 32 bit issue in main file read-in function. On both 32 bit and 64 bit
...
hosts a missing cast would result in `garbage' after the 4Gbyte limit.
2013-08-09 20:13:18 +00:00
joerg
45b48fe34b
Support tools build.
2013-08-05 17:02:54 +00:00
reinoud
420d7ac724
Remove udf_node * as state variables and add the loop invariants UFS and tmpfs
...
carry to make it easier to debug.
2013-07-16 10:49:36 +00:00
reinoud
4600888a4b
First step in rewriting the genealogy case
2013-07-15 14:40:21 +00:00
reinoud
0eb394b1d0
udf_gro_genealogy() : source and destination should never be the same on call,
...
KASSERT it instead of checking for it.
2013-07-13 19:42:26 +00:00
reinoud
a987c68f3a
vp is used, so don't (void) it
2013-07-13 19:40:14 +00:00
reinoud
2b15913865
Rework udf_gro_rename() to be more linear instead of nesting if/else
...
branching.
2013-07-13 19:39:02 +00:00
reinoud
8ad309e64f
In case there is trouble determining the number of entries in a directory,
...
return its not empty to be on the safe side.
2013-07-12 16:14:10 +00:00
reinoud
d9c51d931b
Resort to the easiest way to check if a directory is deleted: the flag that
...
tells that there is no FID (dirent) pointing to it anymore.
2013-07-11 19:41:19 +00:00
reinoud
da86562477
Small cleanup
2013-07-11 15:43:12 +00:00
reinoud
c689e7fed3
Remove the dirent checks and references. UDF doesn't need/use them on rename
...
so just to make sure, we remove all references/checks to not trigger bugs
thats are not really ours.
2013-07-10 19:14:07 +00:00
reinoud
a7795a09e4
Implement udf_rename() using the new genfs_rename() framework.
...
Fixes PR kern/47986
2013-07-10 15:10:56 +00:00
reinoud
1cabaf0e68
Clarify the sticky-bit check
2013-07-08 08:21:12 +00:00
reinoud
a0054fd5a4
Pull forward the node creation returned from the lookup call. Its vnode is
...
used in the access determination on delete/rename of TXT files.
Thanks for joerg@ and clang for detecting this!
2013-07-07 20:16:22 +00:00
reinoud
eb513d5160
Implement a real empty-directory checking for rmdir().
...
Should should fix the other part of PR kern/47987
Solves tests/vfs/t_vnops udf_dir_notempty
2013-07-07 19:49:44 +00:00
reinoud
d2126d9622
Fixes chflags. They were silently rejected before but the VFS standard demands
...
it complains with EOPNOTSUPP.
Fixes chflags test case.
2013-07-05 20:40:20 +00:00
reinoud
16cc237e7c
Provide additional checks to udf_lookup and restructure it a bit.
...
Should fix PR 47988
2013-07-05 20:04:57 +00:00
reinoud
1a547d0334
Remove spurious empty line
2013-07-03 15:39:22 +00:00
reinoud
ab09c24f7a
On removing a directory make sure the leaf directory doesn't have a valid '..'
...
link anymore. In a corner case this leaf can be held by a process as a CWD. It
is guaranteed to be empty at this stage so we trunc it removing the only valid
FID, being the '..' entry.
Solves part of PR kern/47987
Solves tests/vfs/t_vnops udf_dir_rmdirdotdot
2013-07-03 14:35:28 +00:00
reinoud
e6b5374ef7
Typo in debug message: we are removing a directory and not a file.
2013-07-03 12:55:34 +00:00
reinoud
d0b9530090
On growing a node that was recorded inside the (E)FE, don't forget to set the
...
size of the node to the NEW size. This was reported by the `t_io
udf_shrinkfile' testcase.
Fixes PR kern/47985
2013-07-03 11:50:59 +00:00
matt
d2b8f70ecf
Make this compile again.
2013-06-28 17:13:34 +00:00
christos
c22fbb82f6
remove useless initialization, KNF
...
http://m00nbsd.net/ae123a9bae03f7dde5c6d654412daf5a.html
2013-06-28 15:46:37 +00:00
christos
b9bf0e6c5d
prevent memory leak on error
...
http://m00nbsd.net/ae123a9bae03f7dde5c6d654412daf5a.html
2013-06-28 14:49:14 +00:00
reinoud
793c315af2
Since UDF volumes are always mounted async, the simple UBC purging with
...
VOP_PUTPAGES() was never triggered resulting in far too much data in the UBC
that needed to be written out. This could result in instability on small
memory machines.
2013-06-27 09:38:08 +00:00
dholland
e1610ba4cb
Stick ffs_, ext2_, chfs_, filecore_, cd9660_, or mfs_ in front of
...
the following symbols so as to disambiguate fully. (Christos already
did the lfs ones.)
lblkno
lblktosize
lfragtosize
numfrags
blkroundup
fragroundup
2013-06-23 07:28:36 +00:00
dholland
dab2b35444
blkoff() -> cd9660_blkoff()
...
blksize() -> cd9660_blksize()
2013-06-19 18:16:53 +00:00
dholland
4671554398
blkoff() -> filecore_blkoff()
...
blksize() -> filecore_blksize()
2013-06-19 18:16:10 +00:00
pooka
b2d1226abe
Don't change a read-only file system.
2013-05-15 16:44:03 +00:00
reinoud
52cff03007
Fix Typo
2013-05-08 10:39:17 +00:00
reinoud
fa5ee9f6e0
Fix serious file read problem due to not-so-clear VOP_BMAP description. Should
...
fix PR 45605.
2013-05-08 10:29:22 +00:00
jakllsch
e7f2d5bd6f
Don't attempt to mount file system with clusters larger than MAXBSIZE.
2013-04-15 14:10:59 +00:00
plunky
5ec364d4d9
C99 section 6.7.2.3 (Tags) Note 3 states that:
...
A type specifier of the form
enum identifier
without an enumerator list shall only appear after the type it
specifies is complete.
which means that we cannot pass an "enum vtype" argument to
kauth_access_action() without fully specifying the type first.
Unfortunately there is a complicated include file loop which
makes that difficult, so convert this minimal function into a
macro (and capitalize it).
(ok elad@)
2013-03-18 19:35:35 +00:00
yamt
ca4fff9c14
comments
...
use sizeof(var) instead of sizeof(type) where possibly confusing
2013-03-06 11:40:22 +00:00
yamt
03d1621dc1
comment
2013-03-06 11:39:37 +00:00
christos
db2e654869
A little more debugging.
2013-01-28 00:17:18 +00:00
christos
50df1c7d20
don't need sys/mount.h in userland.
2013-01-27 22:04:19 +00:00
christos
3c0f9bd4e8
tidy up debugging printfs; no functional change.
2013-01-27 20:15:58 +00:00
christos
1ed2e30d40
fix fstat build.
2013-01-26 19:45:02 +00:00
christos
691bcd5dbb
more cross-compile friendly.
2013-01-26 16:51:51 +00:00
christos
929f8943ca
expose more stuff if MAKEFS is defined for the headers, and arrange for
...
the source file to be compilable from userland.
2013-01-26 00:21:49 +00:00
pooka
a0e33ce1e2
Do the protocol consistency check hack only when compiling ELF.
2013-01-16 21:10:14 +00:00
hannken
d845821cd8
Move the initialization of n to after the error branch.
...
From Taylor R Campbell <riastradh@netbsd.org>
2012-12-28 08:03:59 +00:00
hannken
1a15b095d2
Revert rev. 1.20 now that bread() has been fixed.
...
PR kern/46282 (6.0_BETA crash: msdosfs_bmap -> pcbmap -> bread -> bio_doread)
2012-12-20 11:44:39 +00:00
hannken
312d89f0de
Change bread() and breadn() to never return a buffer on
...
error and modify all callers to not brelse() on error.
Welcome to 6.99.16
PR kern/46282 (6.0_BETA crash: msdosfs_bmap -> pcbmap -> bread -> bio_doread)
2012-12-20 08:03:41 +00:00
msaitoh
b6e1d8e8d8
Fix off by one error.
2012-12-07 06:50:15 +00:00
mbalmer
e3f283b63f
Fix misspelling: accommodate is a long enough word to have room for two 'c's
...
and two 'm's.
2012-12-01 11:41:49 +00:00
nakayama
fb4e31b6db
Improve smbfs timestamp handling.
...
Don't round timestamp to 2 seconds resolution if the server
supports the CAP_INFOLEVEL_PASSTHRU capability.
2012-11-30 23:24:21 +00:00
nakayama
33e8b488e1
- Remove redundant vput() before vgone().
...
- Avoid unnecessary mutex_exit() in smbfs_node_alloc().
- Set NGONE bit to from-name vnode to invalidate the smbnode cache.
2012-11-29 11:58:49 +00:00
nakayama
9dae46742e
Various fixes for smbfs:
...
- Implement NGONE to fix caching issue described in PR kern/25070.
Mostly taken from FreeBSD r125637.
- Revert revision 1.70 of smbfs_vnops.c to fix setattr to opened
direcotry. In case of SMB_CAP_NT_SMBS, NOPEN is set after
smbfs_smb_ntcreatex() call. If NOPEN is set in front, it will
immediately return by condition at do_open label.
- In smbfs_close(), call smbfs_smb_close() and drop NOPEN bit in
the case of direcotry. Otherwise smbfs_rmdir() fails when the
directory was opened.
2012-11-28 13:34:24 +00:00