Skip to content

pramfs: persistent and protected RAM filesystem

Marco Stornelli linux-embedded linux-fsdevel lkml 5 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest15 of 16 patches 2 repliesIn review
  2. v415 of 16 patches 12 repliesSuperseded
  3. v316 patches 2 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v216 patches20 repliesSuperseded
v114 of 16 patches11 repliesSuperseded

Changes in v5 from the cover letter

- removed the changelog from documentation file
- added the function pram_check_flags in the file operations
- added a check when the user uses XIP and the blocksize is different from page size
- added i_meta_mutex to avoid race conditions in the inode update path
- changed the lock policy during mem{lock|unlock} operations
- replaced bitmap_set with bitmap_fill
- added mount options xip, acl, noacl, noprotect, user_xattr and nouser_xattr as required by Paul Maundt
- inserted pr_fmt in pram.h
- inserted macros IF2DT and DT2IF
- removed file name description from each file
- used min_t instead of using own check in pram_add_link()

15 of 16 patches are in this archive. The cover letter announces 16.

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/16pramfs: documentationDocumentation/filesystems/pramfs.txt Documentation/filesystems/xip.txt+181 -02 replies
3/16pramfs: inode operationsfs/pramfs/inode.c+729 -00 replies
4/16pramfs: file operationsfs/pramfs/file.c+182 -00 replies
5/16pramfs: block allocationfs/pramfs/balloc.c+147 -00 replies
6/16pramfs: inode operations for dirsfs/pramfs/namei.c+366 -00 replies
7/16pramfs: symbolic linksfs/pramfs/symlink.c+76 -00 replies
8/16pramfs: headersfs/pramfs/pram.h include/linux/magic.h include/linux/pram_fs.h +1 more+404 -00 replies
9/16pramfs: dir operationsfs/pramfs/dir.c+204 -00 replies
10/16pramfs: xip operationsfs/pramfs/xip.c fs/pramfs/xip.h+111 -00 replies
11/16pramfs: ACL managementfs/pramfs/acl.c fs/pramfs/acl.h+519 -00 replies
12/16pramfs: extended attributes managementfs/pramfs/xattr.c fs/pramfs/xattr.h fs/pramfs/xattr_security.c +2 more+1446 -00 replies
13/16pramfs: extended attributes block descriptors treefs/pramfs/desctree.c fs/pramfs/desctree.h+225 -00 replies
14/16pramfs: memory protectionfs/pramfs/wprotect.c fs/pramfs/wprotect.h+189 -00 replies
15/16pramfs: test modulefs/pramfs/pramfs_test.c+47 -00 replies
16/16pramfs: Makefile and Kconfigarch/Kconfig arch/x86/Kconfig fs/Kconfig +2 more+96 -40 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v5 yet.

Read the v5 thread

Cover letter [PATCH 00/16 v5] pramfs: persistent and protected RAM filesystem

Hi all,

fifth round for the patch series. I summarize here the changes to improve the review:

v5:
- removed the changelog from documentation file
- added the function pram_check_flags in the file operations
- added a check when the user uses XIP and the blocksize is different from page size
- added i_meta_mutex to avoid race conditions in the inode update path
- changed the lock policy during mem{lock|unlock} operations
- replaced bitmap_set with bitmap_fill
- added mount options xip, acl, noacl, noprotect, user_xattr and nouser_xattr as required by Paul Maundt
- inserted pr_fmt in pram.h
- inserted macros IF2DT and DT2IF
- removed file name description from each file
- used min_t instead of using own check in pram_add_link()

v4:
- in bitmap init used already present bitmap_set function
- fix a possible memory leak in an error path reported by yidong zhang

v3:
- fix a possible memory leak in an error path reported by yidong zhang
- fix a warning when using XIP about not used __pram_mmap symbol
- fix test module header description and replaced TEST_MODULE with PRAMFS_TEST_MODULE in the Kconfig and Makefile according to the comments done by Randy Dunlap
- fix a compilation warning in super.c reported by James Hogan
- fix a compilation error when XIP was enabled
- removed not used symbol PRAM_XATTR_INDEX_LUSTRE
- fix some comment style issue

v2:
- fix documentation errors reported by Randy Dunlap and Kieran Bingham
- reworked memory write protection functions with the suggestions of Andi Kleen

v1:
- first draft

Marco