Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-3679

fuse_dfs notrash option sets usetrash

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.0.0, 1.0.1, 1.0.2, 1.0.3, 2.0.0-alpha
    • 1.2.0, 2.0.2-alpha
    • fuse-dfs
    • None
    • Reviewed

    Description

      fuse_dfs sets usetrash option when the "notrash" flag is given. This is the exact opposite of the desired behavior. The "usetrash" flag sets usetrash as well, but this is correct. Here are the relevant lines from fuse_options.c, in latest HDFS HEAD[0]:

      123 case KEY_USETRASH:
      124 options.usetrash = 1;
      125 break;
      126 case KEY_NOTRASH:
      127 options.usetrash = 1;
      128 break;

      This is a pretty trivial bug to fix. I'm not familiar with the process here, but I can attach a patch if needed.

      [0]: https://svn.apache.org/viewvc/hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/main/native/fuse-dfs/fuse_options.c?view=markup

      Attachments

        1. hdfs-3679.diff
          0.3 kB
          Conrad Meyer

        Activity

          People

            cmeyerisi Conrad Meyer
            cmeyerisi Conrad Meyer
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1m
                1m
                Remaining:
                Remaining Estimate - 1m
                1m
                Logged:
                Time Spent - Not Specified
                Not Specified