CVS log for src/sys/fs/nilfs/nilfs_vnops.c
Up to [cvs.NetBSD.org] / src / sys / fs / nilfs
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Revision 1.48: download - view: text, markup, annotated - select for diffs
Fri Oct 7 22:33:42 2022 UTC (2 years, 1 month ago) by andvar
Branches: MAIN
CVS tags: thorpej-ifq-base,
thorpej-ifq,
thorpej-altq-separation-base,
thorpej-altq-separation,
perseant-exfatfs-base-20240630,
perseant-exfatfs-base,
perseant-exfatfs,
netbsd-10-base,
netbsd-10-0-RELEASE,
netbsd-10-0-RC6,
netbsd-10-0-RC5,
netbsd-10-0-RC4,
netbsd-10-0-RC3,
netbsd-10-0-RC2,
netbsd-10-0-RC1,
netbsd-10,
HEAD
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +4 -4
lines
fix few typos in comments.
Revision 1.47: download - view: text, markup, annotated - select for diffs
Sat May 28 21:14:56 2022 UTC (2 years, 6 months ago) by andvar
Branches: MAIN
CVS tags: bouyer-sunxi-drm-base,
bouyer-sunxi-drm
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +3 -3
lines
fix various typos in comments, mainly origional->original,
extened->extended, incomming->incoming.
Revision 1.46: download - view: text, markup, annotated - select for diffs
Sun Apr 10 09:50:45 2022 UTC (2 years, 7 months ago) by andvar
Branches: MAIN
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +3 -3
lines
fix various typos in comments and output/log messages.
Revision 1.45: download - view: text, markup, annotated - select for diffs
Wed Oct 20 03:08:17 2021 UTC (3 years, 1 month ago) by thorpej
Branches: MAIN
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +6 -18
lines
Overhaul of the EVFILT_VNODE kevent(2) filter:
- Centralize vnode kevent handling in the VOP_*() wrappers, rather than
forcing each individual file system to deal with it (except VOP_RENAME(),
because VOP_RENAME() is a mess and we currently have 2 different ways
of handling it; at least it's reasonably well-centralized in the "new"
way).
- Add support for NOTE_OPEN, NOTE_CLOSE, NOTE_CLOSE_WRITE, and NOTE_READ,
compatible with the same events in FreeBSD.
- Track which kevent notifications clients are interested in receiving
to avoid doing work for events no one cares about (avoiding, e.g.
taking locks and traversing the klist to send a NOTE_WRITE when
someone is merely watching for a file to be deleted, for example).
In support of the above:
- Add support in vnode_if.sh for specifying PRE- and POST-op handlers,
to be invoked before and after vop_pre() and vop_post(), respectively.
Basic idea from FreeBSD, but implemented differently.
- Add support in vnode_if.sh for specifying CONTEXT fields in the
vop_*_args structures. These context fields are used to convey information
between the file system VOP function and the VOP wrapper, but do not
occupy an argument slot in the VOP_*() call itself. These context fields
are initialized and subsequently interpreted by PRE- and POST-op handlers.
- Version VOP_REMOVE(), uses the a context field for the file system to report
back the resulting link count of the target vnode. Return this in tmpfs,
udf, nfs, chfs, ext2fs, lfs, and ufs.
NetBSD 9.99.92.
Revision 1.42.6.1: download - view: text, markup, annotated - select for diffs
Sun Aug 1 22:42:36 2021 UTC (3 years, 4 months ago) by thorpej
Branches: thorpej-i2c-spi-conf
Diff to: previous 1.42: preferred, colored; next MAIN 1.43: preferred, colored
Changes since revision 1.42: +4 -3
lines
Sync with HEAD.
Revision 1.44: download - view: text, markup, annotated - select for diffs
Sat Jul 24 21:31:38 2021 UTC (3 years, 4 months ago) by andvar
Branches: MAIN
CVS tags: thorpej-i2c-spi-conf2-base,
thorpej-i2c-spi-conf2,
thorpej-i2c-spi-conf-base,
thorpej-futex2-base,
thorpej-futex2,
thorpej-cfargs2-base,
thorpej-cfargs2
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +3 -3
lines
Fix all remaining typos, mainly in comments but also in few definitions and log messages, reported by me in PR kern/54889.
Also fixed some additional typos in comments, found on review of same files or typos.
Revision 1.43: download - view: text, markup, annotated - select for diffs
Tue Jun 29 22:34:07 2021 UTC (3 years, 5 months ago) by dholland
Branches: MAIN
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +3 -2
lines
- Add a new vnode op: VOP_PARSEPATH.
- Move namei_getcomponent to genfs_vnops.c and call it genfs_parsepath.
- Add a parsepath entry to every vnode ops table.
VOP_PARSEPATH takes a directory vnode to be searched and a complete
following path and chooses how much of that path to consume. To begin
with, all parsepath calls are genfs_parsepath, which locates the first
'/' as always.
Note that the call doesn't take the whole struct componentname, only
the string. The other bits of struct componentname should not be
needed and there's no reason to cause potential complications by
exposing them.
Revision 1.42: download - view: text, markup, annotated - select for diffs
Sat Jun 27 17:29:18 2020 UTC (4 years, 5 months ago) by christos
Branches: MAIN
CVS tags: thorpej-futex-base,
thorpej-futex,
thorpej-cfargs-base,
thorpej-cfargs,
cjep_sun2x-base1,
cjep_sun2x-base,
cjep_sun2x,
cjep_staticlib_x-base1,
cjep_staticlib_x-base,
cjep_staticlib_x
Branch point for: thorpej-i2c-spi-conf
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +4 -4
lines
Introduce genfs_pathconf() and use it for the default case in all filesystems.
Revision 1.41: download - view: text, markup, annotated - select for diffs
Sat May 16 18:31:49 2020 UTC (4 years, 6 months ago) by christos
Branches: MAIN
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +14 -13
lines
Add ACL support for FFS. From FreeBSD.
Revision 1.38.6.2: download - view: text, markup, annotated - select for diffs
Sat Apr 25 11:24:05 2020 UTC (4 years, 7 months ago) by bouyer
Branches: bouyer-xenpvh
Diff to: previous 1.38.6.1: preferred, colored; branchpoint 1.38: preferred, colored; next MAIN 1.39: preferred, colored
Changes since revision 1.38.6.1: +4 -4
lines
Sync with bouyer-xenpvh-base2 (HEAD)
Revision 1.40: download - view: text, markup, annotated - select for diffs
Thu Apr 23 21:47:07 2020 UTC (4 years, 7 months ago) by ad
Branches: MAIN
CVS tags: bouyer-xenpvh-base2
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +4 -4
lines
PR kern/54759 (vm.ubc_direct deadlock when read()/write() into mapping of itself)
- Add new flag UBC_ISMAPPED which tells ubc_uiomove() the object is mmap()ed
somewhere. Use it to decide whether to do direct-mapped copy, rather than
poking around directly in the vnode in ubc_uiomove(), which is ugly and
doesn't work for tmpfs. It would be nicer to contain all this in UVM but
the filesystem provides the needed locking here (VV_MAPPED) and to
reinvent that would suck more.
- Rename UBC_UNMAP_FLAG() to UBC_VNODE_FLAGS(). Pass in UBC_ISMAPPED where
appropriate.
Revision 1.37.10.2: download - view: text, markup, annotated - select for diffs
Tue Apr 21 18:42:41 2020 UTC (4 years, 7 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.37.10.1: preferred, colored; branchpoint 1.37: preferred, colored; next MAIN 1.38: preferred, colored
Changes since revision 1.37.10.1: +3 -3
lines
Sync with HEAD
Revision 1.38.6.1: download - view: text, markup, annotated - select for diffs
Mon Apr 20 11:29:09 2020 UTC (4 years, 7 months ago) by bouyer
Branches: bouyer-xenpvh
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +4 -4
lines
Sync with HEAD
Revision 1.39: download - view: text, markup, annotated - select for diffs
Mon Apr 13 19:23:18 2020 UTC (4 years, 7 months ago) by ad
Branches: MAIN
CVS tags: phil-wifi-20200421,
bouyer-xenpvh-base1
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +4 -4
lines
Replace most uses of vp->v_usecount with a call to vrefcnt(vp), a function
that hides the details and does atomic_load_relaxed(). Signature matches
FreeBSD.
Revision 1.37.10.1: download - view: text, markup, annotated - select for diffs
Wed Apr 8 14:08:49 2020 UTC (4 years, 7 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +3 -3
lines
Merge changes from current as of 20200406
Revision 1.38: download - view: text, markup, annotated - select for diffs
Fri Dec 27 09:41:51 2019 UTC (4 years, 11 months ago) by msaitoh
Branches: MAIN
CVS tags: phil-wifi-20200411,
phil-wifi-20200406,
is-mlppp-base,
is-mlppp,
bouyer-xenpvh-base,
ad-namecache-base3,
ad-namecache-base2,
ad-namecache-base1,
ad-namecache-base,
ad-namecache
Branch point for: bouyer-xenpvh
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +3 -3
lines
s/transfered/transferred/
Revision 1.18.2.4: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:38:42 2017 UTC (7 years ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.18.2.3: preferred, colored; branchpoint 1.18: preferred, colored; next MAIN 1.19: preferred, colored
Changes since revision 1.18.2.3: +25 -44
lines
update from HEAD
Revision 1.30.2.4: download - view: text, markup, annotated - select for diffs
Mon Aug 28 17:53:06 2017 UTC (7 years, 3 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.30.2.3: preferred, colored; branchpoint 1.30: preferred, colored; next MAIN 1.31: preferred, colored
Changes since revision 1.30.2.3: +10 -18
lines
Sync with HEAD
Revision 1.37: download - view: text, markup, annotated - select for diffs
Fri May 26 14:34:19 2017 UTC (7 years, 6 months ago) by riastradh
Branches: MAIN
CVS tags: tls-maxphys-base-20171202,
phil-wifi-base,
phil-wifi-20191119,
phil-wifi-20190609,
pgoyette-compat-merge-20190127,
pgoyette-compat-base,
pgoyette-compat-20190127,
pgoyette-compat-20190118,
pgoyette-compat-1226,
pgoyette-compat-1126,
pgoyette-compat-1020,
pgoyette-compat-0930,
pgoyette-compat-0906,
pgoyette-compat-0728,
pgoyette-compat-0625,
pgoyette-compat-0521,
pgoyette-compat-0502,
pgoyette-compat-0422,
pgoyette-compat-0415,
pgoyette-compat-0407,
pgoyette-compat-0330,
pgoyette-compat-0322,
pgoyette-compat-0315,
pgoyette-compat,
perseant-stdc-iso10646-base,
perseant-stdc-iso10646,
nick-nhusb-base-20170825,
netbsd-9-base,
netbsd-9-4-RELEASE,
netbsd-9-3-RELEASE,
netbsd-9-2-RELEASE,
netbsd-9-1-RELEASE,
netbsd-9-0-RELEASE,
netbsd-9-0-RC2,
netbsd-9-0-RC1,
netbsd-9,
netbsd-8-base,
netbsd-8-3-RELEASE,
netbsd-8-2-RELEASE,
netbsd-8-1-RELEASE,
netbsd-8-1-RC1,
netbsd-8-0-RELEASE,
netbsd-8-0-RC2,
netbsd-8-0-RC1,
netbsd-8,
matt-nb8-mediatek-base,
matt-nb8-mediatek,
isaki-audio2-base,
isaki-audio2
Branch point for: phil-wifi
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +2 -7
lines
Eliminate crusty debugging sludge.
We have a mostly sane vnode lifecycle now. If this needs debugging,
it should be done once at the call site of VOP_RECLAIM.
Revision 1.36: download - view: text, markup, annotated - select for diffs
Fri May 26 14:21:00 2017 UTC (7 years, 6 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +5 -3
lines
Make VOP_RECLAIM do the last unlock of the vnode.
VOP_RECLAIM naturally has exclusive access to the vnode, so having it
locked on entry is not strictly necessary -- but it means if there
are any final operations that must be done on the vnode, such as
ffs_update, requiring exclusive access to it, we can now kassert that
the vnode is locked in those operations.
We can't just have the caller release the last lock because some file
systems don't use genfs_lock, and require the vnode to remain valid
for VOP_UNLOCK to work, notably unionfs.
Revision 1.35: download - view: text, markup, annotated - select for diffs
Wed Apr 26 03:02:48 2017 UTC (7 years, 7 months ago) by riastradh
Branches: MAIN
CVS tags: prg-localcount2-base3,
prg-localcount2-base2,
prg-localcount2-base1,
prg-localcount2-base,
prg-localcount2
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +6 -10
lines
Change VOP_REMOVE and VOP_RMDIR to preserve lock/ref on dvp.
No change to vp -- the plan is to replace the node by the
componentname in the vop parameters, and let all directory vops do
lookups internally.
Proposed on tech-kern with no objections:
https://mail-index.netbsd.org/tech-kern/2017/04/17/msg021825.html
Revision 1.32.2.1: download - view: text, markup, annotated - select for diffs
Wed Apr 26 02:53:25 2017 UTC (7 years, 7 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.32: preferred, colored; next MAIN 1.33: preferred, colored
Changes since revision 1.32: +3 -4
lines
Sync with HEAD
Revision 1.33.2.1: download - view: text, markup, annotated - select for diffs
Fri Apr 21 16:54:01 2017 UTC (7 years, 7 months ago) by bouyer
Branches: bouyer-socketcan
Diff to: previous 1.33: preferred, colored; next MAIN 1.34: preferred, colored
Changes since revision 1.33: +3 -4
lines
Sync with HEAD
Revision 1.34: download - view: text, markup, annotated - select for diffs
Tue Apr 11 14:24:59 2017 UTC (7 years, 7 months ago) by riastradh
Branches: MAIN
CVS tags: pgoyette-localcount-20170426,
bouyer-socketcan-base1
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +3 -4
lines
Make VOP_INACTIVE preserve vnode lock on return.
Discussed on tech-kern:
https://mail-index.netbsd.org/tech-kern/2017/04/01/msg021751.html
Ride 7.99.68, a bumpy bus of incremental vfs improvements!
Revision 1.30.2.3: download - view: text, markup, annotated - select for diffs
Wed Oct 5 20:56:01 2016 UTC (8 years, 2 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.30.2.2: preferred, colored; branchpoint 1.30: preferred, colored
Changes since revision 1.30.2.2: +2 -5
lines
Sync with HEAD
Revision 1.33: download - view: text, markup, annotated - select for diffs
Sat Aug 20 12:37:07 2016 UTC (8 years, 3 months ago) by hannken
Branches: MAIN
CVS tags: pgoyette-localcount-20170320,
pgoyette-localcount-20170107,
pgoyette-localcount-20161104,
nick-nhusb-base-20170204,
nick-nhusb-base-20161204,
nick-nhusb-base-20161004,
localcount-20160914,
jdolecek-ncq-base,
jdolecek-ncq,
bouyer-socketcan-base
Branch point for: bouyer-socketcan
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +2 -5
lines
Remove now obsolete operation vcache_remove().
Welcome to 7.99.36
Revision 1.30.2.2: download - view: text, markup, annotated - select for diffs
Sat Jun 6 14:40:21 2015 UTC (9 years, 6 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.30.2.1: preferred, colored; branchpoint 1.30: preferred, colored
Changes since revision 1.30.2.1: +11 -12
lines
Sync with HEAD
Revision 1.32: download - view: text, markup, annotated - select for diffs
Mon Apr 20 23:03:08 2015 UTC (9 years, 7 months ago) by riastradh
Branches: MAIN
CVS tags: pgoyette-localcount-base,
pgoyette-localcount-20160806,
pgoyette-localcount-20160726,
nick-nhusb-base-20160907,
nick-nhusb-base-20160529,
nick-nhusb-base-20160422,
nick-nhusb-base-20160319,
nick-nhusb-base-20151226,
nick-nhusb-base-20150921,
nick-nhusb-base-20150606
Branch point for: pgoyette-localcount
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +3 -4
lines
Make VOP_LINK return directory still locked and referenced.
Ride 7.99.10 bump.
Revision 1.30.2.1: download - view: text, markup, annotated - select for diffs
Mon Apr 6 15:18:19 2015 UTC (9 years, 8 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +4 -5
lines
Sync with HEAD
Revision 1.31: download - view: text, markup, annotated - select for diffs
Sun Mar 29 14:12:28 2015 UTC (9 years, 8 months ago) by riastradh
Branches: MAIN
CVS tags: nick-nhusb-base-20150406
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +4 -5
lines
Complete removal of cred argument from bread in nilfs.
Revision 1.30: download - view: text, markup, annotated - select for diffs
Wed Oct 15 09:05:46 2014 UTC (10 years, 1 month ago) by hannken
Branches: MAIN
CVS tags: nick-nhusb-base
Branch point for: nick-nhusb
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +6 -6
lines
Change nilfs to vcache.
Revision 1.29: download - view: text, markup, annotated - select for diffs
Wed Oct 15 09:03:53 2014 UTC (10 years, 1 month ago) by hannken
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +19 -25
lines
Prepare nilfs for vcache:
- Calling getnewvnode() with "mp == NULL" is wrong. Stop attaching a
vnode to system file nodes and change nilfs_bread() to translate
the block address and then uyse the device for the read.
- Move the vnode initialisation to nilfs_get_node() and use
nilfs_get_node_raw() to initialise the nilfs node only.
- Same for nilfs_reclaim() versus nilfs_dispose_node().
- Change nilfs_get_node() to return an unlocked vnode instead of
a nilfs node with locked vnode. Adapt nilfs_lookup() and nilfs_root().
- Don't treat unsupported node types (blk, chr ...) as regular,
return ENXIO instead.
- Fix nilfs_getattr() to mask the mode with ALLPERMS.
- Destroy sync_cv before free.
Revision 1.18.2.3: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:04:27 2014 UTC (10 years, 3 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.18.2.2: preferred, colored; branchpoint 1.18: preferred, colored
Changes since revision 1.18.2.2: +13 -13
lines
Rebase to HEAD as of a few days ago.
Revision 1.27.2.1: download - view: text, markup, annotated - select for diffs
Sun Aug 10 06:55:54 2014 UTC (10 years, 3 months ago) by tls
Branches: tls-earlyentropy
Diff to: previous 1.27: preferred, colored; next MAIN 1.28: preferred, colored
Changes since revision 1.27: +4 -2
lines
Rebase.
Revision 1.28: download - view: text, markup, annotated - select for diffs
Fri Jul 25 08:20:51 2014 UTC (10 years, 4 months ago) by dholland
Branches: MAIN
CVS tags: tls-maxphys-base,
tls-earlyentropy-base,
netbsd-7-nhusb-base-20170116,
netbsd-7-nhusb-base,
netbsd-7-nhusb,
netbsd-7-base,
netbsd-7-2-RELEASE,
netbsd-7-1-RELEASE,
netbsd-7-1-RC2,
netbsd-7-1-RC1,
netbsd-7-1-2-RELEASE,
netbsd-7-1-1-RELEASE,
netbsd-7-1,
netbsd-7-0-RELEASE,
netbsd-7-0-RC3,
netbsd-7-0-RC2,
netbsd-7-0-RC1,
netbsd-7-0-2-RELEASE,
netbsd-7-0-1-RELEASE,
netbsd-7-0,
netbsd-7
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +4 -2
lines
Add VOP_FALLOCATE and VOP_FDISCARD to every vnode ops table I can
find.
The filesystem ones all call genfs_eopnotsupp - right now I am only
implementing the plumbing and we can implement fallocate and/or
fdiscard for files later.
The device ones call spec_fallocate (which is also genfs_eopnotsupp)
and spec_fdiscard, which dispatches to the device-level op.
The fifo ones all call vn_fifo_bypass, which also ends up being
EOPNOTSUPP.
Revision 1.15.2.4: download - view: text, markup, annotated - select for diffs
Thu May 22 11:41:01 2014 UTC (10 years, 6 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.15.2.3: preferred, colored; branchpoint 1.15: preferred, colored; next MAIN 1.16: preferred, colored
Changes since revision 1.15.2.3: +21 -17
lines
sync with head.
for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.
this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
Revision 1.23.2.1: download - view: text, markup, annotated - select for diffs
Sun May 18 17:46:06 2014 UTC (10 years, 6 months ago) by rmind
Branches: rmind-smpnet
Diff to: previous 1.23: preferred, colored; next MAIN 1.24: preferred, colored
Changes since revision 1.23: +13 -15
lines
sync with head
Revision 1.27: download - view: text, markup, annotated - select for diffs
Fri Feb 7 15:29:21 2014 UTC (10 years, 10 months ago) by hannken
Branches: MAIN
CVS tags: yamt-pagecache-base9,
rmind-smpnet-nbase,
rmind-smpnet-base,
riastradh-xf86-video-intel-2-7-1-pre-2-21-15,
riastradh-drm2-base3
Branch point for: tls-earlyentropy
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +8 -4
lines
Change vnode operation lookup to return the resulting vnode *vpp unlocked.
Change cache_lookup() to return an unlocked vnode.
Discussed on tech-kern@
Welcome to 6.99.31
Revision 1.26: download - view: text, markup, annotated - select for diffs
Thu Jan 23 10:13:56 2014 UTC (10 years, 10 months ago) by hannken
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +6 -6
lines
Change vnode operations create, mknod, mkdir and symlink to return
the resulting vnode *vpp unlocked.
Discussed on tech-kern@
Welcome to 6.99.30
Revision 1.25: download - view: text, markup, annotated - select for diffs
Fri Jan 17 10:55:02 2014 UTC (10 years, 10 months ago) by hannken
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +6 -10
lines
Change vnode operations create, mknod, mkdir and symlink to keep the
directory node dvp locked on return.
Discussed on tech-kern@
Welcome to 6.99.29
Revision 1.24: download - view: text, markup, annotated - select for diffs
Fri Oct 18 19:57:28 2013 UTC (11 years, 1 month ago) by christos
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +3 -5
lines
remove unused variable warnings
Revision 1.18.2.2: download - view: text, markup, annotated - select for diffs
Sun Jun 23 06:18:27 2013 UTC (11 years, 5 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.18.2.1: preferred, colored; branchpoint 1.18: preferred, colored
Changes since revision 1.18.2.1: +10 -4
lines
resync from head
Revision 1.16.6.1.6.1: download - view: text, markup, annotated - select for diffs
Thu Jun 13 10:55:59 2013 UTC (11 years, 5 months ago) by msaitoh
Branches: netbsd-6-1
CVS tags: netbsd-6-1-5-RELEASE,
netbsd-6-1-4-RELEASE,
netbsd-6-1-3-RELEASE,
netbsd-6-1-2-RELEASE,
netbsd-6-1-1-RELEASE
Diff to: previous 1.16.6.1: preferred, colored; next MAIN 1.16.6.2: preferred, colored
Changes since revision 1.16.6.1: +9 -3
lines
Pull up following revision(s) (requested by reinoud in ticket #894):
sys/fs/nilfs/nilfs_vnops.c: revision 1.22-1.23
Fix serious file read problem due to not-so-clear VOP_BMAP description. Should
fix PR 45605.
Revision 1.16.6.1.4.1: download - view: text, markup, annotated - select for diffs
Thu Jun 13 10:53:00 2013 UTC (11 years, 5 months ago) by msaitoh
Branches: netbsd-6-0
CVS tags: netbsd-6-0-6-RELEASE,
netbsd-6-0-5-RELEASE,
netbsd-6-0-4-RELEASE,
netbsd-6-0-3-RELEASE
Diff to: previous 1.16.6.1: preferred, colored; next MAIN 1.16.6.2: preferred, colored
Changes since revision 1.16.6.1: +9 -3
lines
Pull up following revision(s) (requested by reinoud in ticket #894):
sys/fs/nilfs/nilfs_vnops.c: revision 1.22-1.23
Fix serious file read problem due to not-so-clear VOP_BMAP description. Should
fix PR 45605.
Revision 1.16.6.2: download - view: text, markup, annotated - select for diffs
Thu Jun 13 06:49:08 2013 UTC (11 years, 5 months ago) by msaitoh
Branches: netbsd-6
Diff to: previous 1.16.6.1: preferred, colored; branchpoint 1.16: preferred, colored; next MAIN 1.17: preferred, colored
Changes since revision 1.16.6.1: +9 -3
lines
Pull up following revision(s) (requested by reinoud in ticket #894):
sys/fs/nilfs/nilfs_vnops.c: revision 1.22-1.23
Fix serious file read problem due to not-so-clear VOP_BMAP description. Should
fix PR 45605.
Revision 1.23: download - view: text, markup, annotated - select for diffs
Wed May 8 10:39:17 2013 UTC (11 years, 7 months ago) by reinoud
Branches: MAIN
CVS tags: riastradh-drm2-base2,
riastradh-drm2-base1,
riastradh-drm2-base,
riastradh-drm2
Branch point for: rmind-smpnet
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +3 -3
lines
Fix Typo
Revision 1.22: download - view: text, markup, annotated - select for diffs
Wed May 8 10:29:22 2013 UTC (11 years, 7 months ago) by reinoud
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +9 -3
lines
Fix serious file read problem due to not-so-clear VOP_BMAP description. Should
fix PR 45605.
Revision 1.21: download - view: text, markup, annotated - select for diffs
Mon Mar 18 19:35:38 2013 UTC (11 years, 8 months ago) by plunky
Branches: MAIN
CVS tags: khorben-n900,
agc-symver-base,
agc-symver
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +3 -3
lines
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@)
Revision 1.15.2.3: download - view: text, markup, annotated - select for diffs
Wed Jan 16 05:33:39 2013 UTC (11 years, 10 months ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.15.2.2: preferred, colored; branchpoint 1.15: preferred, colored
Changes since revision 1.15.2.2: +9 -7
lines
sync with (a bit old) head
Revision 1.18.2.1: download - view: text, markup, annotated - select for diffs
Tue Nov 20 03:02:40 2012 UTC (12 years ago) by tls
Branches: tls-maxphys
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +9 -7
lines
Resync to 2012-11-19 00:00:00 UTC
Revision 1.20: download - view: text, markup, annotated - select for diffs
Mon Nov 5 17:27:37 2012 UTC (12 years, 1 month ago) by dholland
Branches: MAIN
CVS tags: yamt-pagecache-base8,
yamt-pagecache-base7
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +6 -4
lines
Excise struct componentname from the namecache.
This uglifies the interface, because several operations need to be
passed the namei flags and cache_lookup also needs for the time being
to be passed cnp->cn_nameiop. Nonetheless, it's a net benefit.
The glop should be able to go away eventually but requires structural
cleanup elsewhere first.
This change requires a kernel bump.
Revision 1.19: download - view: text, markup, annotated - select for diffs
Mon Nov 5 17:24:10 2012 UTC (12 years, 1 month ago) by dholland
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +6 -6
lines
Disentangle the namecache from the internals of namei.
- Move the namecache's hash computation to inside the namecache code,
instead of being spread out all over the place. Remove cn_hash from
struct componentname and delete all uses of it.
- It is no longer necessary (if it ever was) for cache_lookup and
cache_lookup_raw to clear MAKEENTRY from cnp->cn_flags for the cases
that cache_enter already checks for.
- Rearrange the interface of cache_lookup (and cache_lookup_raw) to
make it somewhat simpler, to exclude certain nonexistent error
conditions, and (most importantly) to make it not require write access
to cnp->cn_flags.
This change requires a kernel bump.
Revision 1.15.2.2: download - view: text, markup, annotated - select for diffs
Tue Oct 30 17:22:23 2012 UTC (12 years, 1 month ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.15.2.1: preferred, colored; branchpoint 1.15: preferred, colored
Changes since revision 1.15.2.1: +3 -3
lines
sync with head
Revision 1.16.6.1: download - view: text, markup, annotated - select for diffs
Sun Aug 12 12:59:47 2012 UTC (12 years, 3 months ago) by martin
Branches: netbsd-6
CVS tags: netbsd-6-1-RELEASE,
netbsd-6-1-RC4,
netbsd-6-1-RC3,
netbsd-6-1-RC2,
netbsd-6-1-RC1,
netbsd-6-0-RELEASE,
netbsd-6-0-RC2,
netbsd-6-0-RC1,
netbsd-6-0-2-RELEASE,
netbsd-6-0-1-RELEASE,
matt-nb6-plus-nbase,
matt-nb6-plus-base,
matt-nb6-plus
Branch point for: netbsd-6-1,
netbsd-6-0
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +3 -3
lines
Pull up following revision(s) (requested by manu in ticket #484):
sys/fs/nilfs/nilfs_vnops.c: revision 1.18
sys/ufs/ufs/ufs_lookup.c: revision 1.117
sys/nfs/nfs_vnops.c: revision 1.295
sys/ufs/chfs/chfs_vnops.c: revision 1.8
sys/ufs/ext2fs/ext2fs_lookup.c: revision 1.70
sys/fs/unionfs/unionfs_vnops.c: revision 1.6
sys/kern/vfs_cache.c: revision 1.89
sys/fs/efs/efs_vnops.c: revision 1.26
sys/fs/hfs/hfs_vnops.c: revision 1.26
sys/fs/adosfs/adlookup.c: revision 1.16
sys/fs/puffs/puffs_vnops.c: revision 1.168
sys/fs/tmpfs/tmpfs_vnops.c: revision 1.98
sys/fs/ntfs/ntfs_vnops.c: revision 1.52
sys/fs/cd9660/cd9660_lookup.c: revision 1.20
sys/fs/msdosfs/msdosfs_lookup.c: revision 1.24
sys/fs/smbfs/smbfs_vnops.c: revision 1.80
sys/fs/udf/udf_vnops.c: revision 1.72
sys/fs/filecorefs/filecore_lookup.c: revision 1.14
sys/fs/puffs/puffs_node.c: revision 1.25
Move some the test for MAKEENTRY into the cache_enter(9). Make some
variables in vfs_cache.c static, __read_mostly, etc.
No objection on tech-kern@.
Revision 1.18: download - view: text, markup, annotated - select for diffs
Sun Jul 22 00:53:19 2012 UTC (12 years, 4 months ago) by rmind
Branches: MAIN
CVS tags: yamt-pagecache-base6
Branch point for: tls-maxphys
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +3 -3
lines
Move some the test for MAKEENTRY into the cache_enter(9). Make some
variables in vfs_cache.c static, __read_mostly, etc.
No objection on tech-kern@.
Revision 1.15.2.1: download - view: text, markup, annotated - select for diffs
Tue Apr 17 00:08:19 2012 UTC (12 years, 7 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +7 -5
lines
sync with head
Revision 1.16.4.1: download - view: text, markup, annotated - select for diffs
Thu Apr 5 21:33:36 2012 UTC (12 years, 8 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.16: preferred, colored; next MAIN 1.17: preferred, colored
Changes since revision 1.16: +5 -5
lines
sync to latest -current.
Revision 1.17: download - view: text, markup, annotated - select for diffs
Tue Mar 13 18:40:38 2012 UTC (12 years, 8 months ago) by elad
Branches: MAIN
CVS tags: yamt-pagecache-base5,
yamt-pagecache-base4,
jmcneill-usbmp-base9,
jmcneill-usbmp-base8,
jmcneill-usbmp-base10
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +5 -5
lines
Replace the remaining KAUTH_GENERIC_ISSUSER authorization calls with
something meaningful. All relevant documentation has been updated or
written.
Most of these changes were brought up in the following messages:
http://mail-index.netbsd.org/tech-kern/2012/01/18/msg012490.html
http://mail-index.netbsd.org/tech-kern/2012/01/19/msg012502.html
http://mail-index.netbsd.org/tech-kern/2012/02/17/msg012728.html
Thanks to christos, manu, njoly, and jmmv for input.
Huge thanks to pgoyette for spinning these changes through some build
cycles and ATF.
Revision 1.16: download - view: text, markup, annotated - select for diffs
Fri Nov 18 21:18:50 2011 UTC (13 years ago) by christos
Branches: MAIN
CVS tags: netbsd-6-base,
jmcneill-usbmp-pre-base2,
jmcneill-usbmp-base7,
jmcneill-usbmp-base6,
jmcneill-usbmp-base5,
jmcneill-usbmp-base4,
jmcneill-usbmp-base3,
jmcneill-usbmp-base2,
jmcneill-usbmp-base,
jmcneill-audiomp3-base,
jmcneill-audiomp3
Branch point for: netbsd-6,
jmcneill-usbmp
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +4 -2
lines
Obey MNT_RELATIME, the only addition is that mkdir in ufs sets IN_ACCESS too.
Revision 1.15: download - view: text, markup, annotated - select for diffs
Sun Oct 16 12:41:45 2011 UTC (13 years, 1 month ago) by hannken
Branches: MAIN
CVS tags: yamt-pagecache-base3,
yamt-pagecache-base2,
yamt-pagecache-base
Branch point for: yamt-pagecache
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +5 -3
lines
VOP_GETATTR() needs a shared lock at least.
While here fix a typo (fvp -> tvp).
Revision 1.14: download - view: text, markup, annotated - select for diffs
Tue Sep 27 01:34:41 2011 UTC (13 years, 2 months ago) by christos
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +3 -3
lines
define NILFS_MAXNAMLEN and use it.
Revision 1.11.2.1: download - view: text, markup, annotated - select for diffs
Thu Jun 23 14:20:15 2011 UTC (13 years, 5 months ago) by cherry
Branches: cherry-xenmp
Diff to: previous 1.11: preferred, colored; next MAIN 1.12: preferred, colored
Changes since revision 1.11: +5 -9
lines
Catchup with rmind-uvmplock merge.
Revision 1.13: download - view: text, markup, annotated - select for diffs
Sun Jun 19 02:42:53 2011 UTC (13 years, 5 months ago) by rmind
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +3 -7
lines
- Fix a silly bug: remove umap from uobj in ubc_release() UBC_UNMAP case.
- Use UBC_WANT_UNMAP() consistently.
ARM (PMAP_CACHE_VIVT case) works again.
Revision 1.12: download - view: text, markup, annotated - select for diffs
Sun Jun 12 03:35:53 2011 UTC (13 years, 5 months ago) by rmind
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +4 -4
lines
Welcome to 5.99.53! Merge rmind-uvmplock branch:
- Reorganize locking in UVM and provide extra serialisation for pmap(9).
New lock order: [vmpage-owner-lock] -> pmap-lock.
- Simplify locking in some pmap(9) modules by removing P->V locking.
- Use lock object on vmobjlock (and thus vnode_t::v_interlock) to share
the locks amongst UVM objects where necessary (tmpfs, layerfs, unionfs).
- Rewrite and optimise x86 TLB shootdown code, make it simpler and cleaner.
Add TLBSTATS option for x86 to collect statistics about TLB shootdowns.
- Unify /dev/mem et al in MI code and provide required locking (removes
kernel-lock on some ports). Also, avoid cache-aliasing issues.
Thanks to Andrew Doran and Joerg Sonnenberger, as their initial patches
formed the core changes of this branch.
Revision 1.9.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 6 09:09:22 2011 UTC (13 years, 6 months ago) by jruoho
Branches: jruoho-x86intr
Diff to: previous 1.9: preferred, colored; next MAIN 1.10: preferred, colored
Changes since revision 1.9: +5 -14
lines
Sync with HEAD.
Revision 1.4.4.4: download - view: text, markup, annotated - select for diffs
Tue May 31 03:04:59 2011 UTC (13 years, 6 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.4.4.3: preferred, colored; branchpoint 1.4: preferred, colored; next MAIN 1.5: preferred, colored
Changes since revision 1.4.4.3: +3 -12
lines
sync with head
Revision 1.11: download - view: text, markup, annotated - select for diffs
Thu May 19 03:11:56 2011 UTC (13 years, 6 months ago) by rmind
Branches: MAIN
CVS tags: rmind-uvmplock-nbase,
rmind-uvmplock-base,
cherry-xenmp-base
Branch point for: cherry-xenmp
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +2 -5
lines
Remove cache_purge(9) calls from reclamation routines in the file systems,
as vclean(9) performs it for us since Lite2 merge.
Revision 1.10: download - view: text, markup, annotated - select for diffs
Sun Apr 24 21:35:29 2011 UTC (13 years, 7 months ago) by rmind
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +5 -11
lines
sys_link: prevent hard links on directories (cross-mount operations are
already prevented). File systems are no longer responsible to check this.
Clean up and add asserts (note that dvp == vp cannot happen in vop_link).
OK dholland@
Revision 1.4.4.3: download - view: text, markup, annotated - select for diffs
Sat Mar 5 20:55:06 2011 UTC (13 years, 9 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.4.4.2: preferred, colored; branchpoint 1.4: preferred, colored
Changes since revision 1.4.4.2: +2 -12
lines
sync with head
Revision 1.9: download - view: text, markup, annotated - select for diffs
Tue Nov 30 10:43:03 2010 UTC (14 years ago) by dholland
Branches: MAIN
CVS tags: matt-mips64-premerge-20101231,
jruoho-x86intr-base,
bouyer-quota2-nbase,
bouyer-quota2-base,
bouyer-quota2
Branch point for: jruoho-x86intr
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +2 -4
lines
Abolish the SAVENAME and HASBUF flags. There is now always a buffer,
so the path in a struct componentname is now always valid during VOP
calls.
Revision 1.8: download - view: text, markup, annotated - select for diffs
Tue Nov 30 10:29:59 2010 UTC (14 years ago) by dholland
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +2 -10
lines
Abolish struct componentname's cn_pnbuf. Use the path buffer in the
pathbuf object passed to namei as work space instead. (For now a pnbuf
pointer appears in struct nameidata, to support certain unclean things
that haven't been fixed yet, but it will be going away in the future.)
This removes the need for the SAVENAME and HASBUF namei flags.
Revision 1.4.2.1: download - view: text, markup, annotated - select for diffs
Tue Aug 17 06:47:17 2010 UTC (14 years, 3 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.4: preferred, colored; next MAIN 1.5: preferred, colored
Changes since revision 1.4: +53 -22
lines
Sync with HEAD.
Revision 1.1.4.5: download - view: text, markup, annotated - select for diffs
Wed Aug 11 22:54:34 2010 UTC (14 years, 3 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.1.4.4: preferred, colored; branchpoint 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1.4.4: +53 -22
lines
sync with head.
Revision 1.4.4.2: download - view: text, markup, annotated - select for diffs
Sat Jul 3 01:19:50 2010 UTC (14 years, 5 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.4.4.1: preferred, colored; branchpoint 1.4: preferred, colored
Changes since revision 1.4.4.1: +53 -22
lines
sync with head
Revision 1.7: download - view: text, markup, annotated - select for diffs
Thu Jun 24 13:03:10 2010 UTC (14 years, 5 months ago) by hannken
Branches: MAIN
CVS tags: yamt-nfs-mp-base11,
yamt-nfs-mp-base10,
uebayasi-xip-base4,
uebayasi-xip-base3,
uebayasi-xip-base2
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +9 -9
lines
Clean up vnode lock operations pass 2:
VOP_UNLOCK(vp, flags) -> VOP_UNLOCK(vp): Remove the unneeded flags argument.
Welcome to 5.99.32.
Discussed on tech-kern.
Revision 1.6: download - view: text, markup, annotated - select for diffs
Thu Jun 24 12:15:46 2010 UTC (14 years, 5 months ago) by reinoud
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +38 -12
lines
Pullup changes from the write implementation:
- remove unnessisary check that would prevent it from mounting newer nilfs
images. A field has been added in the segment summary.
- store blocks of files on their virtual block number
Revision 1.5: download - view: text, markup, annotated - select for diffs
Thu Jun 24 07:54:46 2010 UTC (14 years, 5 months ago) by hannken
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +13 -8
lines
Clean up vnode lock operations:
- VOP_LOCK(vp, flags): Limit the set of allowed flags to LK_EXCLUSIVE,
LK_SHARED and LK_NOWAIT. LK_INTERLOCK is no longer allowed as it
makes no sense here.
- VOP_ISLOCKED(vp): Remove the for some time unused return value
LK_EXCLOTHER. Mark this operation as "diagnostic only".
Making a lock decision based on this operation is no longer allowed.
Discussed on tech-kern.
Revision 1.4.4.1: download - view: text, markup, annotated - select for diffs
Tue Mar 16 15:38:07 2010 UTC (14 years, 8 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +4 -4
lines
Change struct uvm_object::vmobjlock to be dynamically allocated with
mutex_obj_alloc(). It allows us to share the locks among UVM objects.
Revision 1.1.4.4: download - view: text, markup, annotated - select for diffs
Thu Mar 11 15:04:13 2010 UTC (14 years, 9 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.1.4.3: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.4.3: +6 -6
lines
sync with head
Revision 1.4: download - view: text, markup, annotated - select for diffs
Fri Jan 8 11:35:08 2010 UTC (14 years, 11 months ago) by pooka
Branches: MAIN
CVS tags: yamt-nfs-mp-base9,
uebayasi-xip-base1,
uebayasi-xip-base
Branch point for: uebayasi-xip,
rmind-uvmplock
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +4 -4
lines
The VATTR_NULL/VREF/VHOLD/HOLDRELE() macros lost their will to live
years ago when the kernel was modified to not alter ABI based on
DIAGNOSTIC, and now just call the respective function interfaces
(in lowercase). Plenty of mix'n match upper/lowercase has creeped
into the tree since then. Nuke the macros and convert all callsites
to lowercase.
no functional change
Revision 1.3: download - view: text, markup, annotated - select for diffs
Tue Jan 5 13:30:11 2010 UTC (14 years, 11 months ago) by mbalmer
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +4 -4
lines
Remove extra semicolons.
Revision 1.1.4.3: download - view: text, markup, annotated - select for diffs
Wed Sep 16 13:38:00 2009 UTC (15 years, 2 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.1.4.2: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.4.2: +45 -24
lines
sync with head
Revision 1.2: download - view: text, markup, annotated - select for diffs
Wed Aug 26 03:40:48 2009 UTC (15 years, 3 months ago) by elad
Branches: MAIN
CVS tags: yamt-nfs-mp-base8,
matt-premerge-20091211,
jym-xensuspend-nbase
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +45 -24
lines
Split nilfs_access() to nilfs_check_possible() and nilfs_check_permitted().
Revision 1.1.4.2: download - view: text, markup, annotated - select for diffs
Wed Aug 19 18:48:14 2009 UTC (15 years, 3 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.1.4.1: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.4.1: +1573 -0
lines
sync with head.
Revision 1.1.2.2: download - view: text, markup, annotated - select for diffs
Thu Jul 23 23:32:32 2009 UTC (15 years, 4 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.1.2.1: preferred, colored; branchpoint 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1.2.1: +1573 -0
lines
Sync with HEAD.
Revision 1.1.4.1
Sat Jul 18 16:31:42 2009 UTC (15 years, 4 months ago) by yamt
Branches: yamt-nfs-mp
FILE REMOVED
Changes since revision 1.1: +0 -1573
lines
file nilfs_vnops.c was added on branch yamt-nfs-mp on 2009-08-19 18:48:14 +0000
Revision 1.1.2.1
Sat Jul 18 16:31:42 2009 UTC (15 years, 4 months ago) by jym
Branches: jym-xensuspend
FILE REMOVED
Changes since revision 1.1: +0 -1573
lines
file nilfs_vnops.c was added on branch jym-xensuspend on 2009-07-23 23:32:32 +0000
Revision 1.1: download - view: text, markup, annotated - select for diffs
Sat Jul 18 16:31:42 2009 UTC (15 years, 4 months ago) by reinoud
Branches: MAIN
CVS tags: yamt-nfs-mp-base7,
jymxensuspend-base
Branch point for: yamt-nfs-mp,
jym-xensuspend
Import read-only part of the NiLFS (v2) implementation for NetBSD. It has been
tested with a DEBUG+DIAGNOSTIC+LOCKDEBUG kernel. To summerise NiLFS, i'll
repeat my posting to tech-kern here:
NiLFS stands for New implementation of Logging File System; LFS done
right they claim :) It is at version 2 now and is being developed by NTT, the
Japanese telecom company and recently put into the linux source tree. See
http://www.nilfs.org. The on-disc format is not completely frozen and i expect
at least one minor revision to come in time.
The benefits of NiLFS are build-in fine-grained checkpointing, persistent
snapshots, multiple mounts and very large file and media support. Every
checkpoint can be transformed into a snapshot and v.v. It is said to perform
very well on flash media since it is not overwriting pieces apart from a
incidental update of the superblock, but that might change. It is accompanied
by a cleaner to clean up the segments and recover lost space.
My work is not a port of the linux code; its a new implementation. Porting the
code would be more work since its very linux oriented and never written to be
ported outside linux. The goal is to be fully interchangable. The code is non
intrusive to other parts of the kernel. It is also very light-weight.
The current state of the code is read-only access to both clean and dirty
NiLFS partitions. On mounting a dirty partition it rolls forward the log to
the last checkpoint. Full read-write support is however planned!
Just as the linux code, mount_nilfs allows for the `head' to be mounted
read/write and allows multiple read-only snapshots/checkpoint mounts next to
it.
By allowing the RW mount at a different snapshot for read-write it should be
possible eventually to revert back to a previous state; i.e. try to upgrade a
system and being able to revert to the exact state prior to the upgrade.
Compared to other FS's its pretty light-weight, suitable for embedded use and
on flash media. The read-only code is currently 17kb object code on
NetBSD/i386. I doubt the read-write code will surpass the 50 or 60. Compared
this to FFS being 156kb, UDF being 84 kb and NFS being 130kb. Run-time memory
usage is most likely not very different from other uses though maybe a bit
higher than FFS.
CVSweb <webmaster@jp.NetBSD.org>