[Bug 935480] Re: mkdosfs refuses to run on /dev/loop0p1

2021-02-25 Thread Pali
This issue should be already fixed.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/935480

Title:
  mkdosfs refuses to run on /dev/loop0p1

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dosfstools/+bug/935480/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 935480] Re: mkdosfs refuses to run on /dev/loop0p1

2013-02-27 Thread Jan Claeys
Seems like there is a fix in dosfstools 3.0.15 now:

http://www.daniel-
baumann.ch/gitweb/?p=software/dosfstools.git;a=blobdiff;f=src/mkdosfs.c;h=beda76f0fa87c85a6cd3bccb860865eaabc7143a;hp=25c520f972431310b038843a9d3bbd0eeba22fad;hb=b8201b34eb83c2bf87bd1c2b1a7fa57a1dc28191;hpb=7a756385ed6bce393396c699e068b5f239053db6

(Probably not the right solution, but I still wonder if it would be
worth a backport of this patch?)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/935480

Title:
  mkdosfs refuses to run on /dev/loop0p1

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dosfstools/+bug/935480/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 935480] Re: mkdosfs refuses to run on /dev/loop0p1

2013-02-20 Thread Jan Claeys
Actually, on modern unix systems rm -rf / will refuse to delete
anything (unless you add a special option, like  --no-preserve-root in
GNU rm).

This follows POSIX.1-2008/SUSv4[1]:

| The rm utility shall remove the directory entry specified by each file 
argument.
| 
| If [...] or if an operand resolves to the root directory, rm shall write a 
diagnostic
| message to standard error and do nothing more with such operands.

[1] http://pubs.opengroup.org/onlinepubs/9699919799/utilities/rm.html

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/935480

Title:
  mkdosfs refuses to run on /dev/loop0p1

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dosfstools/+bug/935480/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 935480] Re: mkdosfs refuses to run on /dev/loop0p1

2013-02-20 Thread Phillip Susi
GAH!  What is the world coming to?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/935480

Title:
  mkdosfs refuses to run on /dev/loop0p1

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dosfstools/+bug/935480/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 935480] Re: mkdosfs refuses to run on /dev/loop0p1

2013-02-18 Thread Jan Claeys
https://bugzilla.redhat.com/show_bug.cgi?id=709266
Their fix: https://bugzilla.redhat.com/attachment.cgi?id=502487action=diff

That was 2 years ago or so...  :-/


** Bug watch added: Red Hat Bugzilla #709266
   https://bugzilla.redhat.com/show_bug.cgi?id=709266

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/935480

Title:
  mkdosfs refuses to run on /dev/loop0p1

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dosfstools/+bug/935480/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 935480] Re: mkdosfs refuses to run on /dev/loop0p1

2013-02-18 Thread Jan Claeys
I think the idea of such a safety check for interactive use isn't brain
damaged, but in reality there is (or seems to be) no correct way to do
this check, and even more so if you also consider other OS than linux,
so I agree the only sensible thing to do is to remove it.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/935480

Title:
  mkdosfs refuses to run on /dev/loop0p1

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dosfstools/+bug/935480/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 935480] Re: mkdosfs refuses to run on /dev/loop0p1

2013-02-18 Thread Phillip Susi
Yea, that's pretty much what I came up with before the new year and I
sent it off to the maintainer, but never got a reply.

I don't think this kind of safety check and prompt is unix like in
character.  It isn't the job of tools to second guess the admin and try
to stop you from shooting yourself in the foot.  This is why rm -rf /
doesn't stop and warn you, even though doing this is monumentally
stupid, and why none of the other mkfs tools try to do this.

Usually tools that try to do this sort of thing at least have the good
sense to first check if stdin is connected to a tty, and skip the prompt
if it isn't.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/935480

Title:
  mkdosfs refuses to run on /dev/loop0p1

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dosfstools/+bug/935480/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 935480] Re: mkdosfs refuses to run on /dev/loop0p1

2013-02-16 Thread Jan Claeys
This looks like the same bug we are seeing in GParted:
https://bugzilla.gnome.org/show_bug.cgi?id=693955

This is caused by an incorrect test in mkdosfs whether a device is a
hard disk:

if (fstat(dev, statbuf)  0)
die(unable to stat %s);
if (!S_ISBLK(statbuf.st_mode)) {
statbuf.st_rdev = 0;
check = 0;
} else
/*
 * Ignore any 'full' fixed disk devices, if -I is not given.
 * On a MO-disk one doesn't need partitions.  The filesytem can go
 * directly to the whole disk.  Under other OSes this is known as
 * the 'superfloppy' format.  As I don't know how to find out if
 * this is a MO disk I introduce a -I (ignore) switch.  -Joey
 */
if (!ignore_full_disk  ((statbuf.st_rdev  0xff3f) == 0x0300 ||   
/* hda, hdb */
  (statbuf.st_rdev  0xff0f) == 0x0800 ||   
/* sd */
  (statbuf.st_rdev  0xff3f) == 0x0d00 ||   
/* xd */
  (statbuf.st_rdev  0xff3f) == 0x1600) /* hdc, 
hdd */
)
die(Device partition expected, not making filesystem on entire device 
'%s' (use -I to override));


It makes certain apparently incorrect assumptions about how raw device numbers 
for full disks vs. partitions look like.
(It also doesn't use major()/minor() on the raw device number, which looks not 
very portable or future-proof to me...)

** Bug watch added: GNOME Bug Tracker #693955
   https://bugzilla.gnome.org/show_bug.cgi?id=693955

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/935480

Title:
  mkdosfs refuses to run on /dev/loop0p1

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dosfstools/+bug/935480/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 935480] Re: mkdosfs refuses to run on /dev/loop0p1

2013-02-16 Thread Phillip Susi
I guess I forgot to update this bug report.  I found that a while back
and sent off a patch to the upstream maintainer but have not heard back.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/935480

Title:
  mkdosfs refuses to run on /dev/loop0p1

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dosfstools/+bug/935480/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 935480] Re: mkdosfs refuses to run on /dev/loop0p1

2013-02-16 Thread Jan Claeys
At least GParted will have the -I option workaround in the next
version.

Did your patch remove the check or fix it?  (Is there a future-proof way
to fix it?)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/935480

Title:
  mkdosfs refuses to run on /dev/loop0p1

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dosfstools/+bug/935480/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 935480] Re: mkdosfs refuses to run on /dev/loop0p1

2013-02-16 Thread Phillip Susi
I didn't even think about the major/minor part, I just suggested adding
another leading 0xf to the masks.

Personally I think the whole check for full disk is brain damaged and
should be removed.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/935480

Title:
  mkdosfs refuses to run on /dev/loop0p1

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dosfstools/+bug/935480/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 935480] Re: mkdosfs refuses to run on /dev/loop0p1

2013-02-16 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: dosfstools (Ubuntu)
   Status: New = Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/935480

Title:
  mkdosfs refuses to run on /dev/loop0p1

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dosfstools/+bug/935480/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs