summaryrefslogtreecommitdiff
path: root/libparted/fs/nilfs2/nilfs2.c
Commit message (Collapse)AuthorAgeFilesLines
* maint: Update copyright statements to 2022Brian C. Lane2023-03-241-1/+1
| | | | By running make update-copyright
* maint: Update copyright statements to 2022Brian C. Lane2022-03-231-1/+1
| | | | By running make update-copyright
* maint: Update copyright statements to 2021Brian C. Lane2021-01-181-1/+1
| | | | By running make update-copyright
* maint: Update copyright statements to 2020Brian C. Lane2020-12-111-1/+1
| | | | By running make update-copyright
* nilfs2: Fix gcc 10 warnings about cast alignmentBrian C. Lane2020-11-201-6/+5
|
* maint: Update copyright statements to 2019Brian C. Lane2019-08-121-1/+1
| | | | By running make update-copyright
* Avoid sigsegv in case 2nd nilfs2 superblock magic accidently found.Michael Small2019-04-091-3/+5
| | | | | | | | | | | | | | | | 1. is_valid_nilfs_sb: make sure the subtraction bytes - sumoff - 4 won't give a negative number. That as the len argument to __efi_crc32() would give a very large number for the latter's for loop limit, since len is unsigned long. 2. nilfs2_probe: Read and allocate enough sectors to hold a struct nilfs2_super_block. is_valid_nilfs_sb() will be passing up to 1024 bytes to __efi_crc32(). If only one 512 byte sector had been allocated with alloca and read from disk that would cause reads off the the end of the stack even if bytes were more than sumoff - 4. Signed-off-by: Brian C. Lane <bcl@redhat.com>
* maint: run "make update-copyright"Jim Meyering2014-05-251-1/+1
|
* Fix filesystem detection on non 512 byte sectorsPhillip Susi2014-04-181-23/+13
| | | | | | Enable probing for filesystems with non 512 byte sectors, and fix up each filesystem to correctly handle that. Remove unused field from the fs type structure listing acceptable sector sizes.
* maint: update all copyright year number rangesJim Meyering2013-01-061-1/+1
| | | | Run "make update-copyright".
* maint: update all copyright year number rangesJim Meyering2012-01-011-1/+1
| | | | Run "make update-copyright".
* libparted: fix a bug in the nilfs2 probe functionJim Meyering2011-09-281-2/+3
| | | | | | | | | | * libparted/fs/nilfs2/nilfs2.c (nilfs2_probe): Reject this partition if we get a negative sb2 offset. Passing a negative offset to ped_geometry_read_alloc would evoke a failed assertion. Bug introduced by 2010-07-09 commit d463e7de. * NEWS: (Bug fixes): Mention it. Reported by Daniel Fandrich in http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10466/focus=10472
* remove all top-level FS-op code and the clearfat programJim Meyering2011-05-271-10/+0
|
* nilfs2: remove unused nilfs2_clobber functionJim Meyering2011-03-161-26/+0
| | | | | | * libparted/fs/nilfs2/nilfs2.c (nilfs2_clobber): Remove unused function. (nilfs2_ops) [clobber]: Always set to NULL.
* libparted: add nilfs2 moduleJiro SEKIBA2011-02-261-0/+199
* libparted/fs/nilfs2/Makefile.am: New file. * libparted/fs/nilfs2/nilfs2.c: New file. (is_valid_nilfs_sb, nilfs2_probe, nilfs2_clobber): New functions. (ped_file_system_nilfs2_init, ped_file_system_nilfs2_done): Likewise. (nilfs2_ops, nilfs2_type): Define. * libparted/fs/Makefile.am (SUBDIRS): Add nilfs2. * configure.ac (AC_OUTPUT): Add the new Makefile. * libparted/libparted.c: Declare and use the _init and _done functions. Add a new fs module to provide following: - probe nilfs2 filesystem partition - clobber nilfs2 filesystem partition The is_valid_nilfs_sb function came from the grub nilfs2 module, which is written by me and assigned to FSF.