[Bug 722910] Re: xz/bzip/gzip fails with hardlink errors on ntfs partition (files with > 1 link)
xhienne
722910 at bugs.launchpad.net
Sun Oct 9 15:41:49 UTC 2016
Thanks. IMHO, the title should no longer mention NTFS. The behavior can
be observed on any filesystem.
Try this, for example, on an ext* FS:
# touch foo
# ln foo bar
# gzip bar
gzip: bar has 1 other link -- unchanged
# bzip2 bar
bzip2: Input file bar has 1 other link.
# xz bar
xz: bar: Input file has more than one hard link, skipping
# lzma bar
lzma: bar: Input file has more than one hard link, skipping
Note: I have also affected this bug to the gzip project
** Also affects: gzip
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to bzip2 in Ubuntu.
https://bugs.launchpad.net/bugs/722910
Title:
xz/bzip/gzip fails with hardlink errors on ntfs partition (files with
> 1 link)
Status in gzip:
New
Status in bzip2 package in Ubuntu:
Confirmed
Status in xz-utils package in Ubuntu:
Confirmed
Bug description:
Binary package hint: xz-utils
After mounting an ntfs partition using dolphin in kubuntu, xz fails to compress any file on the ntfs partition.
$ [sudo] xz -9 COMP6366_V01_02_15_2011.wmv
xz: COMP6366_V01_02_15_2011.wmv: Input file has more than one hard link, skipping
More information about the file:
$ ls -la COMP6366_V01_02_15_2011.wmv
-rwxrwxrwx 2 root root 332122239 2011-02-15 16:36 COMP6366_V01_02_15_2011.wmv
Workaround: Renaming the file will allow xz to perform the compression.
$ mv COMP6366_V01_02_15_2011.wmv COMP6366_V01_02_15_2011.wmv2 && mv COMP6366_V01_02_15_2011.wmv2 COMP6366_V01_02_15_2011.wmv
$ xz -9 COMP6366_V01_02_15_2011.wmv
After mounting an ntfs partition using dolphin in kubuntu, xz fails to compress any file on the ntfs partition.
$ [sudo] xz -9 COMP6366_V01_02_15_2011.wmv
xz: COMP6366_V01_02_15_2011.wmv: Input file has more than one hard link, skipping
More information about the file:
$ ls -la COMP6366_V01_02_15_2011.wmv
-rwxrwxrwx 2 root root 332122239 2011-02-15 16:36 COMP6366_V01_02_15_2011.wmv
Workaround: Renaming the file will allow xz to perform the compression.
$ mv COMP6366_V01_02_15_2011.wmv COMP6366_V01_02_15_2011.wmv2 && mv COMP6366_V01_02_15_2011.wmv2 COMP6366_V01_02_15_2011.wmv
$ xz -9 COMP6366_V01_02_15_2011.wmv
$ ls -la COMP6366_V01_02_15_2011.wmv.xz
-rwxrwxrwx 1 root root 325158580 2011-02-15 16:36 COMP6366_V01_02_15_2011.wmv.xz
Any file that is modified or placed onto the ntfs partition from
within ubuntu is fine - this bug only exists for files that already
existed on my Windows XP system.
$ lsb_release -rd
Description: Ubuntu 10.10
Release: 10.10
$ xz -V
xz (XZ Utils) 4.999.9beta
liblzma 4.999.9beta
$ apt-cache policy xz-utils
xz-utils:
Installed: 4.999.9beta+20100527-1
Candidate: 4.999.9beta+20100527-1
Version table:
*** 4.999.9beta+20100527-1 0
500 http://us.archive.ubuntu.com/ubuntu/ maverick/main amd64 Packages
100 /var/lib/dpkg/status
ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: xz-utils 4.999.9beta+20100527-1
ProcVersionSignature: Ubuntu 2.6.35-23.40-generic 2.6.35.7
Uname: Linux 2.6.35-23-generic x86_64
NonfreeKernelModules: nvidia
Architecture: amd64
Date: Mon Feb 21 18:39:05 2011
InstallationMedia: Kubuntu 9.10 "Karmic Koala" - Release amd64 (20091027)
ProcEnviron:
LANGUAGE=
PATH=(custom, user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: xz-utils
To manage notifications about this bug go to:
https://bugs.launchpad.net/gzip/+bug/722910/+subscriptions
More information about the foundations-bugs
mailing list