Bug 786719

Summary: hardlink does not ignore other filesystems
Product: [Fedora] Fedora Reporter: Need Real Name <lsof>
Component: hardlinkAssignee: Jindrich Novy <jnovy>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: jnovy, lsof, pknirsch
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-04-15 09:22:45 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Need Real Name 2012-02-02 08:45:41 UTC
Description of problem:
If I run hardlink on a directory which contains a sub-directory with a loopback iso mount, hardlink will produce a lot of warnings.

Version-Release number of selected component (if applicable):
hardlink-1.0-12.fc16.x86_64

How reproducible:
Every time.

Steps to Reproduce:
1.
2.
3.
  
Actual results:
Warnings.

Expected results:
Do not try to hardlink the file (or hardlink it in the other direction, if that works).

Additional info:

Comment 1 Jindrich Novy 2012-04-15 09:22:45 UTC
Fixed in rawhide.

I added -f option to override the default no hardlinking across filesystems behaviour.

Comment 2 Need Real Name 2012-04-15 11:35:09 UTC
Thanks. So will the warnings about trying to hardlink things on loopback mounts go away?

Comment 3 Jindrich Novy 2012-04-15 12:56:32 UTC
Yes. Actually hardlink will refuse to do any hardlinks from one to other filesystem as long as no -f option is specified.