u-boot/fs/ext4
Jean-Jacques Hiblot 5efc0686ee fs: ext4: Add support for the creation of symbolic links
Re-use the functions used to write/create a file, to support creation of a
symbolic link.
The difference with a regular file are small:
- The inode mode is flagged with S_IFLNK instead of S_IFREG
- The ext2_dirent's filetype is FILETYPE_SYMLINK instead of FILETYPE_REG
- Instead of storing the content of a file in allocated blocks, the path
to the target is stored. And if the target's path is short enough, no block
is allocated and the target's path is stored in ext2_inode.b.symlink

As with regulars files, if a file/symlink with the same name exits, it is
unlinked first and then re-created.

Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
[trini: Fix ext4 env code]
Signed-off-by: Tom Rini <trini@konsulko.com>
2019-04-09 20:03:30 -04:00
..
crc16.c ext4fs write support 2012-08-09 23:48:02 +02:00
crc16.h ext4fs write support 2012-08-09 23:48:02 +02:00
dev.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ext4_common.c fs: ext4: Add support for the creation of symbolic links 2019-04-09 20:03:30 -04:00
ext4_common.h fs: ext4: constify the buffer passed to write functions 2019-04-09 15:34:15 -04:00
ext4_journal.c fs: ext4: cache extent data 2019-04-09 15:34:15 -04:00
ext4_journal.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ext4_write.c fs: ext4: Add support for the creation of symbolic links 2019-04-09 20:03:30 -04:00
ext4fs.c fs: ext4: cache extent data 2019-04-09 15:34:15 -04:00
Kconfig fs: Migrate ext4 to Kconfig 2018-01-22 16:43:30 -05:00
Makefile SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00