path: root/debian
diff options
authorDarren Hart <dvhart@infradead.org>2013-01-04 12:00:58 -0800
committerTheodore Ts'o <tytso@mit.edu>2013-01-16 14:09:17 -0500
commitf01c1a6bce5e6674cbfa5260db1691bca01a4410 (patch)
tree077beeb6e772bc6b8bef8ebbb3f88ea2afa0e6bc /debian
parent53f2a1eaf051b9ef8a2927cdd7d6de281c8d5a03 (diff)
libext2fs: add the ext2fs_symlink() function
Creating symlinks is a complex affair when accounting for slowlinks. Create a new function, ext2fs_symlink(), modeled after ext2fs_mkdir(). Like ext2fs_mkdir(), ext2fs_symlink() takes on the task of allocating a new inode and block (for slowlinks), setting up sane default values in the inode, copying the target path to either the inode (for fastlinks) or to the first block (for slowlinks), and accounting for the inode and block stats. Disallow link targets longer than blocksize as the Linux kernel prevents this. It does not attempt to expand the parent directory, instead returning EXT2_ET_DIR_NO_SPACE and leaving it to the caller to expand just as ext2fs_mkdir() does. Ideally, I think both of these functions should make a single attempt to expand the directory. [ Fixed a few bugs discovered when creating a test case for ext2fs_symlink() ] Signed-off-by: Darren Hart <dvhart@infradead.org> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu> Cc: "Darrick J. Wong" <darrick.wong@oracle.com> Cc: Andreas Dilger <adilger@dilger.ca>
Diffstat (limited to 'debian')
1 files changed, 1 insertions, 0 deletions
diff --git a/debian/e2fslibs.symbols b/debian/e2fslibs.symbols
index 947bafa8..b8eea529 100644
--- a/debian/e2fslibs.symbols
+++ b/debian/e2fslibs.symbols
@@ -416,6 +416,7 @@ libext2fs.so.2 e2fslibs #MINVER#
ext2fs_swab16@Base 1.37
ext2fs_swab32@Base 1.37
ext2fs_swab64@Base 1.40
+ ext2fs_symlink@Base 1.42.7
ext2fs_sync_device@Base 1.37
ext2fs_tdb_append@Base 1.40
ext2fs_tdb_chainlock@Base 1.40